-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
"Webhook Response" does not respect the given Response #7077
Comments
Hey @altechzilla Good spot it looks like the node was created to pass on the input rather than what the node is configured to return for the webhook. I will get a ticket created for this but it will possibly be a breaking change so we will need to think about the best way to change this, it could be that we add an option to output the node message. |
Hey @Joffcom , it actually already has an option to be set as None. Which I assume is the default for the node. But for some reason even if you do select JSON it won't respect it. Thank you for having a look into it! |
Hey @altechzilla, As far as I know that node doesn't have an option and it will always pass on the input items, Maybe I have missed something here though... Just to check this issue is around the output of the node itself and not the actual response the webhook node returns right? |
Hmm... You might be right—in the sense that I mistook the output for what the response was expected to be. Perhaps there could be a toggle that says "Set output to response" if the webhook response is set to JSON. |
@altechzilla that is what I am thinking although the question then is... does that make this a bug or a feature request which isn't handled here? |
Let's close this for now and I'll try it again later to make sure it's an actual bug - thank you! |
Hey @Joffcom , not sure if this is related but here's what happens when trying to send a JSON: https://share.abruptive.com/o0uKbJPn https://share.abruptive.com/2NuWdpP6 Even thought he node was ran and the input is good, the response body is good, but the node errors out on the output side. |
Just confirmed @Joffcom that the node does not respect the JSON response it's configured with, unless it's set to "First Node". If you set it to JSON, it will not follow through on execution:
|
Hey @altechzilla, I can see the problem now, We expect the JSON to still be a string and not a JSON object which is why it is failing. To fix this try...
I have created |
Epic! |
Github issue / Community forum post (link here to close automatically): #7077
Fix got released with |
Hey @altechzilla, Great news, This has been fixed and released :) for now I am going to mark this as closed. Let me know if you have any other questions on this issue. |
Describe the bug
I'm using IF conditionals to make sure HTTP requests are processed correctly. If they aren't, I want to submit a response in a specific format, as seen below.
For some reason, when it errors out it won't respect that JSON response. Instead, it will simply pass its input forward.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The webhook response should send the custom response instead of its input.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: