Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read properties of null (InsertAdjacentHTML) Line 702 #449

Closed
2 of 4 tasks
ghost opened this issue Oct 7, 2022 · 12 comments
Closed
2 of 4 tasks

Cannot read properties of null (InsertAdjacentHTML) Line 702 #449

ghost opened this issue Oct 7, 2022 · 12 comments

Comments

@ghost
Copy link

ghost commented Oct 7, 2022

Is there an existing issue for this?

  • I have searched the existing issues

I'm submitting a ...

Description

[07-Oct-2022 16:27:01] | 84.8% | Worker 2 | Line : 702 | Exception | Error suggested | JavascriptException | javascript error: Cannot read properties of null (reading 'insertAdjacentHTML') (Session info: headless chrome=106.0.5249.103)

Hi, I get the above error. It seems to be a bug.
Hope reporting this issue will help you.

Awaiting your response,

Joannes

Environment

- OS : Ubuntu 22.04 (LTS, amd64)
- Python : 3.9
- Script version : 1.7.5

config.json

Dont upload it. I used the config creator, and use http proxies.
@MShawon
Copy link
Owner

MShawon commented Oct 8, 2022

This is happening in YouTube music or normal?
Also do you see this error all the time or it's coming once in a while? I mean script fails to give any suggested views?

Other users also seeing this error #447 but I can't reproduce the issue for some reason.

@ghost
Copy link
Author

ghost commented Oct 8, 2022

It is normal Youtube, headless. But the music is a upload through distributor(So, music video but on youtube.com, not music)
It happens normally when the bot select new video (suggested) after playing link or search in headless www.youtube.com.

Dont know if it is search or link. I use both.

I use linux (ubuntu server 22.04) with headless bot on python 3.9 (from custom ppa). using chrome 106.

Hope this helps.

(I do have /dev/snd device with proper playback situation, since it is vps, I needed to customize sound settings to enable playback)

(I used this for spotify inside docker headless + vps) https://github.com/thisisawesome1994/spotify-client-install-docker-ubuntu

But I did run your bot only when using /dev/snd.

Later I found out that my laptop gives same error, so it is not related to sound or the matter it was run on vpn initially.

seems to happen when bot selects suggested video after playback of chosen one.

@ghost
Copy link
Author

ghost commented Oct 8, 2022

This is an example of such (Youtube video that is music) https://www.youtube.com/watch?v=BTVn-UY1vDw&list=OLAK5uy_mPLaituCI5sdsAQLUv1FIzVdrRdLpavXg

@ghost
Copy link
Author

ghost commented Oct 8, 2022

I use link,, so: https://www.youtube.com/watch?v=BTVn-UY1vDw

@ghost
Copy link
Author

ghost commented Oct 14, 2022

Using dutch IP, if this helps

@MShawon
Copy link
Owner

MShawon commented Oct 14, 2022

Using dutch IP, if this helps

Thanks for the info.. it will be fixed soon.. wait for the new release

@MShawon
Copy link
Owner

MShawon commented Oct 14, 2022

can you test this updated script and let me know if you see those errors or not

Youtube_Viewer_Test.zip

@ghost
Copy link
Author

ghost commented Oct 14, 2022

I dont see these errors with http proxies. I will update you once I have let it run some time.
I will test socks5 proxies later. Because I had some issue there aswell, which might be solved by this.

@ghost
Copy link
Author

ghost commented Oct 21, 2022

I get a few errors. This is one of them: Worker 8 | Line : 705 | Exception | Error end screen | TimeoutException |
Unfortunately the bot stops all together after this error and about 1-2 hours have passed.

@ghost
Copy link
Author

ghost commented Oct 22, 2022

here some other errors.

22-Oct-2022 02:05:42] | 8.9% | Worker 11 | X.X.X.X:2016 --> Video Found : Partytax | Watch Duration : 2m:35s
[22-Oct-2022 02:05:44] | 18.8% | Worker 9 | Referer used : https://t.co/
[22-Oct-2022 02:05:44] | 31.1% | Worker 2 | Referer used : https://t.co/
[22-Oct-2022 02:05:50] | 11.9% | Worker 4 | Referer used : https://t.co/
[22-Oct-2022 02:06:20] | 12.8% | Worker 9 | X.X.X.X:2016 --> Video Found : Staircase | Watch Duration : 6m:15s
[22-Oct-2022 02:06:51] | 15.7% | Worker 1 | Referer used : https://www.google.com/
[22-Oct-2022 02:06:58] | 13.8% | Worker 7 | Referer used : https://t.co/
[22-Oct-2022 02:07:08] | 8.9% | Worker 2 | X.X.X.X:2016 --> Video Found : Can't Sleep | Watch Duration : 5m:12s
[22-Oct-2022 02:07:26] | 12.9% | Worker 8 | Referer used : https://duckduckgo.com/
[22-Oct-2022 02:07:31] | 3.5% | Worker 3 | Line : 676 | TimeoutException | timeout: Timed out receiving message from renderer: 300.000
(Session info: chrome=106.0.5249.119)
[22-Oct-2022 02:07:34] | 13.1% | Worker 5 | Line : 676 | TimeoutException | timeout: Timed out receiving message from renderer: 297.149
(Session info: chrome=106.0.5249.119)

@MShawon
Copy link
Owner

MShawon commented Oct 23, 2022

Timed

that's odd.. it should just close that driver for that error it shouldn't hang.. did you see this error multiple times?

@MShawon
Copy link
Owner

MShawon commented Oct 23, 2022

Timed

that's odd.. it should just close that driver for that error it shouldn't hang.. did you see this error multiple times?

it's possible workers 3 and 5 used a referer that won't load through that proxy due to slow speed of that proxy or blocked or something?

@MShawon MShawon closed this as completed in ca16545 Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant