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

[Bug]: Error: Page.evaluate: TypeError: Cannot set properties of null (setting 'textContent') #2227

Open
2 tasks done
JustaTurtle21 opened this issue Jan 10, 2025 · 1 comment
Labels
bug Something isn't working stale

Comments

@JustaTurtle21
Copy link

Describe the bug

The script just suddenly stopped working, prior that it was working fine. I have deleted the entire and folder and tried to use it again but this error keeps on plaguing me

Reproduction Steps

running main.py

Expected behavior

create a video

Screenshots

No response

System Information

Operating System : Windows 11
Python version : Python 3.10
App version / Branch : V3.3.0

Checklist

  • I have searched the open issues for duplicates.
  • I have shown the entire traceback, if possible.

Additional Context

 Sorry, something went wrong with this version! Try again, and feel free to report this issue at GitHub or the        │
│ Discord community.                                                                                                   │
│ Version: 3.3.0                                                                                                       │
│ Error: Page.evaluate: TypeError: Cannot set properties of null (setting 'textContent')                               │
│     at eval (eval at evaluate (:226:30), <anonymous>:1:101)                                                          │
│     at UtilityScript.evaluate (<anonymous>:233:19)                                                                   │
│     at UtilityScript.<anonymous> (<anonymous>:1:44)                                                                  │
│ Config: {'allow_nsfw': False, 'theme': 'dark', 'times_to_run': 1, 'opacity': 0.9, 'storymode': False,                │
│ 'storymodemethod': 1, 'storymode_max_length': 1000, 'resolution_w': 1080, 'resolution_h': 1920, 'zoom': 1,           │
│ 'channel_name': 'Karma Chronicles', 'background': {'background_video': 'minecraft', 'background_audio': 'lofi',      │
│ 'background_audio_volume': 0.15, 'enable_extra_audio': False, 'background_thumbnail': False,                         │
│ 'background_thumbnail_font_family': 'arial', 'background_thumbnail_font_size': 96,                                   │
│ 'background_thumbnail_font_color': '255,255,255'}, 'tts': {'voice_choice': 'streamlabspolly', 'random_voice': True,  │
│ 'elevenlabs_voice_name': 'Bella', 'elevenlabs_api_key': 'REDACTED', 'aws_polly_voice': 'Matthew',                    │
│ 'streamlabs_polly_voice': 'd', 'tiktok_voice': 'en_us_001', 'tiktok_sessionid': 'REDACTED', 'python_voice': '1',     │
│ 'py_voice_num': '2', 'silence_duration': 0.3, 'no_emojis': False}}                                                   │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Traceback (most recent call last):
  File "D:\RedditVideoMakerBot-master\main.py", line 131, in <module>
    raise err
  File "D:\RedditVideoMakerBot-master\main.py", line 113, in <module>
    run_many(config["settings"]["times_to_run"])
  File "D:\RedditVideoMakerBot-master\main.py", line 68, in run_many
    main()
  File "D:\RedditVideoMakerBot-master\main.py", line 52, in main
    get_screenshots_of_reddit_posts(reddit_object, number_of_comments)
  File "D:\RedditVideoMakerBot-master\video_creation\screenshot_downloader.py", line 165, in get_screenshots_of_reddit_posts
    page.evaluate(
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\sync_api\_generated.py", line 8183, in evaluate
    self._sync(
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\_impl\_sync_base.py", line 115, in _sync
    return task.result()
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\_impl\_page.py", line 435, in evaluate
    return await self._main_frame.evaluate(expression, arg)
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\_impl\_frame.py", line 278, in evaluate
    await self._channel.send(
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\_impl\_connection.py", line 59, in send
    return await self._connection.wrap_api_call(
  File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\_impl\_connection.py", line 514, in wrap_api_call
    raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None
playwright._impl._errors.Error: Page.evaluate: TypeError: Cannot set properties of null (setting 'textContent')
    at eval (eval at evaluate (:226:30), <anonymous>:1:101)
    at UtilityScript.evaluate (<anonymous>:233:19)
    at UtilityScript.<anonymous> (<anonymous>:1:44)
@JustaTurtle21 JustaTurtle21 added the bug Something isn't working label Jan 10, 2025
Copy link
Contributor

This issue is stale because it has been open 7 days with no activity. Remove stale label or comment, or this will be closed in 10 days.

@github-actions github-actions bot added the stale label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

1 participant