ftde0 / yt2009

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

Cannot read properties of undefined (reading 'includes') yt2009utils.js:372 #63

Closed aldairbotherotaku closed 7 months ago

aldairbotherotaku commented 8 months ago

I mean the error says everything, it seems like result.videoCountText.simpleText returns undefined. i will use "result.subscriberCountText.simpleText.includes("subscriber"))" insted of that thing for make my instance work again lol

() rongu clean fetch 1710996153669 /repos/yt2009/back/yt2009utils.js:372 && result.videoCountText.simpleText.includes("subscriber")) { ^

TypeError: Cannot read properties of undefined (reading 'includes') at /repos/yt2009/back/yt2009utils.js:372:53 at Array.forEach () at Object.search_parse (/repos/yt2009/back/yt2009utils.js:284:17) at /repos/yt2009/back/yt2009search.js:199:49 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

ftde0 commented 8 months ago

judging by the message i'm guessing it happens when trying to search for "rongu"?

can you send the full search URL along with back/yt2009constants.json (remove your IP beforehand) so i can try to replicate the issue?

Aldair502 commented 8 months ago

judging by the message i'm guessing it happens when trying to search for "rongu"?

can you send the full search URL along with back/yt2009constants.json (remove your IP beforehand) so i can try to replicate the issue?

(This happens on every yt search sometimes no just with "rongu". that was just a test) file.json

nah isn't my ip. it's a 1dll vps. anyways so there is no problem.

ftde0 commented 8 months ago

will add a workaround tomorrow. once that's done i'll ask you to retest there.

ftde0 commented 8 months ago

please retest and close if the issue is no longer there.

aldairbotherotaku commented 7 months ago

fixed