mirror of
https://github.com/plankanban/planka.git
synced 2025-12-09 09:13:12 +03:00
[Bug]: Crash on login [JSON.parse: unexpected end of data at line 1 column 1 of the JSON data] #13
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sbrl on GitHub.
Where is the problem occurring?
I encountered the problem while using the application (Frontend)
What browsers are you seeing the problem on?
Firefox
Current behavior
I can login fine, but then the spinnner goes endlessly and in the web dev console I see the below error.
Even with
DEBUG=*there are no errors to speak of on the server.I'm using a manual setup ref https://docs.planka.cloud/docs/installation/manual/debian-and-ubuntu w/caddy as a reverse proxy ref https://docs.planka.cloud/docs/configuration/reverse-proxy/caddy, but with
flush_timeout -1as a debugging step - i.e. disabling buffering completely.I did the setup just now.
Desired behavior
It to not crash
Steps to reproduce
Other information
@meltyshev commented on GitHub:
Hey! It looks like one of the API endpoints (most likely
/api/config) is returning non-JSON data, and the client fails to parse it since JSON is expected.The best way to debug this is to check exactly what's being returned and why. You can:
/api/config.socket.io-> "Messages" and check what's coming through.