ftde0 / yt2009

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

ytsession error after i put the code #161

Closed SuperLuigiKillz04 closed 9 hours ago

SuperLuigiKillz04 commented 3 days ago

also the recommended for you tab disappears when i get in to the instance

i followed the instructions that were shown in the logs, but i still get the ytsession error

ftde0 commented 3 days ago

are you up to date? latest commit is https://github.com/ftde0/yt2009/commit/89a69c87d4dac3427c542ae937ae006c5223c151, you can use git log within your yt2009 dir to check.

SuperLuigiKillz04 commented 3 days ago

yeah

ftde0 commented 3 days ago

assuming the account test goes correctly (you see the "account used: \<name>" line when starting yt2009 - that means it's working)

can you edit yt2009html.js before those lines:

if(r.streamingData) {
    yt2009exports.extendWrite("players", id, r)
}
for(let i in r) {
    combinedResponse[i] = r[i]
}

(should be after }).then(r => {r.json().then(r => {)

to include this piece of code?

fs.writeFileSync("test.json", JSON.stringify(r));

should make something like this:

fs.writeFileSync("test.json", JSON.stringify(r));
if(r.streamingData) {
    yt2009exports.extendWrite("players", id, r)
}
for(let i in r) {
    combinedResponse[i] = r[i]
}

this should create a test.json file inside of back/ containing the response so we can further see what's going on. please remove your identifying data (datasyncIds, your IP if it could come up, stuff like that) and send the file here.


alternatively, you can include this instead instead of fs.writeFileSync...

console.log(r)

this will log the needed info to your console stdout. if you go this route, please send the screenshot of what it says.


alternatively, if you can't do any of those, use a proxy to get the /player request and send its response here.

SuperLuigiKillz04 commented 1 day ago

image like this?

ftde0 commented 22 hours ago

like that. i've noticed the issue on my end as well though, so if you get a 'Request contains an invalid argument.', message, it's known by now. a fix should be out by next week.

SuperLuigiKillz04 commented 16 hours ago

thx