Comments (8)
Hi, this only happens if there is a call to the server withmissing accessoryId as parameter.
from homebridge-http-webhooks.
I had this issue too
from homebridge-http-webhooks.
@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.
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.
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.
Did the issue occur since then?
from homebridge-http-webhooks.
Not reproduceable.
from homebridge-http-webhooks.
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)
- Occupancy Sensor abort autoRelease, if new occupancy is detected HOT 2
- Security system current state should not be set automatically HOT 1
- Unable to configure newly-installed plugin or create accessories HOT 10
- Log Output for Occupancy Sensor HOT 1
- Add "off" delay for push button HOT 1
- Can not retrieve Thermostat values HOT 3
- Celcius vs Fahrenheit Issue HOT 1
- Adding Toggle capability
- Fan state errors HOT 4
- Thermostat: "minTemp", "maxTemp" and "minStep" not supported HOT 1
- Feature Request: Adding Accessory Type "Electricity Meter" - or appending Outlet
- characteristic was supplied illegal value: null!
- no temperature in sensor device HOT 1
- Adding switch or pushbutton causes errors HOT 2
- Contact sensor always false HOT 12
- Feature request: RGB light bulbs
- Question: How to set state in Homekit for a switch HOT 4
- Optional setting to stop logging incoming HTTP requests. HOT 1
- Triggering via URL request will not work!
- Race condition with Auto Release and Homebridge restarts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-http-webhooks.