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

    • Nyla Smokeyface ( Nyla_Smokeyface@beehaw.org ) OP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      3 years ago

      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 ) 
        link
        fedilink
        English
        arrow-up
        2
        ·
        3 years 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.