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

TimeoutError: Waiting for selector #title failed: Waiting failed: 30000ms exceeded #99

Closed
AnimeshKumar923 opened this issue Oct 20, 2023 · 11 comments
Assignees

Comments

@AnimeshKumar923
Copy link

Issues or necessity of a feature

I was adopting the workflow in developing this feature under AsyncAPI's community repository. While the workflow was running fine 3 weeks, it started showing the following issue. The workflow has workflow_dispatch event trigger being implemented.

Step to reproduce the bug / needs of a new feature

Steps to reproduce the behavior:

  1. Run the workflow through a workflow_dispatch event.

Screenshots

image

Error log

See y'all in Paris!!
Upload date: {"year":"2023","month":"Oct","day":"03"}
Downloading thumbnail for video id ebHCd79w2Ws
Downloading audio for video id ebHCd79w2Ws
Downloaded thumbnail for video id ebHCd79w2Ws
Downloaded audio for video id ebHCd79w2Ws
Posting episode to anchorfm
Launching puppeteer
Setting language to English
Accessing Log in with email
Trying to log in
Logged in
Uploading audio file
Waiting for upload to finish
-- Adding title
Error: Unable to post episode to anchorfm: TimeoutError: Waiting for selector `#title` failed: Waiting failed: 30000ms exceeded
    at postEpisode (/src/anchorfm-pupeteer/index.js:178:11)
    at async main (/src/index.js:36:3)
@TheJoin95
Copy link
Member

Thanks for reporting this, I know this could be an intermittent issue as well as a long issue as it was for #87

Any more infos to debug it would be great as well as any contributions :)
We are now trying to organizing our next conference (https:/Schrodinger-Hat/osday/) and it's very time consuming that we might not be able to fix the issue.

I'm assigning this to @matevskial and @abe-101

@AnimeshKumar923
Copy link
Author

AnimeshKumar923 commented Oct 20, 2023

@TheJoin95

Hey there! 👋
@derberg is one of the maintainers of the repository and I'm developing that workflow under his mentorship.

He suggested the following changes:

maybe https:/Schrodinger-Hat/youtube-to-anchorfm/blob/342a55c7f1d72e18dc2d2f0af36edc13bd615667/src/anchorfm-pupeteer/index.js#L165C4-L166C29 is giving timeout, as probably the videos are to big and it just takes time.

maybe open PR to their action to change

await clickXpath(
  page,
  saveDraftOrPublishOrScheduleButtonDescription.xpath
);

to

await clickXpath(
  page,
  saveDraftOrPublishOrScheduleButtonDescription.xpath,
  {timeout: env.UPLOAD_TIMEOUT}
);

this will enable us to pass a custom much larger timeout through env variable. They already allow it with https:/Schrodinger-Hat/youtube-to-anchorfm/blob/342a55c7f1d72e18dc2d2f0af36edc13bd615667/src/anchorfm-pupeteer/index.js#L123C5-L126C29 so I bet they will agree with your PR suggestion

How does this suggestion sounds? 👀

We are now trying to organizing our next conference (https:/Schrodinger-Hat/osday/) and it's very time consuming that we might not be able to fix the issue.

Oh, didn't knew that, no worries.
Yes, it's difficult to give time on this issue when your hands are already full. Anyways, all the best for the conference 👍 💯

cc: @matevskial @abe-101,
I'm not well-versed in JavaScript as such so I can't contribute much to the code, but do let me know if there's any other things to help with. 👍

@matevskial
Copy link
Contributor

@AnimeshKumar923

Hello and thanks for reporting the issue.

I am also using youtube-to-anchorfm personally at least 3 times a week and I have good news!

I am also able to reproduce the exact problem you have. So it also doesn't work for me :)

And I'll make the effort to fix this issue.

@matevskial
Copy link
Contributor

I investigated a bit, and it seems podcasters for spotify(or anchor.fm) changed the flow for uploading episodes a bit.

I am going to rework the script.

@TheJoin95
Copy link
Member

Thanks @matevskial to handle this!

@matevskial
Copy link
Contributor

I made the PR.

Now the script should work most of the time.

matevskial added a commit that referenced this issue Oct 22, 2023
…_work_on_the_updated_website_ui

Bugfix/#99 fix script to work on the updated website UI
@AnimeshKumar923
Copy link
Author

I made the PR.

Now the script should work most of the time.

Let me check it...

@AnimeshKumar923
Copy link
Author

@matevskial

Just ran the workflow 2 times. Both were published successfully. 👍 🚀

@AnimeshKumar923
Copy link
Author

AnimeshKumar923 commented Oct 23, 2023

@matevskial

Another warning I saw while the workflow was building was of Script deprecation warning. Thought about sharing it.

deprecation-warning

@matevskial
Copy link
Contributor

Thanks for the information. I am closing this issue.

@AnimeshKumar923
Copy link
Author

AnimeshKumar923 commented Oct 23, 2023

Thank you very much for solving the issue. 🚀 @matevskial

VasilisTako pushed a commit to VasilisTako/youtube-to-anchorfm that referenced this issue Mar 12, 2024
thetorahpodcast pushed a commit to thetorahpodcast/youtube-to-anchorfm that referenced this issue May 21, 2024
thetorahpodcast pushed a commit to thetorahpodcast/youtube-to-anchorfm that referenced this issue May 21, 2024
…99_fix_script_to_work_on_the_updated_website_ui

Bugfix/Schroedinger-Hat#99 fix script to work on the updated website UI
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

4 participants