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

Error [ERR_SOCKET_CONNECTION_TIMEOUT]: Socket connection timeout #5

Open
alinanonymous opened this issue May 7, 2023 · 4 comments
Open

Comments

@alinanonymous
Copy link

Error:

<ref *1> Error [ERR_SOCKET_CONNECTION_TIMEOUT]: Socket connection timeout
    at new NodeError (node:internal/errors:399:5)
    at internalConnectMultiple (node:net:1099:20)
    at Timeout.internalConnectMultipleTimeout (node:net:1638:3)
    at listOnTimeout (node:internal/timers:575:11)
    at process.processTimers (node:internal/timers:514:7) {
  code: 'ERR_SOCKET_CONNECTION_TIMEOUT',

Breaks after "Api Querying items 0 to 1000."

Dunno if this is just a me thing, or I should try with a different ver. of node.js, but heres the full log.
log.txt

@alinanonymous
Copy link
Author

Ok, I tried node.js 18.16.0 and got a similar error.

log2.txt

Hm.

@mourawiII
Copy link

Hey, i keep getting the same error. Did you have any success in fixing it?

@markimarc
Copy link

Looks like the current user agent is not supported by Youtube anymore and the batch of 1000 is simply to much for the YouTube API.

I have tested with the following user agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36

And lowered the batch to 500.

Now the script runs without any problems for me.

@Tinqerer
Copy link

The suggestions by @markimarc got rid of my errors, but now I'm just getting this a few seconds after "Api Querying items 0 to 500":

C:\Users\user\youtube-music-history-scrobbler-main>PAUSE
Press any key to continue . . .

I'm really keen to get this working.

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

4 participants