I am querying a webhook for some value. If the value is not found I get this error from the webhook:
Action details:
Send web request
Error response HTTP body:{"errors":{},"errorMessages":["The property worktype does not exist."],"httpStatusCode":{"present":true}}Error publishing webhook. Response HTTP status:404
I tried to use an if/else block with these conditions: {{webhookResponse.status}} equals 200 and 404 but I am still getting the error like the condition is never tested (i.e. the failed send webhook test stops execution of the rest of the rule).
I used another API endpoint and condition as a workaround for this problem:
Hi @Richard Vencu ,
Have you worked around your issue then or did you still need some assistance?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for asking. My particular problem is solved but the general question still stands.
Is it possible to test webresponse status code and follow if/else branches in case it is not 2xx type?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Richard Vencu,
I'm afraid not. We have got an improvement tracking this, which would add the option to allow the rule to continue on a non 2xx response.
https://codebarrel.atlassian.net/browse/AUT-1622
Cheers,
Simeon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Simmo , thanks for creating the ticket, any idea when we can expect the resolution. This is important to handle it because , in my scenario I have multiple calls and actions based on the status if its 200,404,400 or 500.
I am adding comments , doing some other actions but in this case i would not be able to do anything if the status received other than 200.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Muhammad Ramzan(Atlassian Certified Master) ,
I'm afraid it isn't prioritised at the moment. The best cause of action for you to take if you want to try and get it pushed along is to raise a support ticket.
Cheers,
Simeon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Simmo ,
have there been any changes on the matter as I don't have access to the linked tickets?
We are having problems due to the response timing out after 30 seconds even though the request was successfull.
Most likely depending on the performance of the responding server, this breaks the flow of our automation regularly.
Thanks!
Best Regards,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Thomas Balasch,
This is quite an old thread! The AUT tickets have been dropped in favour of the https://jira.atlassian.com/projects/AUTO/summary project.
I'm not sure that this got traction. Best is to see if you can find it on there and if not, raise a suggestion/bug :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.