ftde0 / yt2009

2009 youtube frontend.
Apache License 2.0
193 stars 119 forks source link

i getting this error #84

Closed zjzjaqka closed 6 months ago

zjzjaqka commented 6 months ago

() tROZCmlWtOc clean fetch 1715048083995 [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead (exp_related) padrinhos before:2010-04-01 clean fetch 1715048087967 [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead

C:\yt2009-main\node_modules\node-fetch\lib\index.js:1501 reject(new FetchError(request to ${request.url} failed, reason: ${err.message}, 'system', err)); ^ FetchError: request to https://returnyoutubedislikeapi.com/votes?videoId=tROZCmlWtOc failed, reason: unable to verify the first certificate at ClientRequest. (C:\yt2009-main\node_modules\node-fetch\lib\index.js:1501:11) at ClientRequest.emit (node:events:520:28) at TLSSocket.socketErrorListener (node:_http_client:502:9) at TLSSocket.emit (node:events:520:28) at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { type: 'system', errno: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE', code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' looks like return youtube dislike api doesnt load

ftde0 commented 6 months ago

sounds like a proxy issue

zjzjaqka commented 6 months ago

how i fix it?

VictorFilimonov commented 6 months ago

same. FetchError: request to https://yt3.ggpht.com/ytc/AIdro_kVdNayYfyZR_2sOpMR4rWkzxo24pV5CwTS0EkrU_ZvKA=s88-c-k-c0x00ffffff-no-rj failed

zjzjaqka commented 6 months ago

How do i fix it?

ftde0 commented 6 months ago

@zjzjaqka please don't spam the issue with the same comment. try turning off any proxys, vpns or anything that may interfere with your network. @VictorFilimonov can you post the full log at request time?

VictorFilimonov commented 6 months ago

/yt2009/node_modules/node-fetch/lib/index.js:1501 reject(new FetchError(request to ${request.url} failed, reason: ${err.message}, 'system', err)); ^ FetchError: request to https://yt3.ggpht.com/ytc/AIdro_noXk-sAWIShpLBGYJF8UBkxLqTVpEyKt6wc8RbLpI9oZ9K3fTx2m76BhURFUTEFDYu2Q=s88-c-k-c0x00ffffff-no-rj failed, reason: at ClientRequest. (/yt2009/node_modules/node-fetch/lib/index.js:1501:11) at ClientRequest.emit (node:events:519:28) at TLSSocket.socketErrorListener (node:_http_client:500:9) at TLSSocket.emit (node:events:519:28) at emitErrorNT (node:internal/streams/destroy:169:8) at emitErrorCloseNT (node:internal/streams/destroy:128:3) at processTicksAndRejections (node:internal/process/task_queues:82:21) at runNextTicks (node:internal/process/task_queues:64:3) at listOnTimeout (node:internal/timers:540:9) at process.processTimers (node:internal/timers:514:7) { type: 'system', errno: 'ETIMEDOUT', code: 'ETIMEDOUT' } Node.js v20.13.0

yt2009 - dev
==========
launch time: 16:56

received 25 videos from master () channel channel/UChhSV3sWNQ_aoXM0E5PC4sw added 50 comments from master () channel channel/UC6P-EyOz-8kcT5TCK-qwkrg () channel channel/UCceEhLzjMtRZdXzIAmqlmKw [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead [yt2009_error] comments parser error TypeError: Cannot read properties of undefined (reading 'forEach') at Object.comments_parser (/yt2009/back/yt2009utils.js:124:50) at /yt2009/back/yt2009html.js:2509:37 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) [yt2009_error] comments parser error TypeError: Cannot read properties of undefined (reading 'forEach') at Object.comments_parser (/yt2009/back/yt2009utils.js:124:50) at /yt2009/back/yt2009html.js:2512:37 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) () channel channel/UC0YAfKY19rHqhKFPW5d2sbQ () channel channel/UCRGGcHedfSpmp-vFPvD2sCg () channel channel/UCCO-E6TrEmZlH3bnUiTqyEw () channel channel/UC7HRdxlamqpRVMPW6MBJlcQ () channel channel/UCqSv69kjChrNvDWtB0lDzvg [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead () channel channel/UC3-eAm-eFDo_33A_ndphw2g () channel channel/UC-fNVKLSSxGbsdq6F6Lxc-w () channel channel/UCGXBE4SrNV0qCtLReBzym_g [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead () channel channel/UCG94rpZEA7WG1eN_UC8GsDA [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead () channel channel/UCYdhJ5dYfkAkEC9E832ZGzA [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead () channel channel/UCmI1CHFEr3HJyfDzeDkh5Kw () channel channel/UCDdPJHmxHCJLH1sDyytCATw [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead () channel channel/UCCVmfCNYq2sEf3_jqRT5f7w [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead () channel channel/UCyHLnD9b92e7SyvfIU4dh5A [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead () channel channel/UCwmzbvi9B0CFKk1AUgxmdBA [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead () channel channel/UCjmCUJmzwjvFTB0u8CdepKw () channel channel/UC-P-lcop9a4KtJ9p7waBSuA [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead () channel channel/UC-MZ2xH-YQfPbdwbOJO3Xog [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead () VIgSgLFwEMs clean fetch 1715187489886 () channel channel/UCYEOZZvX1eAF3OzVgxxib9A [dev] using comments_viewmodel_parser instead () channel channel/UCb--64Gl51jIEVE-GLDAVTg [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead () channel channel/UCGU5VWJgEccp4nB9ddnIrUw () channel channel/UCRPFGlUXlAe7NQHKJv9Kx2g () channel channel/UCmrQ8R-ZI6lWvmuDTaqXYPg () channel channel/UC1pHR8moLz9QBu76wy60GHQ () channel channel/UCUStfw15QWLasnIh8EDXknA () channel channel/UCc82gWqNrRWLxtyujYHDNOQ () channel channel/UCxubR_djWMzHIQrKpL6ynHw () channel channel/UCnlyD7sPwlQ1Va5R7oy3evQ [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead () channel channel/UCWVYw5L3QkaECAI_VABM5WQ [yt2009_error] comments parser error TypeError: Cannot read properties of undefined (reading 'forEach') at Object.comments_parser (/yt2009/back/yt2009utils.js:124:50) at /yt2009/back/yt2009html.js:2509:37 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

ftde0 commented 6 months ago

does the URL it's trying to request (https://yt3.ggpht.com/ytc/AIdro_noXk-sAWIShpLBGYJF8UBkxLqTVpEyKt6wc8RbLpI9oZ9K3fTx2m76BhURFUTEFDYu2Q=s88-c-k-c0x00ffffff-no-rj) open in your browser?

VictorFilimonov commented 6 months ago

does the URL it's trying to request (https://yt3.ggpht.com/ytc/AIdro_noXk-sAWIShpLBGYJF8UBkxLqTVpEyKt6wc8RbLpI9oZ9K3fTx2m76BhURFUTEFDYu2Q=s88-c-k-c0x00ffffff-no-rj) open in your browser?

no with vpn the same

ftde0 commented 6 months ago

probably an issue with your internet then, and unfortunately not much i can do to properly solve this issue (best i could do is probably to make it not crash and use some placeholder image). the image opens fine on my end. cn

this does sound similar to #4 though.

zjzjaqka commented 6 months ago

@zjzjaqka please don't spam the issue with the same comment. try turning off any proxys, vpns or anything that may interfere with your network. @VictorFilimonov can you post the full log at request time?

i tried disabling openvpn and it didn't solve. C:\yt2009-main\back> node backend.js (node:10368) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created)

==========

yt2009 - dev

==========
launch time: 16:45

received 25 videos from master added 50 comments from master () xC7REteizRM clean fetch 1715197578842 [dev] using comments_viewmodel_parser instead () channel channel/UCTXGTI9cs7CWjx_KbgnZiUA [dev] using comments_viewmodel_parser instead () xC7REteizRM z cache (1715197622945) convert: unable to open image '..//assets/default.png': No such file or directory @ error/blob.c/OpenBlob/3596. convert: no images defined `histogram:info:' @ error/convert.c/ConvertImageCommand/3362. (exp_related) street view before:2010-04-01 clean fetch 1715197625419 [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead () os padrinhos magicos redublagem before:2010-05-01 clean fetch 1715197764651 () tROZCmlWtOc clean fetch 1715197772029 [dev] using comments_viewmodel_parser instead (exp_related) padrinhos before:2010-04-01 clean fetch 1715197774790 () channel channel/UCvm7Z7ybUV0cMeJ-sgOaOaA [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead

C:\yt2009-main\node_modules\node-fetch\lib\index.js:1501 reject(new FetchError(request to ${request.url} failed, reason: ${err.message}, 'system', err)); ^ FetchError: request to https://returnyoutubedislikeapi.com/votes?videoId=tROZCmlWtOc failed, reason: unable to verify the first certificate at ClientRequest. (C:\yt2009-main\node_modules\node-fetch\lib\index.js:1501:11) at ClientRequest.emit (node:events:520:28) at TLSSocket.socketErrorListener (node:_http_client:502:9) at TLSSocket.emit (node:events:520:28) at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { type: 'system', errno: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE', code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' }

Node.js v22.1.0

C:\yt2009-main\back> node backend.js (node:11224) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created)

==========

yt2009 - dev

==========
launch time: 16:53

received 25 videos from master added 50 comments from master () tROZCmlWtOc clean fetch 1715197991391 [dev] using comments_viewmodel_parser instead (exp_related) padrinhos before:2010-04-01 clean fetch 1715197994013 () channel channel/UCvm7Z7ybUV0cMeJ-sgOaOaA [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead (_warp_swf) warp videos load (tROZCmlWtOc, 1715198013540) () tROZCmlWtOc z cache (1715198013541) (exp_related) padrinhos before:2010-04-01 from cache 1715198013554 () xC7REteizRM clean fetch 1715198028929 [dev] using comments_viewmodel_parser instead convert: unable to open image '..//assets/default.png': No such file or directory @ error/blob.c/OpenBlob/3596. convert: no images defined `histogram:info:' @ error/convert.c/ConvertImageCommand/3362. (exp_related) street view before:2010-04-01 clean fetch 1715198031687 [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead

C:\yt2009-main\node_modules\node-fetch\lib\index.js:1501 reject(new FetchError(request to ${request.url} failed, reason: ${err.message}, 'system', err)); ^ FetchError: request to https://returnyoutubedislikeapi.com/votes?videoId=xC7REteizRM failed, reason: unable to verify the first certificate at ClientRequest. (C:\yt2009-main\node_modules\node-fetch\lib\index.js:1501:11) at ClientRequest.emit (node:events:520:28) at TLSSocket.socketErrorListener (node:_http_client:502:9) at TLSSocket.emit (node:events:520:28) at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { type: 'system', errno: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE', code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' }

Node.js v22.1.0

C:\yt2009-main\back> node backend.js (node:5244) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created)

==========

yt2009 - dev

==========
launch time: 16:54

() xC7REteizRM clean fetch 1715198047673 [dev] using comments_viewmodel_parser instead convert: unable to open image '..//assets/default.png': No such file or directory @ error/blob.c/OpenBlob/3596. convert: no images defined `histogram:info:' @ error/convert.c/ConvertImageCommand/3362. (exp_related) street view before:2010-04-01 clean fetch 1715198050176 [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead

C:\yt2009-main\node_modules\node-fetch\lib\index.js:1501 reject(new FetchError(request to ${request.url} failed, reason: ${err.message}, 'system', err)); ^ FetchError: request to https://returnyoutubedislikeapi.com/votes?videoId=xC7REteizRM failed, reason: unable to verify the first certificate at ClientRequest. (C:\yt2009-main\node_modules\node-fetch\lib\index.js:1501:11) at ClientRequest.emit (node:events:520:28) at TLSSocket.socketErrorListener (node:_http_client:502:9) at TLSSocket.emit (node:events:520:28) at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { type: 'system', errno: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE', code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' }

Node.js v22.1.0

C:\yt2009-main\back> node backend.js (node:3056) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created)

==========

yt2009 - dev

==========
launch time: 16:55

() xC7REteizRM clean fetch 1715198103691 [dev] using comments_viewmodel_parser instead convert: unable to open image '..//assets/default.png': No such file or directory @ error/blob.c/OpenBlob/3596. convert: no images defined `histogram:info:' @ error/convert.c/ConvertImageCommand/3362. (exp_related) street view before:2010-04-01 clean fetch 1715198106393 [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead [dev] using comments_viewmodel_parser instead

C:\yt2009-main\node_modules\node-fetch\lib\index.js:1501 reject(new FetchError(request to ${request.url} failed, reason: ${err.message}, 'system', err)); ^ FetchError: request to https://returnyoutubedislikeapi.com/votes?videoId=xC7REteizRM failed, reason: unable to verify the first certificate at ClientRequest. (C:\yt2009-main\node_modules\node-fetch\lib\index.js:1501:11) at ClientRequest.emit (node:events:520:28) at TLSSocket.socketErrorListener (node:_http_client:502:9) at TLSSocket.emit (node:events:520:28) at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { type: 'system', errno: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE', code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' }

ftde0 commented 6 months ago

weird, assuming there is nothing else running (no network monitoring software/nothing?) you can work around this by changing the "fetch" function in /back/cache_dir/ryd_cache_manager.js to:

"fetch": function(id, callback) {
     callback(5);
}

this IS however just a workaround to keep yt2009 from crashing and will show all videos having 5 stars. but it won't crash.

zjzjaqka commented 6 months ago

weird, assuming there is nothing else running (no network monitoring software/nothing?) you can work around this by changing the "fetch" function in /back/cache_dir/ryd_cache_manager.js to:

"fetch": function(id, callback) {
     callback(5);
}

this IS however just a workaround to keep yt2009 from crashing and will show all videos having 5 stars. but it won't crash.

Captura de tela 2024-05-08 173933

`C:\yt2009-main\back> node backend.js C:\yt2009-main\back\cache_dir\ryd_cache_manager.js:17 "readCache": function(id) { ^

SyntaxError: Unexpected token ':' at wrapSafe (node:internal/modules/cjs/loader:1389:18) at Module._compile (node:internal/modules/cjs/loader:1425:20) at Module._extensions..js (node:internal/modules/cjs/loader:1564:10) at Module.load (node:internal/modules/cjs/loader:1287:32) at Module._load (node:internal/modules/cjs/loader:1103:12) at Module.require (node:internal/modules/cjs/loader:1310:19) at require (node:internal/modules/helpers:179:18) at Object. (C:\yt2009-main\back\yt2009html.js:10:19) at Module._compile (node:internal/modules/cjs/loader:1480:14) at Module._extensions..js (node:internal/modules/cjs/loader:1564:10)

Node.js v22.1.0 `

ftde0 commented 6 months ago

you seem to have forgotten the closing bracket, but upon further inspection i also forgot a character. the updated code to just drop in should look like this

"fetch": function(id, callback) {
     callback(5);
},

the difference is in the , at the end.

zjzjaqka commented 6 months ago

you seem to have forgotten the closing bracket, but upon further inspection i also forgot a character. the updated code to just drop in should look like this

"fetch": function(id, callback) {
     callback(5);
},

the difference is in the , at the end.

Captura de tela 2024-05-08 175351 C:\yt2009-main\back>node backend.js C:\yt2009-main\back\cache_dir\ryd_cache_manager.js:1 } ^

SyntaxError: Unexpected token '}' at wrapSafe (node:internal/modules/cjs/loader:1389:18) at Module._compile (node:internal/modules/cjs/loader:1425:20) at Module._extensions..js (node:internal/modules/cjs/loader:1564:10) at Module.load (node:internal/modules/cjs/loader:1287:32) at Module._load (node:internal/modules/cjs/loader:1103:12) at Module.require (node:internal/modules/cjs/loader:1310:19) at require (node:internal/modules/helpers:179:18) at Object. (C:\yt2009-main\back\yt2009html.js:10:19) at Module._compile (node:internal/modules/cjs/loader:1480:14) at Module._extensions..js (node:internal/modules/cjs/loader:1564:10)

Node.js v22.1.0

ftde0 commented 6 months ago

you have a lonely closing bracket at line 1 (the beginning of the script) that shouldn't be here. remove it

zjzjaqka commented 6 months ago

Which one?

ftde0 commented 6 months ago

at the beginning, before const fs =... remove only the closing bracket

zjzjaqka commented 6 months ago

at the beginning, before const fs =... remove only the closing bracket

Captura de tela 2024-05-08 180142 C:\yt2009-main\back> node backend.js C:\yt2009-main\back\cache_dir\ryd_cache_manager.js:1 } ^

SyntaxError: Unexpected token '}' at wrapSafe (node:internal/modules/cjs/loader:1389:18) at Module._compile (node:internal/modules/cjs/loader:1425:20) at Module._extensions..js (node:internal/modules/cjs/loader:1564:10) at Module.load (node:internal/modules/cjs/loader:1287:32) at Module._load (node:internal/modules/cjs/loader:1103:12) at Module.require (node:internal/modules/cjs/loader:1310:19) at require (node:internal/modules/helpers:179:18) at Object. (C:\yt2009-main\back\yt2009html.js:10:19) at Module._compile (node:internal/modules/cjs/loader:1480:14) at Module._extensions..js (node:internal/modules/cjs/loader:1564:10)

Node.js v22.1.0

ftde0 commented 6 months ago

no no no don't remove the consts, put them back, this bracket is what i was talking about

Screenshot_20240508-230422_Bromite

zjzjaqka commented 6 months ago

no no no don't remove the consts, put them back, this bracket is what i was talking about

Screenshot_20240508-230422_Bromite

it worked! thank you.

VictorFilimonov commented 6 months ago

probably an issue with your internet then, and unfortunately not much i can do to properly solve this issue (best i could do is probably to make it not crash and use some placeholder image). the image opens fine on my end. cn

this does sound similar to #4 though.

Replace yt3.ggpht.com with yt3.googleusercontent.com please