-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Bruno crashes when parsing non-JSON success response #3119
Labels
bug
Something isn't working
Comments
TheoD02
changed the title
Bruno API Client crashes when parsing non-JSON success response
Bruno crashes when parsing non-JSON success response
Sep 17, 2024
TheoD02
added a commit
to TheoD02/bruno
that referenced
this issue
Sep 17, 2024
5 tasks
helloanoop
pushed a commit
that referenced
this issue
Sep 18, 2024
I have merged the PR that fixes this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have checked the following:
Describe the bug
Bruno crashes when handling a server response that returns
"true"
with theapplication/json
content type. This occurs when sending a request to the Dokploy API in my case (/api/application.update
). The issue seems related to Bruno attempting to parse the"true"
response, which is not valid JSON, leading to a crash.Steps to Reproduce:
"true"
and sets theContent-Type
header toapplication/json
.Expected Behavior:
Bruno should be able to handle and display non-JSON responses like
"true"
without crashing, especially when the content type isapplication/json
.Actual Behavior:
"true"
, Bruno crashes due to invalid JSON parsing.Additional Context:
"true"
is sent with theapplication/json
content type, which is technically incorrect, but Bruno should still handle this gracefully.e.g.:
Returning this in Symfony Controller will make bruno crash
.bru file to reproduce the bug
No response
Screenshots/Live demo link
The text was updated successfully, but these errors were encountered: