KraigM / homebridge-wink

Wink hub plugin for HomeBridge
54 stars 37 forks source link

Intermittent issue with - SyntaxError: Unexpected token < #46

Open jclarke0000 opened 8 years ago

jclarke0000 commented 8 years ago

I've been periodically getting an error in my logs. Haven't been able to figure out what is triggering it, but afterwards, my devices are all unresponsive. I need to restart HomeBridge to get functionality back. Seems to happen every 2-3 days or so...

Error is below:

SyntaxError: Unexpected token <
    at Object.parse (native)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge-wink/node_modules/wink-js/index.js:68:19)
    at emitNone (events.js:72:20)
    at IncomingMessage.emit (events.js:166:7)
    at endReadableNT (_stream_readable.js:893:12)
    at doNTCallback2 (node.js:429:9)
    at process._tickCallback (node.js:343:17)
raw message <!DOCTYPE html>
    <html>
    <head>
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <style type="text/css">
        html, body, iframe { margin: 0; padding: 0; height: 100%; }
        iframe { display: block; width: 100%; border: none; }
      </style>
    <title>Application Error</title>
    </head>
    <body>
      <iframe src="//s3.amazonaws.com/heroku_pages/error.html">
        <p>Application Error</p>
      </iframe>
    </body>
    </html>