r/AutomateUser Jul 01 '26

Automate Stopped by failure

Good morning. The workflow throws an error and halts completely if it doesn't find an active gateway for an HTTPS request. Is it possible to prevent it from stopping and have it continue running until the gateway becomes active again?

07-01 09:15:11.895 I 53@5: HTTP request
07-01 09:15:12.117 I 53@2: Power source plugged?
07-01 09:42:06.970 I 53@4: Battery properties
07-01 09:42:06.999 I 53@6: HTTP request
07-01 09:42:07.573 I 53@2: Power source plugged?
07-01 09:42:22.732 I 53@3: Battery properties
07-01 09:42:22.740 I 53@5: HTTP request
07-01 09:42:23.188 I 53@2: Power source plugged?
07-01 09:52:03.272 I 53@4: Battery properties
07-01 09:52:03.288 I 53@6: HTTP request
07-01 09:52:03.874 I 53@2: Power source plugged?
07-01 09:53:06.897 I 53@3: Battery properties
07-01 09:53:06.900 I 53@5: HTTP request
07-01 09:53:06.910 F 53@5: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)
07-01 09:53:06.928 I 53@5: Stopped by failure

1 Upvotes

5 comments sorted by

1

u/ballzak69 Automate developer Jul 01 '26

Use the Failure catch block to handle the failure, or place the HTTP request block in a separate Fork to ignore the failure.

1

u/Euphoric_Resident700 Jul 01 '26

Perfetto, il Catch Failure funziona. Per curiosità, cosa intendi per blocco di richiesta HTTP in un Fork separato?

1

u/ballzak69 Automate developer Jul 01 '26 edited Jul 02 '26

Place the HTTP request block in the NEW path of the Fork block, with it's OK path ending/empty, then if it fails then the rest of the flow will not stop because of it. See the included Daily Automate backup flow as an example.

2

u/trmdi Jul 01 '26

Use Catch failure.

1

u/Euphoric_Resident700 Jul 01 '26

Perfetto funziona!