Webhooks stopped working

tja42

New member
Yesterday it was the first time I started to use the Webhooks. They worked fine, sometimes I had a delay until my action was triggered.
But yesterday evening they suddenly stopped working completely.
When I open the URL it says: "Invalid device identifier: a059ce47...."

In the log I can see that pushing the token worked when I created the first webhook macro.
It also was invoked successfully after that.
But why did it stop working now?

I tried with my home WLAN connection as well as with my mobile connection.
It just says that the device id is invalid.
Screenshot 2021-05-13 091610.png
 

FrameXX

Well-known member
One thing you can do, is to backup macrodroid and than remove all of its data, then import again. In that case your webhook id will be changed. I never saw something like this happening, so I don't know any other solution, but maybe there's some other easyer solution.
 

tja42

New member
Thank you that worked.
I assume there is no easier way than to uninstall to get a new webhook id?

Also I use the same macro to be notified about scripts which are running on my Raspberry Pi.
The script are run every hour so when I sleep there would be lots of new messages on my phone when I wake up.
There is the option to replace the existing notification but can I somehow link that to a message id I can use in the scripts,
so each script only replaces its own message and not messages of other scripts?
 

FrameXX

Well-known member
There is the option to replace the existing notification but can I somehow link that to a message id I can use in the scripts,
so each script only replaces its own message and not messages of other scripts?
No. Replacing updating notifications currently work with only 1 active MacroDroid notification, but you can use Notification Listener plugin which supports multiple notification ids which you can update separately. It works with MacroDroid variables (just normally write them there).
 

MacroDroidDev

Administrator
Staff member
@tja42 Sorry I think your setting up of webhooks coincided with a server issue I had around that time. I had to revert to a server backup and lost a small amount of data, presumably including the data for your webhook configuration (The token needed to trigger on your specific device).
 

Jacob L

Moderator (Lawsonator)
There's an action called clear notification, which you can link to the notification text if that's what you wanted.
 

MacroDroidDev

Administrator
Staff member
Hello, can you please tell me the webhook is working now?
I keep getting Invalid device identifier

Thank you!
If you cannot get it working, please export your macros somewhere, clear the app data for MacroDroid and then re-import your macros. This should force a regeneration of the token used in the server (which may have been lost due to the server issue).
 
@tja42 Sorry I think your setting up of webhooks coincided with a server issue I had around that time. I had to revert to a server backup and lost a small amount of data, presumably including the data for your webhook configuration (The token needed to trigger on your specific device).
What guarantee is there that the use of Webhook always works and in addition to that, how many Webhook can be sent and / or received per minute and how long are they destroyed if it is still on hold?
 

MacroDroidDev

Administrator
Staff member
@davisgodoy I offer no guarantees around webhooks, beyond that they should work nearly all the time.

If you are looking to send many webhooks per minute then I suggest you look elsewhere as I don't have the infrastructure to support this kind of use case from many users. I don't currently impose any service limits but I intend to at some point if I see individual users making very heavy use of the service.
 

Jacob L

Moderator (Lawsonator)
Can use something like Pushbullet to send and receive notifications instead. Pushbullet shows as a plugin for triggers and actions
 
What guarantee is there that the use of Webhook always works and in addition to that, how many Webhook can be sent and / or received per minute and how long are they destroyed if it is still on hold?
I was asking my question why in what cases is the Webhook probably late and not in real time?
 

MacroDroidDev

Administrator
Staff member
In simple terms the webhook url runs directly on my server which then fires an Firebase Cloud Message to your device. This should in most cases happen pretty much instantly but if for any reason the message cannot be delivered (e.g your device has not data at the time) it should be delivered later.
 

Chandra

New member
HI - Is there a limit on push tokens or scheduled maintenance on this webhook server? I have been unsuccessfully trying to get my webhook macro work. When I paste the generated URL (both long and short) in a browser, I get "Invalid device identifier" and the system log says "No push token available, Web URL Trigger will not currently work". I have exported macros, cleared app data and imported back macros - but the same error messages. Appreciate any help.
 

TroyN

New member
I am also getting the "invalid device identifier" error. I might be doing something wrong, but I was curious to see if there is something wrong on the back-end...
 

avitobotapp

New member
Guys this is how it works
1. Open the variable item in the application and create a variable, for example, a numeric intparam
2. Then, having created a macro and in the trigger, selecting the webhook in the actions, select the created variable from the list of suggested variables
3. Run and done trigger.macrodroid.com/<UUID>/test?intparam=123

Ребята вот как это работает
1. Откройте в приложении пункт переменные и создайте переменную к примеру intparam числовой
2. Затем создав макрос и в триггере выбрав веб хук в действиях выберите созданную переменную из списка предлагаемых переменных
3. Запускайте и готово trigger.macrodroid.com/<UUID>/test?intparam=123
 
Top