Up until yesterday, this problem didn’t exist but today when I was connected to a VPN, I couldn’t post either a text or image post. I got this error: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

After I disconnected from my VPN, the error went away. What gives?

  • Dr. Wesker
    link
    fedilink
    English
    0
    edit-2
    10 months ago

    With zero context, that error doesn’t look intentional, let alone targeted at VPN users. I believe it is the result of a malformed JSON payload.

    • @stevestevesteve
      link
      1810 months ago

      It’s the result of the webservice returning an html error page instead of a json response.

      • @solrize
        link
        410 months ago

        It would be preferable to return an error response in a json string, if that’s feasible.

        • @stevestevesteve
          link
          210 months ago

          Of course it would but I’m just saying what I’m seeing

        • @TootSweet
          link
          English
          610 months ago

          Lemmy-UI’s error reporting leaves… much to be desired. It’s better than it used to be, but not as good as it could be.