rosskouk / asknavidrome

An Alexa skill to allow streaming of music from Subsonic API compatible media servers on Amazon Echo devices.
https://rosskouk.github.io/asknavidrome
MIT License
52 stars 7 forks source link

ERROR - Failed to connect to Navidrome #16

Closed JaxzKyd closed 1 year ago

JaxzKyd commented 1 year ago

Describe the issue asknavidrome container not connecting to Navidrome

Operating System Docker Desktop on Windows 10

To Reproduce Ran asknavidrome in docker compose with the following file

version: "0.7" services: asknavidrome: container_name: asknavidrome image: ghcr.io/rosskouk/asknavidrome:latest ports:

When I run it in docker and look at the logs it says ERROR - Failed to connect to Navidrome.

Logs 2022-11-25 23:53:37,034 - root - INFO - AskNavidrome 0.6! 2022-11-25 23:53:37,034 - root - DEBUG - Getting configutration from the environment... 2022-11-25 23:53:37,035 - root - INFO - Skill ID set to: [REDACTED] 2022-11-25 23:53:37,035 - root - INFO - Minimum song count is set to: 50 2022-11-25 23:53:37,036 - root - INFO - The URL for Navidrome is set to: https://[REDACTED]/audio 2022-11-25 23:53:37,037 - root - INFO - The Navidrome user name is set to: [REDACTED] 2022-11-25 23:53:37,038 - root - INFO - The Navidrome password is set 2022-11-25 23:53:37,038 - root - INFO - The Navidrome port is set to: 443 2022-11-25 23:53:37,039 - root - INFO - The Navidrome API path is set to: /rest 2022-11-25 23:53:37,040 - root - INFO - The Navidrome API version is set to: 1.16.1 2022-11-25 23:53:37,040 - root - DEBUG - Configuration has been successfully loaded 2022-11-25 23:53:37,041 - root - DEBUG - Log level set to DEBUG 2022-11-25 23:53:37,041 - root - DEBUG - MediaQueue object created... 2022-11-25 23:53:37,045 - asknavidrome.subsonic_api - DEBUG - Connected to Navidrome 2022-11-25 23:53:37,046 - asknavidrome.subsonic_api - DEBUG - In function ping() 2022-11-25 23:53:38,800 - asknavidrome.subsonic_api - ERROR - Failed to connect to Navidrome 2022-11-25 23:53:39,854 - root - INFO - AskNavidrome Web Service is ready to start!

rosskouk commented 1 year ago

Hi @JaxzKyd

As you have Navidrome in a subfolder can you update the NAVI_API_PATH variable to

NAVI_API_PATH=/audio/rest

Let me know if it helps.

JaxzKyd commented 1 year ago

Sorry for the late reply, but yes it now successfully connects to Navidrome!

now I just need to figure out how to take down a live skill so I can change its invocation word