-
Notifications
You must be signed in to change notification settings - Fork 8
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
Guard against invalid JSON #2
Comments
hmm... also, are there some that are sent by browsers, or is this just from testing? https://github.com/adobe/theblog/blob/master/scripts/martech.js#L164 i would be really surprised if actual browsers send something broken here. |
Me too, and so far the only occurrence is this one:
The user agent tells the story. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Invalid JSON bodies just fail badly with an error 500:
stderr | 1cc70987 | abort: Unexpected input end in ~lib/assemblyscript-json/decoder.ts(156:5)
I'm not sure how to catch parse errors with
assemblyscript-json
yet.The text was updated successfully, but these errors were encountered: