Luca_Assandro | 2020-11-13 10:27:27 UTC | #1
Hy We have configured a web service data actions; when the web service return a 500 error, Architect take the failure branch. Is possible manage this error reading json response parameter?
Here the response:
HTTP/1.1 500 Internal Server Error
Transfer-Encoding: chunked
Content-Type: application/json
Content-Encoding: gzip
{"messaggio":"Errore generico","codice":"S01","instance":"7007b256-02a8-4f18-9c10-ac76eb1c1bff"}
Thanks Luca
Jason_Mathison | 2020-11-13 12:53:00 UTC | #2
Hi Luca, The short answer is no, if the data action returns a failure the JSON response is not available. One workaround for something like this is to make the web services call in an AWS lambda, and then always return a "200". You can then use a Lambda Data Action to call your lambda. The response can indicate if the web service call worked along with any other information you need to deal with the response.
--Jason
Luca_Assandro | 2020-11-16 14:47:55 UTC | #4
Many thanks Jason for the clarification.
system | 2020-12-17 14:47:55 UTC | #5
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 9310