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

Waiting failed: timeout 30000ms exceeds. #8

Open
cbjjensen opened this issue May 3, 2018 · 12 comments
Open

Waiting failed: timeout 30000ms exceeds. #8

cbjjensen opened this issue May 3, 2018 · 12 comments

Comments

@cbjjensen
Copy link

cbjjensen commented May 3, 2018

Hi there. Thanks for the project :) .I'm trying to get it up and running, but it seems to hang after going into a giveaway within chromium. Here is the full output:

Enter your Amazon email address:  [removed]
Enter your Amazon password:

Processing GiveAway:  Padded Shirt Youth Boys Padded Compression Sports Protective T-Shirt Rib Chest Extreme Exercise, Black, YS
Traceback (most recent call last):
  File "give_it_away_now.py", line 9, in <module>
    asyncio.get_event_loop().run_until_complete(main())
  File "C:\Users\Chad\AppData\Local\Programs\Python\Python36\lib\asyncio\base_events.py", line 468, in run_until_complete
    return future.result()
  File "give_it_away_now.py", line 7, in main
    await ga_bot.process_giveaways(ga_page)
  File "O:\GitProjects\Auto-Amazon-Giveaways-master\lib\giveaway.py", line 165, in process_giveaways
    await self.no_req_giveaways()
  File "O:\GitProjects\Auto-Amazon-Giveaways-master\lib\giveaway.py", line 116, in no_req_giveaways
    ga_entry = await self.check_for_entered(prize_page)
  File "O:\GitProjects\Auto-Amazon-Giveaways-master\lib\giveaway.py", line 80, in check_for_entered
    await prize_page.waitForSelector('.qa-giveaway-result-text')
  File "C:\Users\Chad\AppData\Local\Programs\Python\Python36\lib\site-packages\pyppeteer\frame_manager.py", line 678, in __await__
    yield from self.promise
pyppeteer.errors.TimeoutError: Waiting failed: timeout 30000ms exceeds.

Here is output to show that requirements have been installed:


O:\GitProjects\Auto-Amazon-Giveaways-master>pip install -r requirements.txt
Requirement already satisfied: asyncio in c:\users\chad\appdata\local\programs\python\python36\lib\site-packages (from -r requirements.txt (line 1))
Requirement already satisfied: colorama in c:\users\chad\appdata\local\programs\python\python36\lib\site-packages (from -r requirements.txt (line 2))
Requirement already satisfied: pyppeteer in c:\users\chad\appdata\local\programs\python\python36\lib\site-packages (from -r requirements.txt (line 3))
Requirement already satisfied: pyee in c:\users\chad\appdata\local\programs\python\python36\lib\site-packages (from pyppeteer->-r requirements.txt (line 3))
Requirement already satisfied: websockets in c:\users\chad\appdata\local\programs\python\python36\lib\site-packages (from pyppeteer->-r requirements.txt (line 3))
You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

Perhaps I am missing something obvious.

@Shiratzu
Copy link

Shiratzu commented May 6, 2018

i too have the same problem

Processing GiveAway:  Dyson V7 Animal Cordless Stick Vacuum Cleaner
Traceback (most recent call last):
  File "give_it_away_now.py", line 9, in <module>
    asyncio.get_event_loop().run_until_complete(main())
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py", line 468, in run_until_complete
    return future.result()
  File "give_it_away_now.py", line 7, in main
    await ga_bot.process_giveaways(ga_page)
  File "/Users/ikyuhmkjiuyiuy/Downloads/Auto-Amazon-Giveaways-master/lib/giveaway.py", line 165, in process_giveaways
    await self.no_req_giveaways()
  File "/Users/ikyuhmkjiuyiuy/Downloads/Auto-Amazon-Giveaways-master/lib/giveaway.py", line 118, in no_req_giveaways
    await prize_page.waitForSelector('#box_click_target')
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pyppeteer/frame_manager.py", line 678, in __await__
    yield from self.promise
pyppeteer.errors.TimeoutError: Waiting failed: timeout 30000ms exceeds.

@SoleInvictus
Copy link

SoleInvictus commented May 7, 2018

I had the same issue - more than likely, you either have Amazon's two-step verification activated, or you don't and Amazon is sending you a verification to confirm a new platform anyhow. If either is the case, you'll see the appropriate request pop up in Chromium. Just pause the script, complete the required login, and start it up again.

@Shiratzu
Copy link

Shiratzu commented May 8, 2018

Im not getting any option to log in again. Chromium just stops moving and the script pops up that error

@Shiratzu
Copy link

Shiratzu commented May 8, 2018

I managed to record my screen so I could show what I mean better @_@ https://www.youtube.com/watch?v=vpFIuohdNPM&feature=youtu.be

@zdrouse
Copy link
Owner

zdrouse commented May 9, 2018

@Shiratzu @SoleInvictus

I've updated the project since I just noticed these issues, can you guys pull the latest commits and try again?

FYI - Page iteration is not working yet.

@cbjjensen
Copy link
Author

Hi there. I will try and report back with results.

@cbjjensen
Copy link
Author

Yes, this does appear to have resolve the issue for me! Thanks for the fix 👍

@chriswayneh
Copy link

@SoleInvictus I'm trying to run the script on a VM, which is working fine, however Amazon is now asking to verify login via typing in whatever is in the image. My question is, how do I pause the script so I can enter in the info into Chromium and then un-pause the script to continue?

@sniffingpickles
Copy link

@chriswayneh Best way to do it is to build a small function in the login part that awaits for an element, then asks you input on input prompt. Do you have an example of when it captcha's you? Also, are you up to date on chromium?

@pooponperl
Copy link

pooponperl commented Jul 11, 2018 via email

@chriswayneh
Copy link

2FA wasn't enabled.

To resolve, I opened Chromium, deleted all cookies and manually logged back into Amazon. There was no captcha this time around and everything ran fine after that.

@Shiratzu
Copy link

@zdrouse yep! other than the page iteration, it's working well, thanks a ton!

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

7 participants