[Bug]: Crash on login [JSON.parse: unexpected end of data at line 1 column 1 of the JSON data] #13

Open
opened 2025-10-09 18:34:21 +03:00 by OVERLORD · 1 comment
Owner

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 -1 as a debugging step - i.e. disabling buffering completely.

I did the setup just now.

Desired behavior

It to not crash

Steps to reproduce

  1. Run the manual install steps
  2. See crash

Other information

SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data [index-DWjGvHqQ.js:formatted:11142:11](https://kanban.starbeamrainbowlabs.com/assets/index-DWjGvHqQ.js:formatted)
The above error occurred in task queueRequest
[index-DWjGvHqQ.js:formatted:11143:11](https://kanban.starbeamrainbowlabs.com/assets/index-DWjGvHqQ.js:formatted)
SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data [index-DWjGvHqQ.js:formatted:11142:11](https://kanban.starbeamrainbowlabs.com/assets/index-DWjGvHqQ.js:formatted)
The above error occurred in task request
    created by initializeCore
    created by coreSaga
    created by rootSaga
Tasks cancelled due to error:
coreSaga
routerWatchers
socketWatchers
coreWatchers
modalsWatchers
usersWatchers
projectsWatchers
projectManagersWatchers
backgroundImagesWatchers
baseCustomFieldGroupsWatchers
boardsWatchers
boardMembershipsWatchers
labelsWatchers
listsWatchers
cardsWatchers
taskListsWatchers
tasksWatchers
attachmentsWatchers
customFieldGroupsWatchers
customFieldsWatchers
customFieldValuessWatchers
commentsWatchers
activitiesWatchers
notificationsWatchers
notificationServicesWatchers [index-DWjGvHqQ.js:formatted](https://kanban.starbeamrainbowlabs.com/assets/index-DWjGvHqQ.js:formatted)
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 -1` as a debugging step - i.e. disabling buffering completely. I did the setup just now. ### Desired behavior It to not crash ### Steps to reproduce 1. Run the manual install steps 2. See crash ### Other information ``` SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data [index-DWjGvHqQ.js:formatted:11142:11](https://kanban.starbeamrainbowlabs.com/assets/index-DWjGvHqQ.js:formatted) The above error occurred in task queueRequest [index-DWjGvHqQ.js:formatted:11143:11](https://kanban.starbeamrainbowlabs.com/assets/index-DWjGvHqQ.js:formatted) SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data [index-DWjGvHqQ.js:formatted:11142:11](https://kanban.starbeamrainbowlabs.com/assets/index-DWjGvHqQ.js:formatted) The above error occurred in task request created by initializeCore created by coreSaga created by rootSaga Tasks cancelled due to error: coreSaga routerWatchers socketWatchers coreWatchers modalsWatchers usersWatchers projectsWatchers projectManagersWatchers backgroundImagesWatchers baseCustomFieldGroupsWatchers boardsWatchers boardMembershipsWatchers labelsWatchers listsWatchers cardsWatchers taskListsWatchers tasksWatchers attachmentsWatchers customFieldGroupsWatchers customFieldsWatchers customFieldValuessWatchers commentsWatchers activitiesWatchers notificationsWatchers notificationServicesWatchers [index-DWjGvHqQ.js:formatted](https://kanban.starbeamrainbowlabs.com/assets/index-DWjGvHqQ.js:formatted) ```
Author
Owner

@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:

  • Open dev tools (F12) -> "Network" tab -> "Fetch/XHR" and inspect the response from /api/config.
  • Or, if it happens over the websocket, go to the "Network" tab -> "Socket" or "WS" → select socket.io -> "Messages" and check what's coming through.
@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: - Open dev tools (F12) -> "Network" tab -> "Fetch/XHR" and inspect the response from `/api/config`. - Or, if it happens over the websocket, go to the "Network" tab -> "Socket" or "WS" → select `socket.io` -> "Messages" and check what's coming through.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#13