grapeot/IFTTTDelay

Getting 301 errors since end of March

huubvanh opened this issue · 5 comments

Hi, I use your great delay webhook function for home automation but face an issue since end of March.

In the logging of my ifttt applet when posting a new delay I can see a 301 error.
When I just call the URL via postman its okay.

Is this a known issue/bug or did I miss an update to apply in my applet?

Thanks in advance for the reply!

Hi, thanks for the quick response! In the first applet I turn on ventilation and as final action register the delay via:
https://lab.grapeot.me/ifttt/delay?event=VentOff90Min&t=90&key=mykey

Screenshot_20220410-071407

Ah this is very helpful. This is because I upgraded the security settings in the end of March to enforce https. And when one visits the old http URL, the browser will receive a 301 so it knows to automatically redirect to the https URL. It seems to work with most of the IFTTT requests according to my monitoring after the upgrade, but looks it may fail the IFTTT in some cases. In your case, can you change the http in your URL to https? So it would look like this: https://lab.grapeot.me/ifttt/delay?event=VentOff90Min&t=90&key=mykey. (Your comment shows https but the screenshot shows http. So I assume the comment may actually be http.)

Sorry, I changed to https and its working again. Sorry for waisting your time.
Best regards, Huub