Schroedinger-Hat / youtube-to-anchorfm

An automation process to convert YouTube video into audio file and uploading it to Anchor.fm podcast
MIT License
128 stars 71 forks source link

can't find selector email. Failure when logging into anchor #86

Closed Fantasy-Fellowship closed 11 months ago

Fantasy-Fellowship commented 1 year ago

Recieving error when trying to upload an episode. First time using it so not sure why it is happening. Saw there was a similar bug report already submitted but looked like this had been solved?

image

abe-101 commented 1 year ago

I have also been experience issues by the login step

I wonder if it has to do with the prompt to accept the cookies 🤷‍♂️

dorcu commented 1 year ago

Ever since I activated GitHub's two-factor authentication, I've been getting the same error. It used to work fine before.

TheJoin95 commented 1 year ago

@abe-101 @matevskial Any solutions regarding the 2FA?

abe-101 commented 1 year ago

Its hard for me to imagine the issue is related to 2FA

matevskial commented 1 year ago

I don't think this is linked to 2FA.

Recently, they added a screen that shows a couple of different ways to login to anchor.fm Screenshot_20230805_204002

I am going to tackle this one.

dorcu commented 1 year ago

What do I have to do to make it work? I have modified the file and added the:

console.log('Accessing Log in with email');
await clickXpath(page, '//button[contains(text(), "Log in with email")]');

But it keeps giving me the same error.

matevskial commented 1 year ago

Hopefully, you don't have to do anything after the fix gets merged.

Can you please try to run locally by disabling pupeteer headless mode?(Add PUPETEER_HEADLESS=false in your .envfile)

dorcu commented 1 year ago

I have only .env.sample

matevskial commented 1 year ago

To test locally, please do these steps.

  1. Make sure you have cloned latest main branch of this repository

  2. Create .env file if you don't have it already, the content of that file should be

    ANCHOR_EMAIL=<youremail>
    ANCHOR_PASSWORD=<yourpassword>
    PUPETEER_HEADLESS=false
  3. Do npm install if you haven't done already

  4. Do npm start

dorcu commented 1 year ago

I have not been able to run it locally.

What I have done is delete the fork, recreate it, configure the secret variables and when the episode is uploading it gives me an error.

An important fact is that the log tells me:

Posting episode to anchorfm
launching puppeteer
Trying to log in
Error: Unable to post episode to anchorfm: Error: No element found for selector: #email

And in between, the message should come out:

Accessing Log in with email

But it does not appear.

jordanscience commented 1 year ago

I have the same issue ( 2FA enabled) .. Trying to log in Error: Unable to post episode to anchorfm: Error: No element found for selector: #email at postEpisode (/src/anchorfm-pupeteer/index.js:157:15) at processTicksAndRejections (internal/process/task_queues.js:95:5)

TheJoin95 commented 11 months ago

Please update to the last version of the Action or update your forks. Any contributions to this project will help us a lot since we are not a big team, thanks