mastodon-ios icon indicating copy to clipboard operation
mastodon-ios copied to clipboard

[BUG] 502 errors when posting images

Open rodti opened this issue 2 years ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

Multiple users report 502 errors when trying to post images to my server using the official iOS app. The same users confirm they can post the same images using the web interface.

Expected Behavior

Images can be posted without errors.

Steps To Reproduce

  1. Create new post in the iOS app
  2. Attached image
  3. Attempt to publish

Environment

This issue has been confirmed by a user as present in v1.4.8

Anything else?

This problem may be related to this other issue https://github.com/mastodon/mastodon-ios/issues/712

The server is running v4.0.2, with Wasabi object storage (eu-central-1) through the standard Mastodon media nginx configuration. All services run behind Cloudflare with full SSL.

rodti avatar Dec 07 '22 13:12 rodti

Can confirm we also see this behaviour with all servers In London and using the AWS S3 service also in London.

Wild1145 avatar Dec 07 '22 14:12 Wild1145

Do you have any logs on your server that provide details about why the 502 was returned?

j-f1 avatar Dec 07 '22 15:12 j-f1

Do you have any logs on your server that provide details about why the 502 was returned?

I don't see anything that could be relevant to that in our logs. I'll ask some users to try again and let me know the times so I can check again. For info, but @Wild1145 and I are running behind Cloudflare, not sure if that could be causing some strange issues with the iOS app, but doesn't seem to be an issue with any other apps or the web interface.

rodti avatar Dec 07 '22 15:12 rodti

I am also running behind Cloudflare (mace.au) and also having an issue uploading images to posts (502) using the iOS app.

The image in question was a PNG screenshot captured off an iPhone 12 Pro at approx. 284KB.

Will work on getting logs, but wanted to give an extra data point.

adrianmace avatar Dec 16 '22 23:12 adrianmace