Comments (6)
yes. when you have a shaky internet connection and the response fails, it might do this.
I'll add some error handling.
from adt-pulse-mqtt.
added error handling here in 0.2.1.2
from adt-pulse-mqtt.
Thank you! Very much appreciate the fine work you are doing here.
from adt-pulse-mqtt.
Seems I am getting another error on the new version.
It looks like "body" may be NULL in some case, would it make sense to handle that as a catchall?
I do have a solid internet connection, so I am not sure what would be causing this so regularly. I will dig into that more.
Thanks again!
2018-8-3 06:37:12 Pulse.getDeviceStatus No other devices found
2018-8-3 06:37:12 Pulse.Sync: Syncing 10071-0-0
2018-8-3 06:37:12 Pulse: updateAll
2018-8-3 06:37:12 Pulse.getAlarmStatus: Getting Alarm Statuses
2018-8-3 06:37:17 Pulse.Sync: Syncing 10071-0-0
2018-8-3 06:37:22 Pulse.Sync: Syncing 10071-0-0
/usr/src/app/adt-pulse.js:297
if (body.includes("You have not yet signed in")){
^
TypeError: Cannot read property 'includes' of undefined
at Request._callback (/usr/src/app/adt-pulse.js:297:14)
at self.callback (/usr/src/app/node_modules/request/request.js:185:22)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at Request.onRequestError (/usr/src/app/node_modules/request/request.js:877:8)
at emitOne (events.js:116:13)
at ClientRequest.emit (events.js:211:7)
at TLSSocket.socketErrorListener (_http_client.js:387:9)
at emitOne (events.js:116:13)
at TLSSocket.emit (events.js:211:7)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-08-03T11_37_23_104Z-debug.log
from adt-pulse-mqtt.
thanks for the feedback!
I'm not sure why it would fail to get the "body". Maybe pulse's service is up/down?
Definitely mode error handling can help.
from adt-pulse-mqtt.
After the last update, this is solid! Thanks.
from adt-pulse-mqtt.
Related Issues (20)
- MQTT retain option HOT 2
- MQTT Dump (large # of zones and types) HOT 1
- Docker Image cannot access DNS HOT 13
- Unable to set alarm cmd, error from Pulse Web UI HOT 7
- Install in Home Assistant running in Docker on a Synology? HOT 1
- ::TypeError: Cannot read property '1' of null (again) HOT 15
- Compatible with hassio 095.4? HOT 6
- addon won't start on hassio restart HOT 3
- Invalid Zone Error HOT 9
- Discussion: add-on codebase HOT 15
- Add-on no longer working; HTML?? appearing in logs HOT 4
- sat value HOT 1
- Logs filled with Errors from ADT Sensors HOT 3
- ::TypeError: Cannot read property '1' of null (again) HOT 8
- ADT Pulse logon failure HOT 12
- Getting NULL JSON error in my logs now HOT 2
- Door sensors not working HOT 5
- getZoneStatus(via Orb) HOT 14
- only getting one device HOT 6
- Incorrect MQTT topics for Sensor Updates HOT 4
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 adt-pulse-mqtt.