canonical / snapcraft.io

The official website's repository for the Snap store
https://snapcraft.io/
Other
146 stars 110 forks source link

Bad Gateway when trying to update screenshots #3962

Closed Mailaender closed 2 years ago

Mailaender commented 2 years ago

Expected behaviour

Added/Changed screenshots

Steps to reproduce the problem

Specs

Lukewh commented 2 years ago

Sorry about this. There's been some disruption to the API service over the past few days, things are more stable now, could you try again and let us know if you're still seeing the error, thanks.

Mailaender commented 2 years ago

Still

Bad Gateway Please try again later

Lukewh commented 2 years ago

@Mailaender would you mind sharing the image you're trying to upload so I can try to reproduce? I wonder if we're returning an incorrect error.

Mailaender commented 2 years ago

OpenChrom_1 5 0

Lukewh commented 2 years ago

I've reproduced the issue and I'm working on a fix

jkfran commented 2 years ago

@Roadmaster could you have a look at this 500 response we are getting from the dashboard API with this image:

{"error_list": [{"message": "UnidentifiedImageError: cannot identify image file <InMemoryUploadedFile: test.png (image/png)>", "code": "internal-server-error"}]}
Lukewh commented 2 years ago

@Mailaender it seems that it's an issue with this specific image. Opening in GIMP shows a warning (but the image still opens). Could you try re-saving the image in a different format (jpg) and try again? We'll continue to dig in to the underlying issue and make sure the errors thrown are more informative! Thanks for the edge case :D

Mailaender commented 2 years ago

This is a screenshot taken from Ubuntu that I opened in Gimp 2.10.12 to cut off the task bar.

Mailaender commented 2 years ago

I unticked everything and now your backend doesn't seem to crash:

image

Sorry for German locale.

Lukewh commented 2 years ago

Thanks, @Mailaender – glad the image got uploaded, and thanks so much for the report, it will help us improve things for the future :)!