usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
26.02k stars 1.19k forks source link

Add verbose/debug output #1601

Open jonocodes opened 8 months ago

jonocodes commented 8 months ago

I am having an error making a POST request.

I'm posting to: https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyPassword?key=XXX

And in the response tab it shows: Error invoking remote method 'send-http-request': AxiosError: Request failed with status code 400

This is not the full body of the error. 400 errors on this API usually look like:

{
  "error": {
    "code": 400,
    "message": "INVALID_LOGIN_CREDENTIALS",
    "errors": [
      {
        "message": "INVALID_LOGIN_CREDENTIALS",
        "domain": "global",
        "reason": "invalid"
      }
    ]
  }
}

When I export this to a curl command it runs fine. And I am not using any variables.

I have no way to figure out what the exact issue is. I think any of these would help:

Using Bruno 1.9

sanjai0py commented 8 months ago

similar #1518

jonocodes commented 8 months ago

Side note. I see the same problem on Bruno 1.6 which I have installed on another machine. I also tried the chrome debug console, which does not display the network requests. And tcpdump wont help since this is https.

f3rn4nd0-c354r commented 7 months ago

similar #1518

I think the full input/output should be available even if the requests succeeds. Sometimes a 200 response is a bug.