You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SDK supports error handling by extracting the error code and error message from the SpaceTraders response.
Currently, the error code and message are extracted from the connector's error message by using FEEL string functions. It works but it is not very reliable.
With Camunda 8.3.3. it should be possible to access the error code and message directly from the response body. For example:
if error.code = "400" and response.body.error.code = 4236
then bpmnError(response.body.error.code, response.body.error.message)
else null
Important: to access the error from the response body, it must be mapped in the result expression. The result expression is evaluated first. The output is the input for the error expression.
The text was updated successfully, but these errors were encountered:
Currently, it is not possible to access the response data of a failed request. I created a feature request for the REST connector: camunda/connectors#2520.
Description
The SDK supports error handling by extracting the error code and error message from the SpaceTraders response.
Currently, the error code and message are extracted from the connector's error message by using FEEL string functions. It works but it is not very reliable.
With Camunda 8.3.3. it should be possible to access the error code and message directly from the response body. For example:
Important: to access the error from the response body, it must be mapped in the result expression. The result expression is evaluated first. The output is the input for the error expression.
The text was updated successfully, but these errors were encountered: