node-sonos-http-api icon indicating copy to clipboard operation
node-sonos-http-api copied to clipboard

Constant error in logs

Open pcgirl opened this issue 6 years ago • 8 comments
trafficstars

I am getting this constant error in the logs even if a TTS request wasn't sent. 2019-04-16T17:12:54.915Z ERROR

{ error: 'action 'tts' not found' }

pcgirl avatar Apr 16 '19 18:04 pcgirl

Any ideas what is going on with this error? I get it constantly in my logs: image

pcgirl avatar May 10 '19 17:05 pcgirl

You have something calling the API every 20 minutes with a faulty URL, namely something like /room/tts/xxxxxxx which isn't a valid action. Doesn't make sense to put that in the log though, but you should try to figure out what it is that you have setup that would make these invocations.

jishi avatar May 12 '19 10:05 jishi

I don't have any TTS using the sonos speakers. How would I find this?

pcgirl avatar May 12 '19 11:05 pcgirl

One alternative since it is every 20 minute would be to run the tcpdump command and wait to figure out the src ip. It would be possible to add logging in the api as well but is a bit more work for me :)

If you run tcpdump for dst port 5005 when you expect a request to come in it should be fairly easy to pinpoint I think.

On Sun, 12 May 2019, 13:59 pcgirl, [email protected] wrote:

I don't have any TTS using the sonos speakers. How would I find this?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jishi/node-sonos-http-api/issues/692#issuecomment-491589307, or mute the thread https://github.com/notifications/unsubscribe-auth/AAYE2I54FOPF25Z3KJBBXMTPVABDPANCNFSM4HGN2IPQ .

jishi avatar May 12 '19 12:05 jishi

Now this error is showing up in the logs: How do I run tcpdump?

Error: connect EHOSTUNREACH 192.168.1.20:1400 at Object.exports._errnoException (util.js:1020:11) at exports._exceptionWithHostPort (util.js:1043:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1099:14) 2019-05-11T18:39:52.031Z WARN resubscribing to sid null failed Error: connect EHOSTUNREACH 192.168.1.20:1400 at Object.exports._errnoException (util.js:1020:11) at exports._exceptionWithHostPort (util.js:1043:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1099:14) 2019-05-11T18:39:52.031Z WARN resubscribing to sid null failed Error: connect EHOSTUNREACH 192.168.1.20:1400 at Object.exports._errnoException (util.js:1020:11) at exports._exceptionWithHostPort (util.js:1043:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1099:14) 2019-05-11T18:39:52.031Z WARN resubscribing to sid null failed Error: connect EHOSTUNREACH 192.168.1.20:1400 at Object.exports._errnoException (util.js:1020:11) at exports._exceptionWithHostPort (util.js:1043:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1099:14) 2019-05-11T18:39:53.950Z WARN resubscribing to sid null failed Error: connect EHOSTUNREACH 192.168.1.16:1400 at Object.exports._errnoException (util.js:1020:11) at exports._exceptionWithHostPort (util.js:1043:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1099:14) 2019-05-11T18:39:53.951Z WARN resubscribing to sid null failed

Thanks, Jane Johnson ++++++++++++++++++ A+ Computer Services (905) 317-0540 ++++++++++++++++++


From: Jimmy Shimizu [email protected] Sent: May 12, 2019 8:02 AM To: jishi/node-sonos-http-api Cc: pcgirl; Author Subject: Re: [jishi/node-sonos-http-api] Constant error in logs (#692)

One alternative since it is every 20 minute would be to run the tcpdump command and wait to figure out the src ip. It would be possible to add logging in the api as well but is a bit more work for me :)

If you run tcpdump for dst port 5005 when you expect a request to come in it should be fairly easy to pinpoint I think.

On Sun, 12 May 2019, 13:59 pcgirl, [email protected] wrote:

I don't have any TTS using the sonos speakers. How would I find this?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jishi/node-sonos-http-api/issues/692#issuecomment-491589307, or mute the thread https://github.com/notifications/unsubscribe-auth/AAYE2I54FOPF25Z3KJBBXMTPVABDPANCNFSM4HGN2IPQ .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/jishi/node-sonos-http-api/issues/692#issuecomment-491589573, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACSDBXFJJPA6Q5KJN4JRERDPVABOLANCNFSM4HGN2IPQ.

pcgirl avatar May 12 '19 12:05 pcgirl

Thats a different error. It tries to resubscribe for events to a player IP that doesn't seem to exist anymore.

Maybe your players are changing IP and the API doesn't handle it gracefully. You still see all your players, and their state (currently playing source, time etc) is correct?

jishi avatar May 12 '19 12:05 jishi

OK, I just did a Sonos update and then restarted the docker. The log isn't showing any errors....yet. I will watch it and see what happens. How do I run tcpdump?

Thanks, Jane Johnson


From: Jimmy Shimizu [email protected] Sent: May 12, 2019 8:39 AM To: jishi/node-sonos-http-api Cc: pcgirl; Author Subject: Re: [jishi/node-sonos-http-api] Constant error in logs (#692)

Thats a different error. It tries to resubscribe for events to a player IP that doesn't seem to exist anymore.

Maybe your players are changing IP and the API doesn't handle it gracefully. You still see all your players, and their state (currently playing source, time etc) is correct?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/jishi/node-sonos-http-api/issues/692#issuecomment-491592151, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACSDBXDJOIOPLR43IM2NJ5TPVAFXTANCNFSM4HGN2IPQ.

pcgirl avatar May 12 '19 12:05 pcgirl

You're gonna have to look that up on your own. It's a way to broad topic for me to assist with :)

jishi avatar May 13 '19 07:05 jishi