A SyntaxError with JSON.parse occurs when trying to change my avatar and when trying to upload a image to a new post.
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
almost certainly a byproduct of updating and hopefully a quick fix, but we can’t get to this until tomorrow at earliest because this has already been such a clusterfuck. in the mean time you’ll have to work around it or hang with it
oh no! I’m sorry that the update has been so rough. Please take your time, I’m not in a rush or anything haha. Thank you for all the work y’all do to keep the instance running!
- Los ( @Los@beehaw.org ) 2•1 year ago
Uploading pictures is broken at the moment. Try again in a while once the admins have fixed it.
Okay, I believe this is now fixed. PLEASE try your image uploads again.
It worked perfect for avatars, but when posting it seemed to not like the particular PNG image I was trying to upload. It gave me a syntax error when I tried. I tried with random other pictures on my computer and they worked. It was a 15 MB picture though. I converted it to a smaller PNG (2 mb) and it immediately worked. I don’t know if I missed something about file size and that’s why it didn’t work?
Thank you so much for your help!!!
- PenguinCoder ( @Penguincoder@beehaw.org ) 1•1 year ago
Thanks for testing again. Yeah there is an image size maximum of 10MB, which is pretty generous as it is. Please be sure to use smaller images for the web.
Hi, I will test this out and try to get a solution. What image types are you experiencing this on? jpg, png? _All of them?
I’ve tried PNG mainly but it seems to happen with JPGs too, at least when uploading my avatar.
The error when trying to uplaod an avatar now says:
{"data":{"msg":"Provided process path is invalid","files":null},"state":"success"}
ETA: The error is still the SyntaxError (
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
) when trying to upload an image to a post.ETA2: Okay the errors seem to differ each time I try uploading. I realized that I could’ve been uploading images wrong and I decided to try using the image button in the body of the post, but sometimes the error won’t show up at all but the image wasn’t added.
- PenguinCoder ( @Penguincoder@beehaw.org ) English2•1 year ago
Thanks for the added details, it helps. I’m seeing the same differing errors/issues for any image uploads. Even after entirely removing our cache from the path, it’s still failing. Still looking into it and trying to focus on locating where it’s failing.