Skip to content
This repository has been archived by the owner on Feb 3, 2024. It is now read-only.

New error on 1.3.3 when watching stream #20

Closed
Reserton opened this issue Jul 17, 2021 · 33 comments
Closed

New error on 1.3.3 when watching stream #20

Reserton opened this issue Jul 17, 2021 · 33 comments
Labels
bug Something isn't working

Comments

@Reserton
Copy link

Reserton commented Jul 17, 2021

Firstly thanks and great work getting the issues fixed so quickly.

However currently 1.3.3 seems to be broken for me at least. Once you choose the channel to watch it gets below error, I have tried the npm and .exe compiled versions and they both do the same thing :

Setting Video Settings like Quality and Volume...

Watching https://www.twitch.tv/Sykkuno...

(node:35920) UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeError: Cannot read property 'startsWith' of undefined
at :57:33
at Array.filter ()
at :56:39
at ExecutionContext._evaluateInternal (S:\RustDropBot\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:218:19)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async ExecutionContext.evaluate (S:\RustDropBot\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:107:16)
at async MapDrops (S:\RustDropBot\src\functions\MapDrops.js:89:5)
at async CheckProgressCurrentPage (S:\RustDropBot\src\Checks\CheckProgressCurrentPage.js:14:5)
at async S:\RustDropBot\src\Pages\StreamPage.js:68:9
at async CurrentProgressEvent (S:\RustDropBot\src\Pages\StreamPage.js:66:5)
at async StreamPage (S:\RustDropBot\src\Pages\StreamPage.js:54:5)
at async intrust (S:\RustDropBot\src\Pages\WatchingPage.js:79:13)
(Use TTVDropBot --trace-warnings ... to show where the warning was created)
(node:35920) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:35920) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@Zaarrg
Copy link
Owner

Zaarrg commented Jul 17, 2021

Just tried to watch the same ch and works fine for me.

Screenshot_6
When its failing the Evaluation with something being undefined this mostly means that the Bot can't get some value from the watching or progress page. Could be a result of the page not loading, data on it not loading etc. So can't actually tell. I think its the progress page not loading active drops... try to go on https://www.twitch.tv/drops/inventory make sure the drop is there under active drops then try to watch it with the bot.

@Zaarrg Zaarrg added the issue A issue with the Bot label Jul 17, 2021
@Reserton
Copy link
Author

Reserton commented Jul 17, 2021

It does it on every stream for me, and the drop is currently 50% on my drops page and it currently works fine in the old version.

It takes about 2-4 minutes to get the error.

Sykunno is only one with out a complete drop i have online currently.

I have tried Cyr whos drop I have completed and same issue as below :

image

I will try and a complete fresh start instead of using my old settings.

@Zaarrg
Copy link
Owner

Zaarrg commented Jul 17, 2021

Use the npm version and go into src/Pages and open Watchingpage.js and change in line 23 headless: true to headless: false.
Then start the Bot with node index.js and the Bot wont close Chrome and let u see what is happening. Then when the bot is at Watching ..... check what is shown on https://www.twitch.tv/drops/inventory. This site should be already opened by the bot. Check if active Drops are shown and the progress of the Drops are shown etc.

Also maybe restart ur pc this could fix the page not properly loading

@Zaarrg
Copy link
Owner

Zaarrg commented Jul 18, 2021

Basicly the Bot doesnt find and active drops on https://www.twitch.tv/drops/inventory
Got this issue while testing like once or twice cause the active drops didn't load. But it should not happen on every drop every time cause the page is pretty much reloaded everytime it checks it...

@Reserton
Copy link
Author

Reserton commented Jul 18, 2021

It is very strange. I will try a reboot.

With headless false it appears to load the page fine. It refreshes it once or twice. However the drop is showing fine on this page.

image

image

@Zaarrg
Copy link
Owner

Zaarrg commented Jul 18, 2021

Hm weird if u dont mind adding some code for debbuging you can go to src/functions and open mapdrops.js and add in line 75 just before //Filter the Gloabl Drops Out add
console.log(activedrops )
then restart the bot this should log everthing the bot gets from your twitch inventory

@Reserton
Copy link
Author

Reserton commented Jul 18, 2021

Is it supposed to print the log into the cmd? as it didnt print anything. So if so its either not getting that far or I done it wrong.

My code is

`
})

        console.log(activedrops )
        //Filter the Gloabl Drops Out
        activedrops = activedrops.filter((item) => {
            return item.url.startsWith('https://www.twitch.tv')
        })

`

@Zaarrg
Copy link
Owner

Zaarrg commented Jul 18, 2021

Open mapdrops.js and take the code from here https://pastebin.com/d4H1QmEX and replaced it just to ctrl +a and replace it with everything frome pastebin. This should log it in the cmd

@Reserton
Copy link
Author

Reserton commented Jul 18, 2021

Very strange. It sees the % fine but thinks its complete or not live?

I notice the nmplol Chestplate ones format is completely different, (no url e.t.c )to the rest, could that cause issues?

image

@Zaarrg
Copy link
Owner

Zaarrg commented Jul 18, 2021

Ah okay found the issue its the nmplol chestplate it has 2 streamers linked to it and the bot doesnt know it has to look out for drops with two links to watch...
Can u right click in chrome in the twitch inventory page and save the page as and send it to me. Then i can create a quick fix for it cause i dont have nmplol drop in my inventory therefor did not get the error u did

@Reserton
Copy link
Author

Reserton commented Jul 18, 2021

Ah yes. Page attached.

@Zaarrg
Copy link
Owner

Zaarrg commented Jul 18, 2021

Hm i think the twitch folder is missing in ur download, usally chrome saves pages as twitch.html + "html name" files folder

@Reserton
Copy link
Author

Reserton commented Jul 18, 2021

Ah yes, I downloaded to a larger folder so didnt notice the folder. Here is full archive.

@Zaarrg
Copy link
Owner

Zaarrg commented Jul 18, 2021

Hm okay seems that the twitch page cant be saved... Can you follow the steps like here https://streamable.com/a4qbxp and then take a screen of whats shown on the right. Would help a lot.

Sry that i have to ask you to do it all but cant recreate the error cause can't get the drop because its offline sadly....

@Zaarrg
Copy link
Owner

Zaarrg commented Jul 18, 2021

Oh and click on the nmplol twitch thing not like i did cyr

@Reserton
Copy link
Author

Reserton commented Jul 18, 2021

The below should be it

<p data-test-selector="DropsCampaignInProgressDescription-hint-text-parent" class="sc-AxirZ fOcBjS">To continue the progress, go to <a class="ScCoreLink-udwpw5-0 FXIKh tw-link" rel="noopener noreferrer" target="_blank" href="/directory/game/Rust?tl=c2542d6d-cd10-4532-919b-3d19f30a768b">a participating live channel</a> including <span><a data-test-selector="DropsCampaignInProgressDescription-two-channels-hint-text" class="ScCoreLink-udwpw5-0 FXIKh tw-link" rel="noopener noreferrer" target="_blank" href="https://www.twitch.tv/nmplol">/nmplol</a></span> and <a data-test-selector="DropsCampaignInProgressDescription-multi-channels-hint-text" class="ScCoreLink-udwpw5-0 FXIKh tw-link" rel="noopener noreferrer" target="_blank" href="https://www.twitch.tv/malena">/malena</a></p>

@Zaarrg Zaarrg added bug Something isn't working and removed issue A issue with the Bot labels Jul 18, 2021
@Zaarrg
Copy link
Owner

Zaarrg commented Jul 18, 2021

okay try this https://pastebin.com/sqUnah3J in mapdrops.js. this should fix it. let me know if it does fix it

@Reserton
Copy link
Author

Reserton commented Jul 18, 2021

Thanks, Fixed it!

image

However I am now hitting Issue #21 lol.

There appears to be an issue with it thinking Sykkunos drop is complete.

@Reserton
Copy link
Author

Reserton commented Jul 18, 2021

As mentioned in issue 21 it could be because he has a previous drop as below :

image

However it showed the correct % on the log output previously, so not sure on that.

@Zaarrg
Copy link
Owner

Zaarrg commented Jul 18, 2021

Hm can u add console.log(data.Streamers) in src/checks checkifallclaimed.js in line around 7 and screenshot me what it logs in cmd

@Reserton
Copy link
Author

Reserton commented Jul 18, 2021

Yeah shows claimed. Strange. Ludwig, Sonii, and Nmp showing claimed incorrectly too. xQc also has multiple drops but his correctly shows not claimed. So not sure what issue is.

image
image

@Zaarrg
Copy link
Owner

Zaarrg commented Jul 18, 2021

Can u tell me if the claimed: true is actually true? Or tell me were it is wrong... Or is it only the sykkuno drop that is wrong

@Reserton
Copy link
Author

Reserton commented Jul 18, 2021

The false trues are :

Ludwig
Nmplol
Sykkunno and
Sonii

My claimed drops are :

Trainwrecks
Pokimane
Cyr
WillNeff
Myth
Arisaki

Correct Falses :

xQcOW
Voyboy

Ludwig and Sykkunno I have previous drops for, but I am not sure if thats the issue as, I also have another Rust drop for xQcOW

@Zaarrg
Copy link
Owner

Zaarrg commented Jul 18, 2021

Trying to recreate the error formyself but even after setting everything as u have it i dont get all live channels claimed....
Last thing hopefully can u log console.log(data.claimed) add this under the other log that u added

  • under the console.log(data.Streamers)

@Reserton
Copy link
Author

Output is as below :

`Watching https://www.twitch.tv/Sykkuno...

[
{
url: 'https://www.twitch.tv/Myth',
live: false,
name: 'Myth',
drop: 'Myth Assault Rifle',
claimed: true
},
{
url: 'https://www.twitch.tv/Voyboy',
live: false,
name: 'Voyboy',
drop: 'Voyboy Hammer',
claimed: false
},
{
url: 'https://www.twitch.tv/xQcOW',
live: false,
name: 'xQcOW',
drop: 'xQc SAR',
claimed: false
},
{
url: 'https://www.twitch.tv/AriaSaki',
live: true,
name: 'AriaSaki',
drop: 'Ariasaki Hammer',
claimed: true
},
{
url: 'https://www.twitch.tv/Sykkuno',
live: true,
name: 'Sykkuno',
drop: 'Sykkuno Assault Rifle',
claimed: true
},
{
url: 'https://www.twitch.tv/ludwig',
live: false,
name: 'ludwig',
drop: 'Ludwig Sleeping Bag',
claimed: true
},
{
url: 'https://www.twitch.tv/pokimane',
live: false,
name: 'pokimane',
drop: 'Pokimane Painted Garage Door',
claimed: true
},
{
url: 'https://www.twitch.tv/Trainwreckstv',
live: false,
name: 'Trainwreckstv',
drop: 'Trainwreckstv Combat Knife',
claimed: true
},
{
url: 'https://www.twitch.tv/Account Not Found',
live: false,
name: 'Account Not Found',
drop: 'WillNeff Burlap Headwrap',
claimed: true
},
{
url: 'https://www.twitch.tv/Nmplol',
live: false,
name: 'Nmplol',
drop: 'nmplol Chestplate',
claimed: true
},
{
url: 'https://www.twitch.tv/SONII',
live: false,
name: 'SONII',
drop: 'Sonii Assault Rifle',
claimed: true
},
{
url: 'https://www.twitch.tv/cyr',
live: false,
name: 'cyr',
drop: 'Cyr Burlap Shirt',
claimed: true
}
]
[
'Pokimane Garage door',
'Myth AK',
'Trainwrecks Combat knife',
'Ariasaki Building hammer',
'Riqqeloff Rug',
'WillNeff Headwrap',
'Sinks Mp5',
'Cyr Burlap Shirt',
'KKatamina Facemask',
'Frost M249',
'xChocobars Large Box',
'iitztimmy L96',
'ShackyHD Armoured door ',
'IOK Facemask',
'Rpold Hoodie',
'Golden Fan Weapon Charm',
'Silver order — weaponry',
'Reward pistol order',
'Picco Jacket',
'NoraExplorer Garage Door',
'PyrooTv MP5',
'Suspect Door of Glory',
'etoleto SAR',
'Tesla Rocket Launcher',
'6zdenko Babushka Bandana',
'xGuiRy Socks & Sandals',
'DairyGold Fridge',
'Shroud Pants',
'Ricoy23 Garage Door',
'Blooprint SAR',
'iRiskpvp SAR',
'deathwingua MP5',
'Swales Facemask',
'bnans Sleeping Bag',
'r00t9r AR',
'TwinkleCave Box',
'Albin MP5',
'Willjum Wolf Poncho',
'Vice Hammer',
'Lv. 57 Travel Kit',
'DyannaTV Garage Door',
'Trauzooka',
'Ash_On_LoL Door',
'Mammoth Armored Door',
'JordanRants Jackpot Satchel',
'bchillz SAR',
'Killjoys Mask',
'Buddha Mask',
'PrinceVidz Hammer',
'Posty BAR',
'Welyn Garage Door',
'Ray C. Double Door',
'Coconut Rock',
'Hutnik MP5',
"Sequisha's Hot Dog Eoka",
'Lifestomper MP5',
"Mister Flak's Hammer",
'hJune Jackhammer',
'Pookie Hoodie',
'Greekgodx Hunting Bow',
'Pookie Pants',
'ILLOJUAN Garage Door',
'JuanSGuarnizo Chest Plate',
'MoistCr1TiKaL Jacket',
'Alexby Metal Door',
'Aroyitt Garage Door',
'Kitten Face Mask',
'Mizkif Sleeping Bag',
'Ornate Tempered Revolver',
'Nebula Hoodie',
'Rubius Crate',
'Nebula Pants',
'Sykkuno Longsleeve TShirt',
'Jacksepticeye Storage',
'Lilypichu Jacket',
'Shroud Hoodie',
'Pokimane Garage Door',
'Ludwig Hoodie',
'Myth Chestplate',
'Hobo Barrel',
'Industrial Door',
'xQc Assault Rifle',
'Sofa',
'Magma Wings',
'TwitchGlitch GlitchCon 2020 Emote',
'Samurai2077 GlitchCon 2020 Emote',
'KaWutGuys GlitchCon 2020 Emote',
'FrankerCool GlitchCon 2020 Emote',
'EnlightenD GlitchCon 2020 Emote',
'AppaK GlitchCon 2020 Emote'
]

All live Channels claimed...`

@Zaarrg
Copy link
Owner

Zaarrg commented Jul 18, 2021

Okay finally recreated the error the bot acutally thinks that xQc Assault Rifle is Sykkuno Assault Rifle because its so similar, will have to fix it tomorrow as it already 4 a.m.

For now use one of those fixes:
-The Check if the Drop is claimed is disabled, will add the feature after i fixed it.

  • If using node:
    Just Clone the repo and get the new version
  • If using exe:
    Download and replace your ttvdropbot.exe with the one out of the TTVDropBot Temporarily Fixed.zip.
    TTVDropBot Temporarily Fixed.zip

@Zaarrg Zaarrg pinned this issue Jul 18, 2021
@Reserton
Copy link
Author

Perfect, that fixed it, thanks.

image

@Reserton
Copy link
Author

Reserton commented Jul 18, 2021

So for some reason when there is only live channels for ones I have the drops for, it still seems to want to wait for 3 trys. It then seems to hang waiting for a new stream.

As below screenshot. Ludwig is now online and it hasn't picked it up. It has not changed for over an hour.

image

Potentially Ludwigs was still false flagged as true though.

I double checked and he had only been on rust for 26 minutes, so potentially I also did not wait long enough.


However after a restart it now waits for about 20 mins then gets this error, Ludwig is currently the only live streamer so this is potentially related to the 1 streamer online issue again. The error looks identical.

Reached 100 % on all currently Live Channels...
Waiting for new Channels to go Live... Retry in 10 Minutes

Checking for Live Channels

Going to Starting Channel...
(node:32000) UnhandledPromiseRejectionWarning: Error: Protocol error (Page.navigate): Invalid parameters Failed to deserialize params.url - BINDINGS: mandatory field missing at position 49
    at S:\Downloads\TTVDropBot-main\TTVDropBot-main\node_modules\puppeteer\lib\cjs\puppeteer\common\Connection.js:208:63
    at new Promise (<anonymous>)
    at CDPSession.send (S:\Downloads\TTVDropBot-main\TTVDropBot-main\node_modules\puppeteer\lib\cjs\puppeteer\common\Connection.js:207:16)
    at next (S:\Downloads\TTVDropBot-main\TTVDropBot-main\node_modules\puppeteer-extra-plugin-stealth\evasions\sourceurl\index.js:30:43)
    at CDPSession.send (S:\Downloads\TTVDropBot-main\TTVDropBot-main\node_modules\puppeteer-extra-plugin-stealth\evasions\sourceurl\index.js:46:18)
    at navigate (S:\Downloads\TTVDropBot-main\TTVDropBot-main\node_modules\puppeteer\lib\cjs\puppeteer\common\FrameManager.js:108:47)
    at FrameManager.navigateFrame (S:\Downloads\TTVDropBot-main\TTVDropBot-main\node_modules\puppeteer\lib\cjs\puppeteer\common\FrameManager.js:91:13)
    at Frame.goto (S:\Downloads\TTVDropBot-main\TTVDropBot-main\node_modules\puppeteer\lib\cjs\puppeteer\common\FrameManager.js:416:41)
    at Page.goto (S:\Downloads\TTVDropBot-main\TTVDropBot-main\node_modules\puppeteer\lib\cjs\puppeteer\common\Page.js:789:53)
    at StreamPage (S:\Downloads\TTVDropBot-main\TTVDropBot-main\src\Pages\StreamPage.js:27:24)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:32000) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:32000) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

image

@Reserton
Copy link
Author

Reserton commented Jul 18, 2021

I left it on overnight, and it got the NMP drop just fine. So I think the Ludwig one may have been a fluke due to it only being live 26 mins? not sure.

The one stream bug still seems to be present but not 100% though which is strange. As when it was just Ludwig I got the above error. But now its just Nmp its working fine as below :

image

@Zaarrg
Copy link
Owner

Zaarrg commented Jul 18, 2021

Not quite sure if it is fixed in 1.3.3.1, would be nice if you could check on it. Added a Check if only one ch is live and it is already claimed/100% it will try to look every 10 mins for a new ch and it will loop thorugh the one ch which is live every 10 mins in this case nmplol because he was the only one live, im not quite sure wy it didn't watch ludwig after it was show as live have to look further into this bug

@Reserton
Copy link
Author

Me and friend using the new version now. Will let you know if the issue reoccurs. Only Cyr streaming currently so good time to test.

The new chrome detect feature worked to find my .exe and the program accepted my profile path now too.

@Reserton
Copy link
Author

Still happening unfortunatley :

image

@Zaarrg
Copy link
Owner

Zaarrg commented Feb 6, 2022

Not active anymore, if this still occurs you can reopen this issue.

@Zaarrg Zaarrg closed this as completed Feb 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants