[5.40] Always return status and response of a web request
CompletedIntroduced in VertiGIS Studio Workflow 5.40
If a web request in a (server) workflow fails, for instance because it receives an HTTP status code in the 400 or 500 range, an exception is thrown. Any details of why the web request failed are missing, and the workflow trace only contains a message like this: [WF: Activity execution error] Failed to execute activity 27 with action gcx:wf:core:request:WebRequest: [WF0014] Cannot perform web request.)
It can be useful to see the returned HTTP status code and the response body, because many REST API's use this to give information about (failed) requests. The only way to see what's going on now, is to install Fiddler on the workflow server. Of course this is only possible if there is access to the server.
I'd like to propose that the web request is modified so that it either returns the HTTP status code and response body, or that, in the case of an exception, these are contained in the error object, so that they can be retrieved in a Try activity
-
I agree. This is similar to Handle Workflow 5 Web Request Status Codes which is also planned.
0 -
Berend Veldkamp This just missed the deadline for 5.39, but it will be in 5.40.
0
Please sign in to leave a comment.
Comments
2 comments