Skip to content

ERROR in app: Exception on /alexa [POST] #31

Description

@zadowsmash

Hi,

I am trying to configure asksonic with the following:

  • Ampache v5.6.0 which has subsonic API v1.13.0 ( I have configured env variable ASKS_SUBSONIC_APIVERSION=1.13.0)
  • Python 3.9.16
  • Alexa skill configured as per the readme

I can see that the Alexa service is hitting my asksonic instance fine but I get the following errors in the logs and it doesn't work.

20:05:44 web.1  | [2023-04-13 20:05:44 +1000] [15] [INFO] Listening at: http://0.0.0.0:4545 (15)
20:05:44 web.1  | [2023-04-13 20:05:44 +1000] [15] [INFO] Using worker: sync
20:05:44 web.1  | [2023-04-13 20:05:44 +1000] [16] [INFO] Booting worker with pid: 16

20:06:04 web.1  | [2023-04-13 20:06:04,072] ERROR in app: Exception on /alexa [POST]
20:06:04 web.1  | Traceback (most recent call last):
20:06:04 web.1  |   File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2051, in wsgi_app
20:06:04 web.1  |     rv = self.handle_user_exception(e)
20:06:04 web.1  |   File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1499, in full_dispatch_request
20:06:04 web.1  |     rv = self.dispatch_request()
20:06:04 web.1  |   File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1485, in dispatch_request
20:06:04 web.1  |     return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
20:06:04 web.1  |   File "/usr/local/lib/python3.9/site-packages/flask_ask/core.py", line 890, in _flask_view_func
20:06:04 web.1  |     result = self._map_intent_to_view_func(self.request.intent)()
20:06:04 web.1  |   File "/app/asksonic/intents/navigation.py", line 33, in play_artist
20:06:04 web.1  |     tracks = subsonic.artist_tracks(artist, tracks_count)
20:06:04 web.1  |   File "/app/asksonic/utils/subsonic/api.py", line 94, in artist_tracks
20:06:04 web.1  |     albums = self.artist_albums(artist)
20:06:04 web.1  |     found_artist = self.find_artist(artist)
20:06:04 web.1  |   File "/app/asksonic/utils/subsonic/api.py", line 62, in find_artist
20:06:04 web.1  |     return self._find_x('artist', query)
20:06:04 web.1  |   File "/app/asksonic/utils/subsonic/api.py", line 46, in _find_x
20:06:04 web.1  |     result = self.search(
20:06:04 web.1  |   File "/app/asksonic/utils/subsonic/api.py", line 41, in search
20:06:04 web.1  |     return self.search3(query=query, **options)
20:06:04 web.1  |   File "/usr/local/lib/python3.9/site-packages/libsonic/connection.py", line 651, in search3
20:06:04 web.1  |     res = self._doInfoReq(req)
20:06:04 web.1  |   File "/app/asksonic/utils/subsonic/api.py", line 25, in _doInfoReq
20:06:04 web.1  |     return super()._doInfoReq(req)
20:06:04 web.1  |   File "/usr/local/lib/python3.9/site-packages/libsonic/connection.py", line 2783, in _doInfoReq
20:06:04 web.1  |     return dres['subsonic-response']
20:06:04 web.1  | KeyError: 'subsonic-response'

Any suggestions as to why it is not working would be greatly appreciated.

Thanks :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions