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

error Unexpected end of JSON input #397

Closed
hahn-kev opened this issue Nov 20, 2023 · 2 comments · Fixed by #410
Closed

error Unexpected end of JSON input #397

hahn-kev opened this issue Nov 20, 2023 · 2 comments · Fixed by #410
Assignees
Labels
bug Something isn't working
Milestone

Comments

@hahn-kev
Copy link
Collaborator

there's a whole bunch of traces in our logs with that error, here's an example
https://ui.honeycomb.io/sil-language-forge/environments/prod/datasets/lexbox-sveltekit-client/result/xA8qXQ1BWPh/trace/g9hxXteCjES?fields[]=s_name&fields[]=s_serviceName&span=949d9f7f3d33dd6b

@hahn-kev hahn-kev added bug Something isn't working OpenTelemetry owner: Tim, Kevin labels Nov 20, 2023
@hahn-kev hahn-kev added this to the v1 milestone Nov 20, 2023
@hahn-kev
Copy link
Collaborator Author

@myieye would you look into this? It's throwing a bunch of errors into our tracing and I suspect it's from checkly since it's every 30 minutes. Looks like it has something to do with attempting to logout but it's hard to tell.

@myieye myieye self-assigned this Nov 23, 2023
@myieye
Copy link
Contributor

myieye commented Nov 23, 2023

This looks like the relevant issue: sveltejs/kit#10022

I.e. we're getting these errors, because:

  • We have routes that don't have load functions
  • SvelteKit seems to screw up a bit here and try to invalidate the data for these routes
  • The invalidation requests match part of a route, so they don't land in our [catch-all] route, instead the server handle just returns a 404
  • The client-side invalidation code expects JSON 💥

@myieye myieye linked a pull request Nov 23, 2023 that will close this issue
@myieye myieye closed this as completed Nov 28, 2023
@myieye myieye removed the OpenTelemetry owner: Tim, Kevin label Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants