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

HTTP/1.1 405 Method Not Allowed when trying to call SUBSCRIBE /AlarmClock/Event HTTP/1.1 #58

Open
opes opened this issue Oct 25, 2018 · 2 comments

Comments

@opes
Copy link

opes commented Oct 25, 2018

Excellent app! After configuring the firewall as per the comments in #9, everything has been working great. The only issue is that I've been receiving the following error repeatedly in the console when calling noson-app --debug. Since I don't use the Alarm Clock functionality, it hasn't been a big deal, but still wanted to report it just in-case others are experiencing it.

Here's the relevant bit from the debug log:

(SONOS)__connectAddr: connected to socket(0x7f4449ffacd8)
(SONOS)__connectAddr: connected to socket(0x7f4438000b38)
(SONOS)SendRequest: SUBSCRIBE /AlarmClock/Event HTTP/1.1
Host: 192.168.50.73:1400
User-Agent: libnoson/1.0
Connection: close
Accept-Charset: utf-8
Accept-Encoding: gzip, deflate
Callback: <http://192.168.50.76:1400>
NT: upnp:event
TIMEOUT: Second-300
(SONOS)GetResponse: HTTP/1.1 405 Method Not Allowed
(SONOS)GetResponse: Allow: GET, HEAD
(SONOS)GetResponse: Content-type: text/html
(SONOS)GetResponse: Server: Linux UPnP/1.0 Sonos/46.3-57250 (BR200)
(SONOS)GetResponse: Connection: close
(SONOS)GetResponse: 
(SONOS)WSResponse: bad request (405)

Thanks again for the excellent app!

@janbar
Copy link
Owner

janbar commented Oct 26, 2018

Thanks reporting the issue.
I guess your Sonos device doesn't support the alarm clock service. It could cause this issue. Until now I thought all devices support it. Probably I should check capabilities of connected devices. For instance that won't cause bug other than log a failure.

@opes
Copy link
Author

opes commented Nov 9, 2018

Thanks for following up and apologies for the delay, @janbar. My Sonos device does indeed support the alarm clock service, but perhaps there is something else at play, here. I will try to isolate it on my end and see if I can get any ideas what might be causing it.

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