RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

[Bug]: First few videos work but then it crashes after downloading screenshots phase

Open denigth opened this issue 3 years ago • 11 comments

Describe the bug

after generating a few videos it just randomly starts malfunctioning and giving me the following error i've downloaded everything that's listed and tried messing about with the config but this error keeps coming back

Traceback (most recent call last): File "C:\Users\curti\OneDrive\Desktop\RedditVideoMakerBot-master\main.py", line 117, in raise err File "C:\Users\curti\OneDrive\Desktop\RedditVideoMakerBot-master\main.py", line 99, in run_many(config["settings"]["times_to_run"]) File "C:\Users\curti\OneDrive\Desktop\RedditVideoMakerBot-master\main.py", line 63, in run_many main() File "C:\Users\curti\OneDrive\Desktop\RedditVideoMakerBot-master\main.py", line 51, in main get_screenshots_of_reddit_posts(reddit_object, number_of_comments) File "C:\Users\curti\OneDrive\Desktop\RedditVideoMakerBot-master\video_creation\screenshot_downloader.py", line 108, in get_screenshots_of_reddit_posts page.locator('[data-test-id="post-content"]').screenshot(path=postcontentpath) File "C:\Users\curti\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\sync_api_generated.py", line 13139, in screenshot self._sync( File "C:\Users\curti\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_sync_base.py", line 89, in _sync return task.result() File "C:\Users\curti\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_locator.py", line 394, in screenshot return await self._with_element( File "C:\Users\curti\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_locator.py", line 99, in _with_element handle = await self.element_handle(timeout=timeout) File "C:\Users\curti\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_locator.py", line 219, in element_handle handle = await self._frame.wait_for_selector( File "C:\Users\curti\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_frame.py", line 307, in wait_for_selector await self._channel.send("waitForSelector", locals_to_params(locals())) File "C:\Users\curti\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_connection.py", line 43, in send return await self._connection.wrap_api_call( File "C:\Users\curti\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_connection.py", line 370, in _ return await result File "C:\Users\curti\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_connection.py", line 78, in inner_send result = next(iter(done)).result() playwright._impl._api_types.TimeoutError: Timeout 30000ms exceeded. =========================== logs =========================== waiting for selector "[data-test-id="post-content"]"

Reproduction Steps

tried to run the main.py a few times

Expected behavior

gather the screenshots successfully and compile the video as intended

Screenshots

No response

System Information

Operating System : [Windows 11] Python version : [Python 3.10] App version / Branch : [V3.0]

Checklist

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

Additional Context

No response

denigth avatar Feb 12 '23 12:02 denigth

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 Feb 19 '23 00:02 github-actions[bot]

Having this issue aswell, did you find a solution?

Jan64X avatar Feb 19 '23 13:02 Jan64X

same problem here

yeetus1992 avatar Feb 23 '23 09:02 yeetus1992

NOT stale, having this exact issue

Brandon4466 avatar Feb 23 '23 21:02 Brandon4466

Same issue

SynchronDEV avatar Feb 28 '23 13:02 SynchronDEV

I seem to have fixed the issue.

For some reason, it wasn't working on one of my Reddit accounts. I switched to another account I had, made a new application, and selected it as "web app". It was selected as "script" on my first account (No clue if this had anything to do with the issue).

After this, I successfully passed the downloading screenshots step.

SynchronDEV avatar Feb 28 '23 14:02 SynchronDEV

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 Mar 07 '23 00:03 github-actions[bot]

Still getting this

ghost avatar Mar 18 '23 08:03 ghost

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 Mar 26 '23 00:03 github-actions[bot]

I have the same issue.

Monstroxpilvi avatar Apr 04 '23 18:04 Monstroxpilvi

Some posts don't work, use a different post

OpenSourceSimon avatar Apr 09 '23 07:04 OpenSourceSimon