Skip to content

move json parsing into format to avoid error on invalid json response#840

Merged
tjholm merged 1 commit intonitrictech:mainfrom
HomelessDinosaur:json-body-invalid
Jan 8, 2025
Merged

move json parsing into format to avoid error on invalid json response#840
tjholm merged 1 commit intonitrictech:mainfrom
HomelessDinosaur:json-body-invalid

Conversation

@HomelessDinosaur
Copy link
Member

When a response in the dashboard had invalid json, the response content component would have a spinner running indefinitely. This fix moves the json parsing from the response body and into the formatJson method. If it is invalid or bytes, it will produce the result in the content box directly rather than an unexpected error.

@tjholm tjholm merged commit b7f905c into nitrictech:main Jan 8, 2025
5 checks passed
@nitric-bot
Copy link
Contributor

🎉 This PR is included in version 1.56.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants