Skip to content

fix(event): report the OSS error code when storing photos fails - #235

Merged
wen-templari merged 1 commit into
mainfrom
fix/photo-upload-error-detail
Oct 18, 2026
Merged

wen-templari merged 1 commit into
mainfrom
fix/photo-upload-error-detail

Conversation

@m1ngsama

Copy link
Copy Markdown
Member

Photo uploads fail in production with a bare 500, and the cause is visible only in the server log, which most maintainers cannot read.

A failed upload now returns failed to store photos: OSS <Code>, such as OSS AccessDenied or OSS InvalidAccessKeyId. Database failures keep the plain message.

The 500 for a failed photo upload said only "failed to store photos",
so the cause, such as AccessDenied or InvalidAccessKeyId, was visible
only in the server log. Append the OSS error code to the detail.
@m1ngsama
m1ngsama requested a review from wen-templari October 18, 2026 09:04
@wen-templari
wen-templari merged commit d4487b6 into main Oct 18, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants