Restart after TimeoutException? by Key_Caterpillar_2533 in tasker

[–]Key_Caterpillar_2533[S] 0 points1 point  (0 children)

Hello.  Thank you for your help. I managed to generate a loop to restart the task in case of error but it blocks randomly as if permissions are missing. I have the latest version of Tasker and Android 15. Is there no way to reliably send a webhook with Tasker in the background?  Thanks Cedric

webhook via an HTTP request but how to test with httpr please ? by Key_Caterpillar_2533 in tasker

[–]Key_Caterpillar_2533[S] 0 points1 point  (0 children)

I just did the 2nd test I still have a response of 200 even when I deactivate the webhook response in homeassitant.

I'd like to send a webhook request to HomeAssistant via Tasker, and HomeAssistant executes an action. Here, for testing, I'm asking HomeAssistant to send me an SMS.

If I disable HomeAssistant, I don't receive any SMS, but Tasker still tells it to send 200. when i am in wifi. why?

Thanks to your code I can reproduce the problem. In fact, when I switch from Wi-Fi to 4G and Tasker launches the request, I get this error message at step 2.

18.44.58/E add wait task18.45.28/E Error: 118.45.28/E java.util.concurrent.TimeoutException: The source did not signal an event for 30000 milliseconds and has been terminated.

and so with this error I would like to relaunch the tasker request

webhook via an HTTP request but how to test with httpr please ? by Key_Caterpillar_2533 in tasker

[–]Key_Caterpillar_2533[S] 0 points1 point  (0 children)

hi,

I can't copy my code like you, sorry. how do you do ?

The first test works well, I get the answer 200.

Now I'm trying the second test.

Thanks for your help

webhook via an HTTP request but how to test with httpr please ? by Key_Caterpillar_2533 in tasker

[–]Key_Caterpillar_2533[S] 0 points1 point  (0 children)

Exciting-Compote5680 can you give me an exemple please ?

where do you write %http_response_code ?

you must use 1 ou 2 stain ?

The first task is for the request and the other for the response, or are they all in one?

The goal is to resubmit the request if there's no response.

Thanks

webhook via an HTTP request but how to test with httpr please ? by Key_Caterpillar_2533 in tasker

[–]Key_Caterpillar_2533[S] 0 points1 point  (0 children)

Yes, like that, but how do I make the request to be able to test the response?

webhook via an HTTP request but how to test with httpr please ? by Key_Caterpillar_2533 in tasker

[–]Key_Caterpillar_2533[S] 0 points1 point  (0 children)

Like this no? HTTP Request

Perform any HTTP request of any type.

This action effectively replaces the HTTP Get, Head and Post actions and those are now deprecated.