Error in workflow component "API Post (JSON)" not trigger connected component in "Error" exit #635

Closed
opened 2026-04-05 16:21:35 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @luisxkimo on 11/21/2024

Describe the bug

Using the component "API Post (JSON)", could be an issue if the URL requested have errors in the SSL certificate.

Because we cannot add an option to skip this check, we added other component in the "Error" output, to be triggered as workaround, but not works.

To Reproduce
Steps to reproduce the behavior:

  1. Create a workflow and add some componentes like in this screenshot

image

Expected behavior
Given previous example, I expect that the component about custom javascript code is executed when the "Api post" component have any kind of error.

In this specific case, the error is related with the certificate of the endpoint used in the "Api post" component.

Additional Context

Here is the log of the workflow:

Nov 21 2024, 11:16 GMT: Executing Component: api-post-1
Nov 21 2024, 11:16 GMT: Component Args:
Nov 21 2024, 11:16 GMT: {"url":"https://apprise.com/notify","request-body":{"urls":"slack:///123/456/789","body":"Check in: xxxx","title":":red_circle::warning: Infra - SSL - Issue","type":"failure"}}
Nov 21 2024, 11:16 GMT: Component Logs: api-post-1
Nov 21 2024, 11:16 GMT: Something wrong happened.
Nov 21 2024, 11:16 GMT: Something wrong happened.

Deployment Type
K8s cluster with Helm chart

*Originally created by @luisxkimo on 11/21/2024* **Describe the bug** Using the component "API Post (JSON)", could be an issue if the URL requested have errors in the SSL certificate. Because we cannot add an option to skip this check, we added other component in the "Error" output, to be triggered as workaround, but not works. **To Reproduce** Steps to reproduce the behavior: 1. Create a workflow and add some componentes like in this screenshot ![image](https://github.com/user-attachments/assets/14130949-65d7-4891-9fa7-0dee4dd9a555) **Expected behavior** Given previous example, I expect that the component about custom javascript code is executed when the "Api post" component have any kind of error. In this specific case, the error is related with the certificate of the endpoint used in the "Api post" component. **Additional Context** Here is the log of the workflow: ``` Nov 21 2024, 11:16 GMT: Executing Component: api-post-1 Nov 21 2024, 11:16 GMT: Component Args: Nov 21 2024, 11:16 GMT: {"url":"https://apprise.com/notify","request-body":{"urls":"slack:///123/456/789","body":"Check in: xxxx","title":":red_circle::warning: Infra - SSL - Issue","type":"failure"}} Nov 21 2024, 11:16 GMT: Component Logs: api-post-1 Nov 21 2024, 11:16 GMT: Something wrong happened. Nov 21 2024, 11:16 GMT: Something wrong happened. ``` Deployment Type K8s cluster with Helm chart
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/oneuptime#635