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?
It’s the result of the webservice returning an html error page instead of a json response.
That makes sense.
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.
It would be preferable to return an error response in a json string, if that’s feasible.