Giter VIP home page Giter VIP logo

Comments (8)

benzman81 avatar benzman81 commented on August 18, 2024

Hi, this only happens if there is a call to the server withmissing accessoryId as parameter.

from homebridge-http-webhooks.

andyrooo82 avatar andyrooo82 commented on August 18, 2024

I had this issue too

#11

from homebridge-http-webhooks.

jaquesp avatar jaquesp commented on August 18, 2024

@andyrooo82 Thanks for pointing this out, however I've turned off all possible automated calls to the webhook (via IFTTT) and still see this error. There is nothing calling the webhook at all, but still intermittently I will see a collection of calls and not just a single one, e.g.:

Feb 21 17:38:12 raspberrypi homebridge[30625]: [2/21/2017, 5:38:12 PM] [ERROR Http WebHook Server] No accessoryId in request.
Feb 21 17:38:12 raspberrypi homebridge[30625]: [2/21/2017, 5:38:12 PM] [ERROR Http WebHook Server] No accessoryId in request.
Feb 21 17:38:12 raspberrypi homebridge[30625]: [2/21/2017, 5:38:12 PM] [ERROR Http WebHook Server] No accessoryId in request.
Feb 21 17:38:12 raspberrypi homebridge[30625]: [2/21/2017, 5:38:12 PM] [ERROR Http WebHook Server] No accessoryId in request.
Feb 21 17:38:12 raspberrypi homebridge[30625]: [2/21/2017, 5:38:12 PM] [ERROR Http WebHook Server] No accessoryId in request.
Feb 21 17:38:12 raspberrypi homebridge[30625]: [2/21/2017, 5:38:12 PM] [ERROR Http WebHook Server] No accessoryId in request.
Feb 21 17:38:12 raspberrypi homebridge[30625]: [2/21/2017, 5:38:12 PM] [ERROR Http WebHook Server] No accessoryId in request.

Feb 21 17:38:13 raspberrypi homebridge[30625]: [2/21/2017, 5:38:13 PM] [ERROR Http WebHook Server] No accessoryId in request.
Feb 21 17:38:13 raspberrypi homebridge[30625]: [2/21/2017, 5:38:13 PM] [ERROR Http WebHook Server] No accessoryId in request.
Feb 21 17:38:13 raspberrypi homebridge[30625]: [2/21/2017, 5:38:13 PM] [ERROR Http WebHook Server] No accessoryId in request.

Feb 21 17:38:32 raspberrypi homebridge[30625]: [2/21/2017, 5:38:32 PM] [ERROR Http WebHook Server] No accessoryId in request.
Feb 21 17:38:32 raspberrypi homebridge[30625]: [2/21/2017, 5:38:32 PM] [ERROR Http WebHook Server] No accessoryId in request.
Feb 21 17:38:32 raspberrypi homebridge[30625]: [2/21/2017, 5:38:32 PM] [ERROR Http WebHook Server] No accessoryId in request.
Feb 21 17:38:32 raspberrypi homebridge[30625]: [2/21/2017, 5:38:32 PM] [ERROR Http WebHook Server] No accessoryId in request.

Is there anyway I can diagnose where the call is coming from - would there be anything in the debug that would help me track this down? As I say, nothing should be calling this now!

Thanks in advance,
Paul

from homebridge-http-webhooks.

benzman81 avatar benzman81 commented on August 18, 2024

Hi, you can modify the plugin source to log the request information like caller ip. Did this once, but cant remember how i did this. Google helped me ;-)

from homebridge-http-webhooks.

jaquesp avatar jaquesp commented on August 18, 2024

So, here's what I did. I decided the first thing would be to work out where the request was coming from. I couldn't work out how to display the caller IP, so I added a source parameter to each of the calls I am making from IFTTT, e.g.:

http://thisismyurl.net:51829/?accessoryId=ifttt_sensor1&state=true&source=ifttt_maker_applet

and then modified the index.js to display this (in fact I uncommented an existing INFO line and added the source parameter to the display:

this.log("[INFO Http WebHook Server] State change of '%s' to '%s'. Referrer: %s",accessory.id,stateBool,theUrlParams.source);

Since I did this, I haven't yet seen an issue with a missing accessoryid - I'll be keeping an eye on it, and IF it happens I'll see an undefined source and will know I've missed a call. However, this was happening so regularly, I think that by somehow adding an additional parameter to the call (even if it's unused and purposeless) might resolve this issue...

I'll update in a few days if I see anything - but this might help someone down the line!

Thanks again for the tips.

from homebridge-http-webhooks.

benzman81 avatar benzman81 commented on August 18, 2024

Did the issue occur since then?

from homebridge-http-webhooks.

benzman81 avatar benzman81 commented on August 18, 2024

Not reproduceable.

from homebridge-http-webhooks.

jaquesp avatar jaquesp commented on August 18, 2024

No - i haven't seen this since. I don't fully understand why this has resolved the issue, but it has! thanks!

from homebridge-http-webhooks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.