-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[REST connector] Access response in error expression with status code 400 #2520
Comments
@saig0 Thank you for reporting this. You would then be able to use the following error expression:
|
@johnBgood Can we change the property name to |
@sbuettner It's not been release if I'm correct, so yes let's change the name 👍 |
@johnBgood sounds interesting. 👍 Why do we plan to store the response in In other cases, I can access the response directly via |
@saig0 good question :D The idea is that the solution explained above is pretty much free to implement + it solves the user need. Then, we can collect users' feedback, if they're happy great. If not we can iterate and go for the more complex solution. It's possible but longer and trickier :) (but we might implement it some day) |
@johnBgood thank you for the reasoning. 👍 I care about the UX and vote for an intuitive solution that is aligned with the other expressions. If it is a general behavior that connectors store the error details in I don't need a solution very soon. 😉 |
Is there already a plan for when this feature will be available? Our project uses the REST connectors quite frequently. In many cases, the response would also be essential for correct processing in the event of an error. |
Is your feature request related to a problem? Please describe.
I use the SpaceTraders connector in my process and try to access the response in the error expression. The connector is based on Camunda's REST connector.
I followed the documentation for error expressions (ref) but I can't access the response if the API returned a status code
400
.In my case, the API returns a status code
400
and sends additional data about the failure:NOTE: This is specific for a failure response (i.e. status code
4xx
). If the response returns successfully (i.e. status code2xx
), I can access the response data in the error expression.Describe the solution you'd like
I can access the response data in the error expression, even if the response has a status code
400
.I can use the following error expression to throw a BPMN error if the error code in the response matches:
Describe alternatives you've considered
None. Since the response has a status code
400
, I can't handle the response in the connector or the process.Additional context
How to reproduce:
The text was updated successfully, but these errors were encountered: