-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Error: Unable to post episode to anchorfm: TimeoutError: Waiting for selector input[type=file]
failed: Waiting failed: 30000ms
#87
Comments
Are running this on your local computer? |
This issue appears mostly locally(I run it on a Linux distribution - KDE Neon) and this issue is not consistent, sometiems it appears, sometimes it doesn't. But when running as a GitHub action, the issue is not happening. |
@matevskial I actually faced the same issue a week ago running the Github action several times |
@matevskial I also got very similar issue running it on Github Actions (2 times out of 21 runs). The only difference I see is that I got the error on title instead of Here's my full error: |
Where are y'all located? My hunch is that this happens because of the EU cookies popup, but I'm not sure. When I run outside of headless mode and manually click the "Accept Cookies" button, Puppeteer happily proceeds to upload the episode. I tried to spoof my geolocation to be in the US as follows: src/anchorfm-pupeteer/index.js:82
async function postEpisode(youtubeVideoInfo) {
let browser;
try {
console.log('Launching puppeteer');
browser = await puppeteer.launch({ args: ['--no-sandbox'], headless: false });
const page = await browser.newPage();
const context = browser.defaultBrowserContext();
await page.setGeolocation({latitude: 47.75, longitude: -120.74});
const navigationPromise = page.waitForNavigation();
await context.overridePermissions('https://anchor.fm/dashboard/episode/new', ['geolocation']);
await page.goto('https://anchor.fm/dashboard/episode/new');
await page.setViewport({ width: 1600, height: 789 });
await navigationPromise;
console.log('Trying to log in');
(...) But this didn't work. If anyone understands Puppeteer better maybe they can chime in how to spoof the location to avoid the cookie popup. Or how to click the accept button if it appears. |
I am in the us and also have this issue randomly. I support your hunch that it may be related to the cookie pop up We could have pupeteer to first except the cookies then proceed to login. |
…ish date referred to issue Schrodinger-Hat#84. Changed text based element xpath to selectors because with different languages on browser it gets stuck. TODO: Change where possible full selector with wildcards
I have the same issue when running with GitHub Action ... https://github.com/jordanscience/youtube-to-anchorfm/actions/runs/5073577077/jobs/9112763736 |
I have had the same issues and I am in the EU. |
It happens to me today which brought me here. Tried to re-run the failed job but keep getting similar error:
|
I am having the same issue, anyone found a fix or a workaround? |
This is the end for youtube-to-anchorfm. Every week we have a new YouTube video but the Action keep failing. Now we have to upload manually |
We are aware of the issue. The issue is most likely due to the cookie popup. We are going to try to tackle the problem. |
Can we close this issue @matevskial ? |
Is this issue still around? |
Hello, do you have an idea of this bug?
Running on MAC
Logged in
Uploading audio file
Error: Unable to post episode to anchorfm: TimeoutError: Waiting for selector
input[type=file]
failed: Waiting failed: 30000ms exceededat postEpisode (/Users/jordan/perso/youtube-to-anchorfm/src/anchorfm-pupeteer/index.js:174:11)
at async main (/Users/jordan/perso/youtube-to-anchorfm/src/index.js:36:3)
Thanks
The text was updated successfully, but these errors were encountered: