Unreliable HTTP_REQUEST to Telegram API tasks

53 views
Skip to first unread message

thisisnota_love_song

unread,
May 21, 2024, 5:11:09 AMMay 21
to Tasker
I've asked this on reddit, but didn't get a response, but I'm posting here as this forum seems more active. Sorry for the duplication. This post includes a couple more details that are important. 

Environment
Phone: Samsung Galaxy
Android Version: 13 / SDK 33
One UI Version: 5.1
Tasker Version: 6.2.22 (installed via Google Play).

I purchased tasker a couple of years ago in Google Play, but couldn't get to grips with it. I've changed my phone in the last few days and, after a factory reset, installed tasker on it. I'm not sure how to tell whether my current installation is licensed, or activated, but I've not seen any screens saying it's a trial or anything. How can I confirm for sure?

I've created a bot on telegram and added it to a private group as an Administrator.
The bot reliably sends to the group all the messages I send to it using curl. I can invoke it in a bash loop and send 20+ messages without any delay between them. All messages arrive.

I have a very reliable internet connection.

I created two HTTP_REQUEST tasks; one for sending a message "Missed call", after a missed call, and one for sending a "New SMS" message when a new SMS has been received. To keep it simple for the moment, neither use variables.

I've created a profile for each, and linked each one to the respective task.

This works intermittently, but not reliably; sometimes it sends a message, and sometimes it doesn't. It doesn't matter if I wait between testing them, or test in rapid succession.

I've given all the permissions that Tasker has asked for, and checked tasker in "Apps settings", and the permissions seem correct.

I've ensured that the app can use the battery unrestricted. Anyway, while testing, the phone has been in "Always on display" mode, and Tasker has been open.

Strangely, Tasker seems to be the only app that does not appear in the apps that can be added to the "Never auto-sleeping apps", so I can't add it to that.

When I open a task ("Task Edit"), there are play and "fast forward" buttons at the bottom. tbh, I don't know what these are, as I can't find them in the user guide. If I keep pressing the fast-forward button, it seems to send test messages to the bot. When they are successfully sent, there's haptic feedback. If no message is sent, then no haptic feedback happens.

Sometimes after it fails to send a message, an error log is sometimes briefly shown, as follows. I don't know if this is the source of the problems, or a separate issue.

```
17.42.30/LicenseCheckerTasker Checking cached only
17.42.30/LicenseCheckerTasker cache validity left -668643
17.42.30/LicenseCheckerTasker Cached status: Licensed
17.42.30/LicenseCheckerTasker Cached only: Licensed
17.42.30/Ew add wait type EasyAction1 time 2147483647
17.42.30/Ew add wait type EasyAction1 done
17.42.30/E add wait task
17.43.00/E Error: 1
17.43.00/E java.util.concurrent.TimeoutException: The source did not signal an event for 30000 milliseconds and has been terminated.
```

Can anyone help me solve this, please?

Brenden M

unread,
May 29, 2024, 12:29:19 PMMay 29
to Tasker
I am quite unsure about how to follow all the reasoning of your setup or needs and the total setup of the device and apps. Doing troubleshooting on one single app with a dedicated support team, they often could say "oh, well, this other thing you didn't mention, now we are aware of it, you have to go ask them..." Such as, imagine an electrical issue with electrical issue symptoms, but tracing the problem to the electricity input didn't show a problem.... WAIT, turns out a water leak somewhere in the structure was causing the interference or issue noted, so not the electrical company's problem..... I could guess, Tasker is probably working ordinarily, and your setup is complex.

Simple to the direct idea: you have italicized the word sometimes twice. This is such a common issue in Tasker, in automation on MacOS etc, programming everywhere. On a great number of actions inside of Tasker there is a "timeout" value, and otherwise please experiment with "Wait" actions. Between Timeout and Wait, sometimes could be every time, or at least a great many more times. Getting things perfect is irrational, because even without Tasker or anything complicated, my hardware and software needs a boot to the disk and a clear memory to start up again.

Brenden M

unread,
May 29, 2024, 12:30:20 PMMay 29
to Tasker
What if the source is not sending a signal? How can you ask the source?
Reply all
Reply to author
Forward
0 new messages