Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashboard sometimes crashing with Unexpected token � in JSON at position 0 error in the logs #21703

Closed
Tracked by #21705
ibuziuk opened this issue Sep 15, 2022 · 1 comment
Assignees
Labels
area/dashboard area/hosted-che kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. sprint/current

Comments

@ibuziuk
Copy link
Member

ibuziuk commented Sep 15, 2022

Describe the bug

Dashboard sometimes crashing with Unexpected token � in JSON at position 0 error in the logs

Che version

7.50

Steps to reproduce

N/A

Expected behavior

No errors, pod is not crashing / crashloopbackoff

Runtime

OpenShift

Screenshots

No response

Installation method

OperatorHub

Environment

Dev Sandbox (workspaces.openshift.com)

Eclipse Che Logs

<100x>
Unexpected error null
Unexpected error null
undefined:1



SyntaxError: Unexpected token � in JSON at position 0
    at JSON.parse (<anonymous>)
    at R.<anonymous> (/backend/server/backend.js:8:544161)
    at R.emit (node:events:532:35)
    at e.exports.H (/backend/server/backend.js:2:472245)
    at e.exports.emit (node:events:520:28)
    at e.exports.dataMessage (/backend/server/backend.js:2:449005)
    at e.exports.getData (/backend/server/backend.js:2:448157)
    at e.exports.startLoop (/backend/server/backend.js:2:444956)
    at e.exports._write (/backend/server/backend.js:2:444311)
    at writeOrBuffer (node:internal/streams/writable:389:12)
+ echo 'Dashboard backend server is stopped.'
Dashboard backend server is stopped.
@ibuziuk ibuziuk added kind/bug Outline of a bug - must adhere to the bug report template. area/dashboard severity/P1 Has a major impact to usage or development of the system. area/hosted-che sprint/next labels Sep 15, 2022
@ibuziuk ibuziuk mentioned this issue Sep 16, 2022
59 tasks
@akurinnoy akurinnoy self-assigned this Sep 19, 2022
@ibuziuk
Copy link
Member Author

ibuziuk commented Oct 18, 2022

Closing since the appropriate logging has been added. A new issue should be created with a clear error message

@ibuziuk ibuziuk closed this as completed Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dashboard area/hosted-che kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. sprint/current
Projects
None yet
Development

No branches or pull requests

3 participants