HTTP: Full error reporting
complete
Manuel - Techflow.ai GmbH
Currently we only get a "failed" message but not the actual failure message that the API is giving us back for detailed analytics.
It would be helpful to display the actual response from the API when there is an error.
-------------------------
BESTPRACTICE:
- Untick the "Evaluate all states as errors (except for 2xx and 3xx)" option in the module's advanced settings (see the 1st screenshot).
- Check the content of the Status codeitem with a Filter (see the 2nd screenshot).
Log In
Tereza Klobouckova
complete
Hello Makers,
this has been resolved some months ago. We return the error message in the "detail" field. This field can be mapped in error handlers as well.
Thank you and happy automating!
Tereza
Loic Sebe
I agree with Manuel, the workaround does not work. Also, could the setting "Evaluate all states as errors (except for 2xx and 3xx)" not be ON by default?
In most scenarios this needs to be ON. Right now it is easy to forget to toggle that ON and have silent errors
Arnoud Post
Caveat: This does not return the body data. If the server message is not clear enough and detailed info is in the body, you will not see it in your scenario and thus will not be able to use that for error handling.
You can turn it off, however then you will not be able to use the Make error handling tools as 4xx/5xx codes are not seen as an error in that case.
So it is one or the other...
For debugging you can use the Chrome dev tools or the Integromat Devtool plugin.
Please keep this feature request active and let us be able to get the body data on error.
Michal Máša
WORKAROUND:
- Untick the "Evaluate all states as errors (except for 2xx and 3xx)" option in the module's advanced settings (see the 1st screenshot).
- Check the content of the Status codeitem with a Filter (see the 2nd screenshot).
Manuel - Techflow.ai GmbH
Michal Máša: that kind of works. Unfortunately that will continue the scenario and we'll have to set up our own error handlers instead of being notified and putting the state of the scenario to "warning" on integromat.
Error handlers can't be triggered if that checkbox is turned off.
We get the exact data we need if I just turn off that box.
Why can't this data be displayed for us if we leave it turned on?
It should be really easy to implement.
Scott Andrews
Better error routine and understanding would be huge for developing and trouble-shooting our sequences!
Michal Máša
Do you refer to the error box in the bundle inspector (see the attached screenshot)?
Manuel - Techflow.ai GmbH
Michal Máša: Yes. We just get the Unauthorized but not the actual response body which often times contain more info about the actual error.
Manuel - Techflow.ai GmbH
Michal Máša: +the actual response body. It's in JSON format and we could use it for further automation.
For example:
{
"errors": [
"Token is expired"
]
}