Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: jsData.hasOwnProperty is not a function #146

Open
iobroker-sentry-github-app bot opened this issue Jul 4, 2023 · 3 comments
Open

TypeError: jsData.hasOwnProperty is not a function #146

iobroker-sentry-github-app bot opened this issue Jul 4, 2023 · 3 comments

Comments

@iobroker-sentry-github-app
Copy link

Sentry Issue: IOBROKER-BOSESOUNDTOUCH-Q

TypeError: jsData.hasOwnProperty is not a function
  File "/opt/iobroker/node_modules/iobroker.bosesoundtouch/soundtouchsocket.js", line 292, in soundtouchsocket._onJsData
    if (jsData.hasOwnProperty('updates')) {
  File "/opt/iobroker/node_modules/iobroker.bosesoundtouch/soundtouchsocket.js", line 339, in <anonymous>
    instance._onJsData(jsData);
  File "/opt/iobroker/node_modules/iobroker.bosesoundtouch/node_modules/xml2js/lib/parser.js", line 308, in Parser.<anonymous>
    return cb(null, result);
  File "node:events", line 513, in Parser.emit
  File "node:domain", line 489, in Parser.emit
...
(5 additional frame(s) were not displayed)
@TiDO2k
Copy link

TiDO2k commented Jul 6, 2023

<html><body>
<!--StartFragment-->

bosesoundtouch.0 | 2023-07-06 08:14:24.172 | error | jsData.hasOwnProperty is not a function
-- | -- | -- | --
bosesoundtouch.0 | 2023-07-06 08:14:24.172 | error | TypeError: jsData.hasOwnProperty is not a function     at soundtouchsocket._onJsData (/opt/iobroker/node_modules/iobroker.bosesoundtouch/soundtouchsocket.js:292:32)     at /opt/iobroker/node_modules/iobroker.bosesoundtouch/soundtouchsocket.js:339:26     at Parser.<anonymous> (/opt/iobroker/node_modules/iobroker.bosesoundtouch/node_modules/xml2js/lib/parser.js:308:18)     at Parser.emit (node:events:513:28)     at Parser.emit (node:domain:489:12)     at SAXParser.onclosetag (/opt/iobroker/node_modules/iobroker.bosesoundtouch/node_modules/xml2js/lib/parser.js:266:26)     at emit (/opt/iobroker/node_modules/sax/lib/sax.js:624:35)     at emitNode (/opt/iobroker/node_modules/sax/lib/sax.js:629:5)     at closeTag (/opt/iobroker/node_modules/sax/lib/sax.js:889:7)     at SAXParser.write (/opt/iobroker/node_modules/sax/lib/sax.js:1436:13)
bosesoundtouch.0 | 2023-07-06 08:14:24.170 | error | uncaught exception: jsData.hasOwnProperty is not a function

<!--EndFragment-->
</body>
</html>

same here

best regards
TiDO

@Apollon77
Copy link
Member

@TiDO2k could you please post a debug log?

@TiDO2k
Copy link

TiDO2k commented Jul 6, 2023

`

bosesoundtouch.1 2023-07-06 10:31:02.457 info starting. Version 0.10.3 (non-npm: iobroker-community-adapters/ioBroker.bosesoundtouch) in /opt/iobroker/node_modules/iobroker.bosesoundtouch, node: v18.16.1, js-controller: 4.0.24
bosesoundtouch.1 2023-07-06 10:31:02.016 debug Plugin sentry Initialize Plugin (enabled=true)
bosesoundtouch.1 2023-07-06 10:30:56.667 warn Terminated (UNCAUGHT_EXCEPTION): Without reason
bosesoundtouch.1 2023-07-06 10:30:56.664 debug Plugin sentry destroyed
bosesoundtouch.1 2023-07-06 10:30:56.661 info terminating
bosesoundtouch.1 2023-07-06 10:30:56.659 info cleaned everything up...
bosesoundtouch.1 2023-07-06 10:30:56.619 error jsData.hasOwnProperty is not a function
bosesoundtouch.1 2023-07-06 10:30:56.619 error TypeError: jsData.hasOwnProperty is not a function at soundtouchsocket._onJsData (/opt/iobroker/node_modules/iobroker.bosesoundtouch/soundtouchsocket.js:292:32) at /opt/iobroker/node_modules/iobroker.bosesoundtouch/soundtouchsocket.js:339:26 at Parser. (/opt/iobroker/node_modules/iobroker.bosesoundtouch/node_modules/xml2js/lib/parser.js:308:18) at Parser.emit (node:events:513:28) at Parser.emit (node:domain:489:12) at SAXParser.onclosetag (/opt/iobroker/node_modules/iobroker.bosesoundtouch/node_modules/xml2js/lib/parser.js:266:26) at emit (/opt/iobroker/node_modules/sax/lib/sax.js:624:35) at emitNode (/opt/iobroker/node_modules/sax/lib/sax.js:629:5) at closeTag (/opt/iobroker/node_modules/sax/lib/sax.js:889:7) at SAXParser.write (/opt/iobroker/node_modules/sax/lib/sax.js:1436:13)
bosesoundtouch.1 2023-07-06 10:30:56.618 error uncaught exception: jsData.hasOwnProperty is not a function
bosesoundtouch.1 2023-07-06 10:30:56.601 debug {"updates":{"$":{"deviceID":"F4E......"},"connectionStateUpdated":{"$":{"state":"NETWORK_WIFI_CONNECTED","up":"true","signal":"POOR_SIGNAL"}}}}
bosesoundtouch.1 2023-07-06 10:30:56.599 debug onMessage
bosesoundtouch.1 2023-07-06 10:30:54.038 debug _restartHeartBeat
bosesoundtouch.1 2023-07-06 10:30:54.038 debug {"pingRequest":{"$":{"pong":"true"}}}
bosesoundtouch.1 2023-07-06 10:30:54.036 debug onMessage
bosesoundtouch.1 2023-07-06 10:30:54.003 debug Send: webserver/pingRequest
bosesoundtouch.1 2023-07-06 10:30:54.002 debug _heartBeatFunc
bosesoundtouch.1 2023-07-06 10:30:44.002 debug _restartHeartBeat
bosesoundtouch.1 2023-07-06 10:30:44.001 debug {"pingRequest":{"$":{"pong":"true"}}}
bosesoundtouch.1 2023-07-06 10:30:43.999 debug onMessage
bosesoundtouch.1 2023-07-06 10:30:43.969 debug Send: webserver/pingRequest
` Is this ok?

@stale stale bot added the wontfix label Oct 15, 2023
@iobroker-community-adapters iobroker-community-adapters deleted a comment from stale bot Oct 15, 2023
@stale stale bot removed the wontfix label Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants