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

Latest Startup Bug #10

Open
shillshocked opened this issue Dec 29, 2024 · 2 comments
Open

Latest Startup Bug #10

shillshocked opened this issue Dec 29, 2024 · 2 comments

Comments

@shillshocked
Copy link

PS C:\Programs\Better-Release-Radar> npm start -- --max-age-days 367 --region ""

[email protected] start
set NODE_OPTIONS=--no-warnings && ts-node ./src/main.ts 1 367

[12-29 12:55] [INFO]: Prompting user to authorize the app


Authorize your app by visiting this URL:
https://accounts.spotify.com/authorize?client_id=EDITEDOUT&response_type=code&redirect_uri=http://localhost:8888/callback&scope=user-follow-read&state=random-state

[12-29 12:55] [INFO]: Listening for Spotify authorization code on http://localhost:8888/callback
[12-29 12:55] [INFO]: Waiting for authorization before running main...
[12-29 12:55] [INFO]: Authorization code received:
Error exchanging authorization code: Error: ENOENT: no such file or directory, open 'C:\Programs\Better-Release-Radar.cache\spotify_tokens.json'
at Object.writeFileSync (node:fs:2344:20)
at saveTokensToCache (C:\Programs\Better-Release-Radar\src\cache.ts:30:6)
at exchangeAuthorizationCode (C:\Programs\Better-Release-Radar\src\auth.ts:28:22)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Server. (C:\Programs\Better-Release-Radar\src\auth.ts:93:9) {
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\Programs\Better-Release-Radar\.cache\spotify_tokens.json'
}
[12-29 12:55] [INFO]: Starting Better Release Radar...
[12-29 12:55] [INFO]: Prompting user to authorize the app


Authorize your app by visiting this URL:
https://accounts.spotify.com/authorize?client_id=EDITEDOUT&response_type=code&redirect_uri=http://localhost:8888/callback&scope=user-follow-read&state=random-state

[12-29 12:55] [INFO]: Listening for Spotify authorization code on http://localhost:8888/callback
[12-29 12:55] [INFO]: Total followed artists: 24224
[12-29 12:56] [ERROR]: Error fetching followed artists: An error occurred while communicating with Spotify's Web API.
Details: com.spotify.hermes.service.RequestTimeoutException: Request timed out: 062a625cd255d8-c783c8-bc41-1417-12cd14a2. Host: 0a841fa52a142a00000101f60000000000000025.ip.gae2.spotify.net.:5700.
[12-29 12:56] [ERROR]: Error running the script: An error occurred while communicating with Spotify's Web API.
Details: com.spotify.hermes.service.RequestTimeoutException: Request timed out: 062a625cd255d8-c783c8-bc41-1417-12cd14a2. Host: 0a841fa52a142a00000101f60000000000000025.ip.gae2.spotify.net.:5700.

@shillshocked
Copy link
Author

I get the same error even with 9 days:

PS C:\Programs\Better-Release-Radar> npm start -- --max-age-days 9 --region ""

[email protected] start
set NODE_OPTIONS=--no-warnings && ts-node ./src/main.ts 1 9

[12-29 13:13] [INFO]: Prompting user to authorize the app


Authorize your app by visiting this URL:
https://accounts.spotify.com/authorize?client_id=EDITEDOUT&response_type=code&redirect_uri=http://localhost:8888/callback&scope=user-follow-read&state=random-state

[12-29 13:13] [INFO]: Listening for Spotify authorization code on http://localhost:8888/callback
[12-29 13:13] [INFO]: Waiting for authorization before running main...
[12-29 13:13] [INFO]: Authorization code received:
[12-29 13:13] [INFO]: Access token and refresh token set.
[12-29 13:13] [INFO]: Starting Better Release Radar...
[12-29 13:13] [INFO]: Using cached Spotify tokens.
[12-29 13:13] [INFO]: Total followed artists: 24224
[12-29 13:13] [ERROR]: Error fetching followed artists: An error occurred while communicating with Spotify's Web API.
Details: com.spotify.hermes.service.RequestTimeoutException: Request timed out: 062a6298e8d7b5-c59d5a-af72-9808-3441000b. Host: 0a84df9a2a142a00000101f6000005440000001a.ip.gae2.spotify.net.:5700.
[12-29 13:13] [ERROR]: Error running the script: An error occurred while communicating with Spotify's Web API.
Details: com.spotify.hermes.service.RequestTimeoutException: Request timed out: 062a6298e8d7b5-c59d5a-af72-9808-3441000b. Host: 0a84df9a2a142a00000101f6000005440000001a.ip.gae2.spotify.net.:5700.
PS C:\Programs\Better-Release-Radar>

@PaulMcInnis
Copy link
Owner

PaulMcInnis commented Jan 2, 2025

looks to me like it's related to caching? #7

... that said your second log here, it has the token.

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