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

HTTP Request does not show the error in response #5877

Closed
wildsonc opened this issue Mar 31, 2023 · 5 comments · Fixed by #5891
Closed

HTTP Request does not show the error in response #5877

wildsonc opened this issue Mar 31, 2023 · 5 comments · Fixed by #5891
Labels

Comments

@wildsonc
Copy link

Describe the bug
When it gives an error, only the status of the request is returned, and no longer the response. Before, a message was returned with status and error together, and it was possible to know why the request failed.

To Reproduce
Steps to reproduce the behavior:

  1. Create a request that returns an error status
  2. See the error (or lack thereof)

Expected behavior
Before something like this was returned:
{"status":"rejected", "reason": { "message":"400 - "{ "id": "Not found" }"", "name":"Error"} }

Environment (please complete the following information):

  • OS: MacOS
  • n8n Version 0.222.0
  • Database system Postgresql
  • Operation mode main

Additional context
CleanShot 2023-03-31 at 17 09 41

@wildsonc wildsonc changed the title HTTTP Request does not show the error in response HTTP Request does not show the error in response Mar 31, 2023
@Joffcom
Copy link
Member

Joffcom commented Mar 31, 2023

Hey @wildsonc

What version of n8n were you on before that had the errors you are expecting?

I know we changed something a while back so I am not sure if this is a bug at the moment or to be expected.

@wildsonc
Copy link
Author

Hey @wildsonc

What version of n8n were you on before that had the errors you are expecting?

I know we changed something a while back so I am not sure if this is a bug at the moment or to be expected.

Test now in version 0.221.2, key "message" is returned.

c94c6c88a60e3bf9b37e10580aff13703f804d5b5b5fe08adfc5fc78f6b25f25

Maybe it's related to this commit #5699, where it would be necessary to add the message to the return of this object.

@Joffcom
Copy link
Member

Joffcom commented Apr 3, 2023

Hey @wildsonc,

The good news is the fix for this has been put in but not merged yet.

@janober
Copy link
Member

janober commented Apr 19, 2023

Got released with [email protected]

@janober
Copy link
Member

janober commented Apr 19, 2023

Fix got released with [email protected]

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 a pull request may close this issue.

3 participants