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]: Timeout during the screenshots downloading #1898

Closed
2 tasks done
sebbourgeois opened this issue Dec 9, 2023 · 11 comments
Closed
2 tasks done

[Bug]: Timeout during the screenshots downloading #1898

sebbourgeois opened this issue Dec 9, 2023 · 11 comments
Labels
bug Something isn't working outdated stale

Comments

@sebbourgeois
Copy link

Describe the bug

Since yesterday, on my account, I have a new UI interface.
Since then, every time I run the script, I have a timeout when trying to do the screenshot. I tried to switch my account back to the old reddit interface, just in case, issue is still there.

Reproduction Steps

Just run the script on the shortscarystories subreddit

Expected behavior

╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Downloading screenshots of reddit posts...                                                                                                                                                                                                                                         │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Launching Headless Browser...
Logging in to Reddit...
Skipping translation...
Something went wrong!
Something went wrong with making the screenshots! Do you want to skip the post? (y/n) n
Do you want the error traceback for debugging purposes? (y/n)y
╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Sorry, something went wrong with this version! Try again, and feel free to report this issue at GitHub or the Discord community.                                                                                                                                                   │
│ Version: 3.2.1                                                                                                                                                                                                                                                                     │
│ Error: Timeout 30000ms exceeded.                                                                                                                                                                                                                                                   │
│ =========================== logs ===========================                                                                                                                                                                                                                       │
│ waiting for locator("[data-test-id=\"post-content\"]")                                                                                                                                                                                                                             │
│ ============================================================                                                                                                                                                                                                                       │
│ 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.0, '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': 'tiktok', '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}}                                                                                                                                                                                                                 │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Screenshots

image

System Information

Operating System : Ubuntu 22.04
Python version : Python 3.10.12
App version / Branch : 3.2.1

Checklist

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

Additional Context

No response

@sebbourgeois sebbourgeois added the bug Something isn't working label Dec 9, 2023
@cyber523
Copy link

if this bug gets ignored i m pissed

@sebbourgeois
Copy link
Author

@cyber523 there are several threads on discord about this as well, hopefully there will be a fix soon :)

@LuukOriginal
Copy link

I am also looking into it right now, already fixed the first image for the post title, but still strugeling with the comments, because now all comment elements also contain their child elements inside of them, so need to find a way to exclude those, for the title I just changed the page.locator('[data-test-id="post-content"]') on line 180 and line 185 to page.locator(f'#t3_{reddit_id}'), still trying to get the comments to show up, only got the text of the comment right now by using this: page.locator(f'#t1_{comment["comment_id"]}-comment-rtjson-content').screenshot( path=f"assets/temp/{reddit_id}/png/comment_{idx}.png" )

@harshalplus1
Copy link

run this
pip install moviepy --upgrade
and then restart your device. It should work

@sebbourgeois
Copy link
Author

run this
pip install moviepy --upgrade
and then restart your device. It should work

This has nothing to do with moviepy, the issue comes from the new Reddit interface.

@sebbourgeois sebbourgeois mentioned this issue Dec 12, 2023
2 tasks
@LuukOriginal
Copy link

run this
pip install moviepy --upgrade
and then restart your device. It should work

This has nothing to do with moviepy, the issue comes from the new Reddit interface.

Yes, indeed. And it does make sense because they changed the html classes and ids, and just changed the code overal.

@cyber523
Copy link

run this
pip install moviepy --upgrade
and then restart your device. It should work

This has nothing to do with moviepy, the issue comes from the new Reddit interface.

Yes, indeed. And it does make sense because they changed the html classes and ids, and just changed the code overal.

still dosent work

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 Dec 23, 2023
Copy link
Contributor

github-actions bot commented Jan 4, 2024

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

@Kamushy
Copy link
Contributor

Kamushy commented Jan 8, 2024

Why has there still not been a fix for this?

@eimuzas
Copy link

eimuzas commented Jan 27, 2024

is there a fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working outdated stale
Projects
None yet
Development

No branches or pull requests

6 participants