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

[ISSUE] Unable to make any Requests to Navidrome Server #22

Open
h0rzn opened this issue Mar 21, 2024 · 7 comments
Open

[ISSUE] Unable to make any Requests to Navidrome Server #22

h0rzn opened this issue Mar 21, 2024 · 7 comments

Comments

@h0rzn
Copy link
Contributor

h0rzn commented Mar 21, 2024

Thank you for sharing the source code for this app :)

I am unable to get any data from my Navidrome server: After putting in my credentials and server info, nothing seems to happen. If i swipe down in Albums/Artists-View nothing happens either.

Navidrome: 0.48.0(af5c2b5a) running in Docker

Log output of Navidrome

time="2024-03-21T21:11:17Z" level=warning msg="Missing required parameter \"v\"" requestId=ea2b13e48d30/SbyMIoDCe5-457285
time="2024-03-21T21:11:17Z" level=warning msg="API: Failed response" error=10 message="Missing required parameter \"v\"" requestId=ea2b13e48d30/SbyMIoDCe5-457285

Subsonic API Documentation describes v as required:

The protocol version implemented by the client, i.e., the version of the subsonic-rest-api.xsd schema used (see below).

Is my Navidrome outdated/broken or is this an App Issue?
The App looks rather clean so far, unfortunately I was not able to sync and play any music so far.

@h0rzn h0rzn changed the title [BUG] Unable to make any Requests to Navidrome Server [ISSUE] Unable to make any Requests to Navidrome Server Mar 21, 2024
@h0rzn
Copy link
Contributor Author

h0rzn commented Mar 21, 2024

Param is actually being set:

var userString: String {
guard let account = account else {
return ""
}
return "&f=json&u=\(account.username)&p=\(account.password)&v=1.16.1&c=halpoplayer"
}

@halpz
Copy link
Owner

halpz commented Mar 25, 2024

hmm it's strange, the version should be sent with the request, are you able to update your navidrome container to see if that solves it?

@h0rzn
Copy link
Contributor Author

h0rzn commented Mar 29, 2024

hmm it's strange, the version should be sent with the request, are you able to update your navidrome container to see if that solves it?

Upgraded to latest docker image with Navidrome 0.51.1 (6d253225). Issue persists.
Reverse-Proxy tells me v-Param is either not being sent or doesn't reach Proxy:
[...] RequestURI":"/rest/ping.view?\u0026f=json\u0026u=XXX\u0026p=XXX","TLS":null}" [...] (redacted)
Bypassing Traefik and directly connecting to Navidrome-Container yields the same error.

Installed a docker Airsonic-Server and had the same problem.
Amperfy worked with both servers/instances :(

It's no problem to me if you want to close this issue, as I seem to be the only one having it and I have no experience in Swift at all, so I cannot investigate this issue myself :( GL with your project though!

@h0rzn
Copy link
Contributor Author

h0rzn commented Jun 30, 2024

Found the problem! Certain special characters seemed to be the issue. Tested it out with a basic alphanumeric password and everything worked perfectly fine.

@halpz
Copy link
Owner

halpz commented Jul 1, 2024

Ahh okay , I'll have a look and see if I can fix the encoding for those instances

@halpz
Copy link
Owner

halpz commented Jul 1, 2024

What sort of characters makes it fail ?

@h0rzn
Copy link
Contributor Author

h0rzn commented Jul 2, 2024

Problem appeared with #, but $ for example worked just fine.

Hex encoding the password and prepending enc: allows a password with #.
[...]/rest/ping.view?login&f=json&u=halpo-user&p=enc:31323323&v=1.16.1[...] (password is "123#")

...Off topic, but are PRs welcome?

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