beebls / youtube-music-history-scrobbler

🎵⬇️ Automatically format your YouTube Music history so you can upload it to Last.fm
GNU General Public License v3.0
30 stars 4 forks source link

Error [ERR_SOCKET_CONNECTION_TIMEOUT]: Socket connection timeout #5

Open alinanonymous opened 1 year ago

alinanonymous commented 1 year ago

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 commented 1 year ago

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

log2.txt

Hm.

mourawiII commented 1 year ago

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

markimarc commented 1 year ago

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 commented 9 months ago

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.