-
Notifications
You must be signed in to change notification settings - Fork 0
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
Comments
I get the same error even with 9 days: PS C:\Programs\Better-Release-Radar> npm start -- --max-age-days 9 --region ""
[12-29 13:13] [INFO]: Prompting user to authorize the app Authorize your app by visiting this URL:
|
looks to me like it's related to caching? #7 ... that said your second log here, it has the token. |
PS C:\Programs\Better-Release-Radar> npm start -- --max-age-days 367 --region ""
[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.
The text was updated successfully, but these errors were encountered: