8
6

Create Post: Image upload not working

2y 10mon ago by lemmy.whynotdrs.org/u/lovetoburst in meta@lemmy.whynotdrs.org

Tried 3 times uploading an image during Create Post.

The error message in the bottom left corner: SyntaxError: Unexpected token 'R', "Request er"... is not valid JSON

Edit 1: Also tried uploading an image via the comment section's GUI, but it also fails with the same error message.

Edit 2: Similar to https://github.com/LemmyNet/lemmy-ui/issues/1489

  • But not the same as user dcx's comment that it was due to file size greater than 1 meg. The file I'm uploading is 766 KB.
  • Tested with 264 KB and 20 KB files, both fail to upload.
  • Tested from multiple browsers, upload also fails.

Well, I couldn't find error messages in the pictrs logs, but I blindly tried the fix suggested in the issue you found (https://github.com/LemmyNet/lemmy-ui/issues/1489#issuecomment-1612547605) and that seems to have fixed the issue 🎉️

Nice! It works with my 20 KB test image. Wanda Maximoff thanks you! 🙂

Legend! Nice one!

Thank you for reporting this!

I'll take a look tonight and see if I can figure out what's going on.

Image upload response: Request error: error sending request for url (http://pictrs:8080/image): operation timed out

Interesting on the backend stuff for Lemmy:

Funny that ImageMagick is still around. I used it mid-2000s. :)