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

Unexpected token u in JSON at position 0 #101

Closed
dfuentes87 opened this issue Apr 9, 2023 · 1 comment
Closed

Unexpected token u in JSON at position 0 #101

dfuentes87 opened this issue Apr 9, 2023 · 1 comment
Labels
priority: medium will look soon type: bug Something isn't working

Comments

@dfuentes87
Copy link

Server:
Debian 11, 64 bit; 1 CPU 2.65 Ghz; 2 GB RAM
Quetre:
Docker build (latest) using Nginx frontend proxy

Troubleshooting:
Confirmed not OOM-killer, have enough disk space, fully removed container and rebuilt the container

Issue:
95% of my requests regardless of question looked up end up in a 500 Internal Server Error with the following error in the logs:

2023-04-09T19:12:52.938566622Z  🔴 Unexpected token u in JSON at position 0
2023-04-09T19:12:52.938621384Z SyntaxError: Unexpected token u in JSON at position 0
2023-04-09T19:12:52.938626294Z     at JSON.parse (<anonymous>)
2023-04-09T19:12:52.938642161Z     at file:///app/fetchers/getAnswers.js:16:16
2023-04-09T19:12:52.938646118Z     at Array.map (<anonymous>)
2023-04-09T19:12:52.938649765Z     at getAnswers (file:///app/fetchers/getAnswers.js:15:34)
2023-04-09T19:12:52.938653819Z     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2023-04-09T19:12:52.938657546Z     at async getOrSetCache (file:///app/utils/getOrSetCache.js:9:23)
2023-04-09T19:12:52.938661156Z     at async file:///app/controllers/viewController.js:50:23

That is the full error at each load of a page. If I keep refreshing, eventually the page does correctly show the answer, but then continuing to refresh goes back to a 500 ISE with the same error in the logs.

Screenshot:
Screenshot 2023-04-09 at 3 30 07 PM

@zyachel
Copy link
Owner

zyachel commented Apr 10, 2023

I'll take a look into this.

@zyachel zyachel added type: bug Something isn't working priority: medium will look soon labels Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: medium will look soon type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants