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

Unhandled Error: SyntaxError JSON.parse(<anonymous>) #5303

Conversation

ainouzgali
Copy link
Contributor

What change does this PR introduce?

Catch the parsing error for invalid json input on the variables assignment.
I decided to return an empty payload so it will be more pronounced for the user that the preview shown is without his variable assignments.
Screen Shot 2024-03-14 at 14 50 24
Screen Shot 2024-03-14 at 14 50 38

Why was this change needed?

Other information (Screenshots)

Copy link

linear bot commented Mar 14, 2024

@ainouzgali ainouzgali merged commit aeaf2a6 into nv-3550-translation-with-params-not-included-in-payload-generation Mar 17, 2024
19 checks passed
@ainouzgali ainouzgali deleted the nv-3548-unhandled-error-syntaxerror-jsonparseanonymous branch March 17, 2024 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants