RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

[Bug]: Locator.screenshot: Timeout 30000ms exceeded.

Open Martico2432 opened this issue 1 year ago • 4 comments

Describe the bug

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: Locator.screenshot: Timeout 30000ms exceeded. │ │ Call log: │ │ waiting for locator("[data-test-id="post-content"]") │ │ │ │ Config: {'allow_nsfw': False, 'theme': 'light', 'times_to_run': 1, 'opacity': 0.9, 'storymode': False, 'storymodemethod': 1, │ │ 'storymode_max_length': 1000, 'resolution_w': 1080, 'resolution_h': 1920, 'zoom': 1.0, 'channel_name': 'Reddit Tales', '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': 'pyttsx', 'random_voice': True, 'elevenlabs_voice_name': 'Bella', │ │ 'elevenlabs_api_key': 'REDACTED', 'aws_polly_voice': 'Matthew', 'streamlabs_polly_voice': 'Matthew', '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\main.py", line 131, in raise err File "d:\RedditVideoMakerBot\main.py", line 113, in run_many(config["settings"]["times_to_run"]) File "d:\RedditVideoMakerBot\main.py", line 68, in run_many main() File "d:\RedditVideoMakerBot\main.py", line 52, in main get_screenshots_of_reddit_posts(reddit_object, number_of_comments) File "d:\RedditVideoMakerBot\video_creation\screenshot_downloader.py", line 203, in get_screenshots_of_reddit_posts raise e File "d:\RedditVideoMakerBot\video_creation\screenshot_downloader.py", line 185, in get_screenshots_of_reddit_posts page.locator('[data-test-id="post-content"]').screenshot(path=postcontentpath) File "D:\RedditVideoMakerBot.venv\lib\site-packages\playwright\sync_api_generated.py", line 16703, in screenshot self._sync( File "D:\RedditVideoMakerBot.venv\lib\site-packages\playwright_impl_sync_base.py", line 115, in _sync return task.result() File "D:\RedditVideoMakerBot.venv\lib\site-packages\playwright_impl_locator.py", line 531, in screenshot return await self._with_element( File "D:\RedditVideoMakerBot.venv\lib\site-packages\playwright_impl_locator.py", line 108, in _with_element handle = await self.element_handle(timeout=timeout) File "D:\RedditVideoMakerBot.venv\lib\site-packages\playwright_impl_locator.py", line 311, in element_handle handle = await self._frame.wait_for_selector( File "D:\RedditVideoMakerBot.venv\lib\site-packages\playwright_impl_frame.py", line 323, in wait_for_selector await self._channel.send("waitForSelector", locals_to_params(locals())) File "D:\RedditVideoMakerBot.venv\lib\site-packages\playwright_impl_connection.py", line 59, in send return await self._connection.wrap_api_call( File "D:\RedditVideoMakerBot.venv\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.TimeoutError: Locator.screenshot: Timeout 30000ms exceeded. Call log: waiting for locator("[data-test-id="post-content"]")

Reproduction Steps

I just ran the program

Expected behavior

Do what it is suposed

Screenshots

No response

System Information

Operating System : Windows 11 Python version : Python 3.10.11 .venv App version / Branch : 3.3.0

Checklist

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

Additional Context

No response

Martico2432 avatar Oct 05 '24 12:10 Martico2432

same bug with python 3.10.7 /Windows 11

Teknoist avatar Oct 05 '24 21:10 Teknoist

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[bot] avatar Oct 13 '24 00:10 github-actions[bot]

i am having the same problem

perk34 avatar Oct 14 '24 23:10 perk34

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[bot] avatar Oct 26 '24 00:10 github-actions[bot]

i also have the same problem

Eruuac avatar Oct 29 '24 19:10 Eruuac

Same problem here on Ubuntu and Python 3.12.3

emilienbev avatar Nov 03 '24 18:11 emilienbev

#2138 Fixes this (Only on the first run through though then reddits servers block you)

Roostydoo2 avatar Nov 04 '24 00:11 Roostydoo2

issue is still not fixed

Gaming8288383838 avatar Nov 07 '24 03:11 Gaming8288383838

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[bot] avatar Nov 15 '24 00:11 github-actions[bot]

Issue closed due to being stale. Please reopen if issue persists in latest version.

github-actions[bot] avatar Dec 01 '24 00:12 github-actions[bot]

issue still not fixed

Raffandrea avatar Dec 23 '24 02:12 Raffandrea