Skip to content

HTTP Error 403 #4

@Ghawken

Description

@Ghawken

Hi Jon

Well done on tackling this. I see this error is reported in forum and thought would post what I could as well, as seeing it as well.

Seeing it as well, although appears to still function.

2nd Issue: Plugins Loaded [30] in Log every 30 seconds or so. With enormous ongoing repeatedly communication - normal?
Could alter the INFO Plugins Loaded [30] to debug, but also not sure quite why 'Loaded' that frequently.

3rd Issue:
Sonos debug file logging seems fixed to INFO - was going to attached debug file log for sonos - but only INFO in that.

I post whatever I can below to aid.

This is debug logging of startup. To say there is a LOT of ongoing communication is a slight understatement!

Understand the difficulties in that you are sorting out someone elses code - thanks and good luck!

Main log with debug on
2024-01-28 Events.txt

& Interactive shell startup - some pasted below as well
Sonos-Interactive-Shell.rtf.zip

28 Jan 2024 at 9:23:15 am
   Upgrading plugin Sonos to newer version 2024.0.4 (previous version moved to trash)
   Loading plugin "Sonos 2024.0.4" using API v3.4
   Starting plugin "Sonos 2024.0.4" (pid 88727)
   Processing requirements for plugin "Sonos 2024.0.4"
   Requirements installing, this may take a few seconds...

28 Jan 2024 at 9:23:38 am
   Finished installing requirements for "Sonos 2024.0.4", continuing startup
   Sonos                           Plugin logging now started.
   Sonos                           Plugin __init__ ended.
   Started plugin "Sonos 2024.0.4"
   Sonos                           Plugin startup started.
   Sonos                           Loaded Sonos Favorites... [42]
   Sonos                           Loaded Playlists... [38]
   Sonos                           Loaded RadioTime Favorite Stations... [9]
   Sonos                           Loaded Sound Files... [2]
[2024-01-28 Events.txt](https://github.com/IndigoDomotics/Sonos/files/14074195/2024-01-28.Events.txt)

   Sonos                           Loaded IVONA Voices... [51]
   Sonos                           [Sun Jan 28 09:23:43 2024] Processed plugin preferences.
   Sonos                           [Sun Jan 28 09:23:43 2024] Processed plugin preferences.
   Sonos                           Serving HTTP Streamer on 192.168.1.6 [0.0.0.0], port 8888
   Sonos                           Loaded Apple Voices.. [54]
   Sonos                           SSDP Listener Started...
   Sonos                           Plugin startup ended.
   Sonos                           Adding ZonePlayer: 192.168.1.232, RINCON_48A6B8B74A1801400, Sonos Amp Saildeck
   Sonos                           Adding ZonePlayer: 192.168.1.238, RINCON_B8E9373DB6EE01400, Sonos Play3 Master Bedroom
   Sonos                           Adding ZonePlayer: 192.168.1.235, RINCON_000E587F534A01400, Sonos Play3 Projector Left
   Sonos                           Adding ZonePlayer: 192.168.1.231, RINCON_347E5CE1EE6801400, Sonos Play5 Kitchen
   Sonos                           Adding ZonePlayer: 192.168.1.234, RINCON_48A6B86E9BE001400, Sonos Pool Amp
   Sonos                           Adding ZonePlayer: 192.168.1.233, RINCON_000E58B1B82C01400, Sonos TV Playbar
   Sonos                           Adding ZonePlayer: 192.168.1.240, RINCON_B8E937DEE3EA01400, Sonos: Elley Bedroom
   Sonos                           Adding ZonePlayer: 192.168.1.239, RINCON_B8E937DEE4CA01400, Sonos: Max Bedroom
   Sonos                           SoCo Reactor Ignition...
   Sonos Error                     'HTTP Error 403: Forbidden' in module 'request.py', method 'http_error_default [2024.0.4]'
   Failing statement [line 643]: 'raise HTTPError(req.full_url, code, msg, hdrs, fp)'
28 Jan 2024 at 9:24:53 am
   Sonos                           Loaded Playlists... [38]

28 Jan 2024 at 9:25:08 am
   Sonos                           Loaded Playlists... [38]

28 Jan 2024 at 9:25:23 am
   Sonos                           Loaded Playlists... [38]

28 Jan 2024 at 9:25:38 am
   Sonos                           Loaded Playlists... [38]

28 Jan 2024 at 9:25:53 am
   Sonos                           Loaded Playlists... [38]

28 Jan 2024 at 9:26:08 am
   Sonos                           Loaded Playlists... [38]

28 Jan 2024 at 9:26:24 am
   Sonos                           Loaded Playlists... [38]

28 Jan 2024 at 9:26:39 am
   Sonos     
& this is interactive shell messaging startup (sorry long - to long will ad as file)


Traceback (most recent call last):
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Sonos.indigoPlugin/Contents/Packages/twisted/internet/defer.py", line 981, in _startRunCallbacks
    self._runCallbacks()
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Sonos.indigoPlugin/Contents/Packages/twisted/internet/defer.py", line 1075, in _runCallbacks
    current.result = callback(  # type: ignore[misc]
  File "/Library/Application Support/Per
[Sonos-Interactive-Shell.rtf.zip](https://github.com/IndigoDomotics/Sonos/files/14074175/Sonos-Interactive-Shell.rtf.zip)
ceptive Automation/Indigo 2023.2/Plugins/Sonos.indigoPlugin/Contents/Packages/twisted/internet/defer.py", line 874, in callback
    self._startRunCallbacks(result)
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Sonos.indigoPlugin/Contents/Packages/twisted/internet/defer.py", line 981, in _startRunCallbacks
    self._runCallbacks()
--- <exception caught here> ---
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Sonos.indigoPlugin/Contents/Packages/twisted/internet/defer.py", line 1075, in _runCallbacks
    current.result = callback(  # type: ignore[misc]
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/soco/events_twisted.py", line 492, in handle_outcome
    failure.trap()
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Sonos.indigoPlugin/Contents/Packages/twisted/python/failure.py", line 481, in trap
    self.raiseException()
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Sonos.indigoPlugin/Contents/Packages/twisted/python/failure.py", line 505, in raiseException
    raise self.value.with_traceback(self.tb)
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Sonos.indigoPlugin/Contents/Packages/twisted/internet/defer.py", line 1075, in _runCallbacks
    current.result = callback(  # type: ignore[misc]
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/soco/events_twisted.py", line 377, in on_success
    success(response_headers)
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Sonos.indigoPlugin/Contents/Server Plugin/soco/events_base.py", line 430, in success
    self.sid = headers["sid"]
builtins.KeyError: 'sid'

Sonos-Interactive-Shell.rtf.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions