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

Authentication error trying to setup Nextcloud Music app as subsonic source #136

Closed
afermar opened this issue Feb 13, 2024 · 2 comments
Closed

Comments

@afermar
Copy link

afermar commented Feb 13, 2024

Describe the bug
Nextcloud Music app can be used as Subsonic server.
I tried to add it as subsonic source but it throws an authentication error.

To Reproduce
Steps to reproduce the behavior:

  1. Generate API password in Nextcloud Music
  2. Add subsonic ENV variables to multi-scrobbler docker
  3. Run docker container

Logs

ErrorWithCause: 
    at SubsonicSource.initialize (CWD/src/backend/sources/AbstractSource.ts:114:31)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at ScrobbleSources.addSource (CWD/src/backend/sources/ScrobbleSources.ts:544:18)
    at ScrobbleSources.buildSourcesFromConfig (CWD/src/backend/sources/ScrobbleSources.ts:451:25)
    at <anonymous> (CWD/src/backend/index.ts:116:9)

caused by: ErrorWithCause: Authentication test failed!
    at SubsonicSource.testAuth (CWD/src/backend/sources/AbstractSource.ts:211:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at SubsonicSource.initialize (CWD/src/backend/sources/AbstractSource.ts:110:13)
    at ScrobbleSources.addSource (CWD/src/backend/sources/ScrobbleSources.ts:544:18)
    at ScrobbleSources.buildSourcesFromConfig (CWD/src/backend/sources/ScrobbleSources.ts:451:25)
    at <anonymous> (CWD/src/backend/index.ts:116:9)

caused by: ErrorWithCause: Subsonic API returned an error => (nextcloud music | v1.16.1 | server v1.10.0) Subsonic Api Response => (41) failed: Token-based authentication not supported
    at SubsonicSource.callApi (CWD/src/backend/sources/SubsonicSource.ts:124:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at SubsonicSource.doAuthentication (CWD/src/backend/sources/SubsonicSource.ts:195:13)
    at SubsonicSource.testAuth (CWD/src/backend/sources/AbstractSource.ts:204:27)
    at SubsonicSource.initialize (CWD/src/backend/sources/AbstractSource.ts:110:13)
    at ScrobbleSources.addSource (CWD/src/backend/sources/ScrobbleSources.ts:544:18)
    at ScrobbleSources.buildSourcesFromConfig (CWD/src/backend/sources/ScrobbleSources.ts:451:25)
    at <anonymous> (CWD/src/backend/index.ts:116:9)

Versions (please complete the following information):
Provide version information for any related sources/clients.

  • multi-scrobbler: [0.6.5 on docker]
  • Nextcloud: [28.0.2]
  • Nextlcloud Music: [1.10.0]
FoxxMD added a commit that referenced this issue Feb 13, 2024
* Add config options for using legacy authentication and ignoring TLS cert errors
* Fallback to legacy auth if subsonic error code 41 is detected
@FoxxMD
Copy link
Owner

FoxxMD commented Feb 13, 2024

This error should be fixed in foxxmd/multi-scrobbler:develop docker image now.

Unfortunately the Nextcloud Music app will still be unusable as they have not implemented the nowPlaying subsonic api endpoint that MS uses to track music that is playing.

@FoxxMD
Copy link
Owner

FoxxMD commented Mar 26, 2024

Closed in 0.7.0

@FoxxMD FoxxMD closed this as completed Mar 26, 2024
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