-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Bug Report
scrobblex version:
1.4.3 inside Docker
Current behavior:
After authorizing the application via my localhost, I'm seeing in the logs that it gets an auth error for the API. The log is as follows:
[2025-07-02 19:03:50] info: 🔑 Getting token...
[2025-07-02 19:03:50] info: 🔐 Token adquired
[2025-07-02 19:04:21] info: 🔑 Getting token...
[2025-07-02 19:04:21] error: ❌ Auth API error: Request failed with status code 400
[2025-07-02 19:04:21] error: ❌ No tokens found!
[2025-07-02 19:04:21] info: ℹ️ Have you authorized the application? Go to {my domain} to do it if needed.
I've revoked and re-authorized multiple times but this continues to happen. On Trakt, I did set the URLs as directed (even using http and not https) and made sure the client ID and client Secret are in the compose file.
Expected behavior:
The authorization should hold and not error out.
Steps to reproduce:
Start container. Load page running on the server. Go through auth steps. Then wait a few minutes while viewing the logs. The auth will no longer be valid and generate a 400 error as seen above.
Other information:
It should be noted that when I start the container I also get this error once:
ValidationError: The 'X-Forwarded-For' header is set but the Express 'trust proxy' setting is false (default). This could indicate a misconfiguration which would prevent express-rate-limit from accurately identifying users. See https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/ for more information.
at Object.xForwardedForHeader (file:///app/node_modules/express-rate-limit/dist/index.mjs:159:13)
at wrappedValidations.<computed> [as xForwardedForHeader] (file:///app/node_modules/express-rate-limit/dist/index.mjs:370:22)
at Object.keyGenerator (file:///app/node_modules/express-rate-limit/dist/index.mjs:643:20)
at file:///app/node_modules/express-rate-limit/dist/index.mjs:696:32
at async file:///app/node_modules/express-rate-limit/dist/index.mjs:676:5 {
code: 'ERR_ERL_UNEXPECTED_X_FORWARDED_FOR',
help: 'https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/'
}