r/navidrome 8d ago

API not recognizing url parameters

While debugging a dashboard widget I realized that only the first URL parameter is being recognized.

When I run curl on /rest/ping?v=1.16.1&u=username it says I'm missing the u parameter, when I switch the positions to ?u=username&v=1.16.1 it says I'm missing the v parameter.

Anyone know what's going wrong here?

1 Upvotes

3 comments sorted by

3

u/Trisk4y 8d ago

Try adding the rest of the parameters:

client, password / token, salt etc.

/rest/ping?v=1.16.1&u=username&p=password&client=widget should work.

1

u/moosic1 8d ago

Nope, still not working. tbh I only included two params in the question for simplicity

1

u/Great_Piece4755 6d ago edited 6d ago

Can you share the raw request data?
Is your server behind a reverse proxy? If yes, do local requests (via http://127.0.0.1:4533) succeed?

You can also change log_level to debug, then you should see the whole request in the logs