Hari-Nagarajan / fairgame

Tool to help us buy hard to find items.
GNU General Public License v3.0
2.44k stars 805 forks source link

"Timed out taking screenshot, trying to continue anyway" #820

Closed humantyphoon closed 3 years ago

humantyphoon commented 3 years ago

Describe the bug Fairgame adds item to cart that falls within reserve price, times out waiting for screenshot, tries to continue anyway followed by You have no items in your cart

To Reproduce Steps to reproduce the behavior:

  1. amazon_config.py configured for ASIN B09622N253 (single list)
  2. run python app.py amazon --one-shot in terminal/shell

Expected behavior Screenshot taken followed by clicking "proceed to checkout"

Screenshots 2021-08-26 08:01:38,374|0.6.9|DEBUG|Calling check_stock(<stores.amazon.Amazon object at 0x7fae519841f0>, 'B09622N253', 1299.0, 1410.0) 2021-08-26 08:01:38,721|0.6.9|DEBUG|Initial page title 2021-08-26 08:01:38,725|0.6.9|DEBUG| page url: https://smile.amazon.com/dp/B09622N253 2021-08-26 08:01:39,315|0.6.9|DEBUG|Attempting to click the open offers link... 2021-08-26 08:01:39,370|0.6.9|DEBUG|Waiting for flyout... 2021-08-26 08:01:49,792|0.6.9|ERROR|Timed out waiting for the flyout to open and populate. Is the connection slow? Do you see the flyout populate? 2021-08-26 08:01:49,851|0.6.9|DEBUG|Found a loading flyout div. Waiting for offers to load... 2021-08-26 08:01:54,226|0.6.9|INFO|Found 10 offers for B09622N253. Evaluating offers... 2021-08-26 08:01:54,247|0.6.9|DEBUG|Found parseable price with currency symbol: FR 2021-08-26 08:01:54,251|0.6.9|DEBUG|Assuming free shipping based on this message: 'FREE delivery:' 2021-08-26 08:01:54,254|0.6.9|DEBUG|Assuming free shipping based on this message: 'FREE delivery:' 2021-08-26 08:01:54,257|0.6.9|DEBUG|Assuming free shipping based on this message: 'FREE Delivery' 2021-08-26 08:01:54,260|0.6.9|DEBUG|Assuming free shipping based on this message: 'FREE delivery:' 2021-08-26 08:01:54,263|0.6.9|DEBUG|Assuming free shipping based on this message: 'FREE delivery:' 2021-08-26 08:01:54,266|0.6.9|DEBUG|Assuming free shipping based on this message: 'FREE delivery:' 2021-08-26 08:01:54,269|0.6.9|DEBUG|Assuming free shipping based on this message: 'FREE delivery:' 2021-08-26 08:01:54,272|0.6.9|DEBUG|Assuming free shipping based on this message: 'FREE delivery:' 2021-08-26 08:01:54,276|0.6.9|DEBUG|Found parseable price with currency symbol: $ 2021-08-26 08:01:54,284|0.6.9|INFO|Item B09622N253 in stock and in reserve range: 1399.99 + 0 shipping <= 1410.0 2021-08-26 08:01:54,284|0.6.9|INFO|Adding to cart 2021-08-26 08:01:54,292|0.6.9|INFO|Attempting Add To Cart with offer ID... 2021-08-26 08:01:55,616|0.6.9|INFO|Clicking button 2021-08-26 08:01:55,727|0.6.9|INFO|Button clicked 2021-08-26 08:01:57,547|0.6.9|DEBUG|'check_stock' returned True 2021-08-26 08:01:57,547|0.6.9|DEBUG|'run_asins' returned 'B09622N253' 2021-08-26 08:01:57,548|0.6.9|DEBUG|Calling navigate_pages(<stores.amazon.Amazon object at 0x7fae519841f0>, False) 2021-08-26 08:01:57,584|0.6.9|DEBUG|Navigating page title: 'Amazon.com Shopping Cart' 2021-08-26 08:01:57,584|0.6.9|DEBUG|Calling handle_cart(<stores.amazon.Amazon object at 0x7fae519841f0>) 2021-08-26 08:01:57,584|0.6.9|INFO|Looking for Proceed To Checkout button... 2021-08-26 08:02:57,623|0.6.9|INFO|Timed out taking screenshot, trying to continue anyway 2021-08-26 08:02:57,670|0.6.9|ERROR|You have no items in cart. Going back to stock check. 2021-08-26 08:02:57,670|0.6.9|DEBUG|'handle_cart' returned None 2021-08-26 08:02:57,670|0.6.9|DEBUG|'navigate_pages' returned None 2021-08-26 08:02:57,670|0.6.9|DEBUG|Calling run_asins(<stores.amazon.Amazon object at 0x7fae519841f0>, 3.0)

Desktop (please complete the following information):

DakkJaniels commented 3 years ago

Did you actually have an item in your cart? If you did not, it's not going to proceed to checkout. No idea why some people aren't getting screenshots, probably an OS issue that isn't going to be solved (maybe it's a selenium issue?)

humantyphoon commented 3 years ago

@DakkJaniels I believe it was in the cart based on the logs, but it's hard to tell. I'll run it on my Windows machine and see if it makes a difference with the screenshot.

The screenshots folder is populated so it's at least able to capture them at initialization.

DakkJaniels commented 3 years ago

Based on the logs, you had nothing in your cart. It just didn't take a screenshot.

humantyphoon commented 3 years ago

I see, I misinterpreted the log :/