Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receive 422 errors on certain image uploads to Mastodon #1150

Closed
5 of 14 tasks
ehashman opened this issue Aug 29, 2018 · 2 comments
Closed
5 of 14 tasks

Receive 422 errors on certain image uploads to Mastodon #1150

ehashman opened this issue Aug 29, 2018 · 2 comments

Comments

@ehashman
Copy link

Expected behavior

When I upload an image captured on my phone camera, it succeeds.

Actual behavior

Image upload immediately fails with "Error 422".

Steps to reproduce

A photo that produces the error is attached. Attempt to upload it to a Mastodon instance with version 2.4.3. I don't know if the GitHub upload will work for reproducing since it strips EXIF data but I'll test it.

Before my Mastodon instance was upgraded to 2.4.3 I had no issues with photo uploads on Mastodon with Twidere.

img_20180827_1703527 2

Extra info

Android version: 6.0.1 (BlackBerry DTEK60)

Network type:

  • Cellular
  • Wi-Fi

App version: 3.7.3

Build variant:

  • Google
  • F-Droid

Micro-blogging service:

  • Twitter
  • Fanfou
  • GNU Social / StatusNet
  • Mastodon

App settings:

  • Custom API
  • Custom consumer key/secrets
  • Official keys
  • Using Thumbor
  • Connected through proxy
  • Media preview enabled
@Xefir
Copy link
Contributor

Xefir commented Sep 5, 2018

Mastodon 2.4.3 and after limit the image upload to 8mo and restrict the upload to image below 1280x1280 in size.
All image above this will result on a 422 HTTP code.

@ehashman
Copy link
Author

ehashman commented Sep 5, 2018

Why does the upload succeed on web? Auto resizing?

Tlaster added a commit that referenced this issue Apr 20, 2020
Fix #1150 Receive 422 errors on certain image uploads to Mastodon
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

No branches or pull requests

2 participants