Giter Site home page Giter Site logo

Comments (7)

mark-thompson avatar mark-thompson commented on August 29, 2024

Was this the first time it got to the slot select page, or did this happen mid-run after refreshing?
If the former, there's an open issue (#19) for multiple delivery type slot pages that look like this:
Screen Shot 2020-04-14 at 6 08 57 PM

from whole-foods-deliverance.

banittles avatar banittles commented on August 29, 2024

happened mid run while refreshing for slots

my area doesnt get 3 days, just "today" and "tomorrow"

from whole-foods-deliverance.

mark-thompson avatar mark-thompson commented on August 29, 2024

@banittles Ah gotcha. Did you happen to see if the page looked any different than normal when you noticed the error?
That error means you were either redirected to another page, or it took longer than ~5s to load the slot page.
Try running with the --debug flag next time. If you encounter that error again, the page source will be saved and you can upload here

from whole-foods-deliverance.

banittles avatar banittles commented on August 29, 2024

caught it last night, looks like amazon defaults to a different page sometimes after a refresh. "check out these other items..." type of deal.

just got this error when it found a slot though...

INFO: Found 1 slots:
Today::By 4:00 PM
[2020-04-15 11:00:50] {alert} INFO: Alerting user with message: 'Delivery slots found'
[2020-04-15 11:00:50] {wrapper} ERROR: send_sms() requires a config file at 'conf.toml' with key 'twilio'
[2020-04-15 11:00:50] {wrapper} ERROR: send_telegram() requires a config file at 'conf.toml' with key 'telegram'
[2020-04-15 11:00:50] {main_loop} INFO: Attempting to select slot and checkout
[2020-04-15 11:00:50] {main_loop} INFO: Selecting slot: Today::By 4:00 PM
[2020-04-15 11:00:51] {navigate} INFO: Navigating <Route beginning at 'https://www.amazon.com/gp/buy/shipoptionselect/handlers/display.html' with 3 stops>
[2020-04-15 11:00:51] {navigate_waypoint} INFO: Navigating <Waypoint ('xpath', "//*[contains(@Class, 'ufss-overview-continue-button')]") -> 'gp/buy/payselect/handlers/display.html'>
[2020-04-15 11:01:02] {navigate} WARNING: Current URL 'https://www.amazon.com/gp/buy/shipoptionselect/handlers/display.html' does not match target
Handling possible redirect (timeout in 20s)
[2020-04-15 11:01:22] {navigate} ERROR: Timed out waiting for redirect to a valid dest
Current URL: 'https://www.amazon.com/gp/buy/shipoptionselect/handlers/display.html?hasWorkingJavascript=1'
Traceback (most recent call last):
File "/Users/BD/whole-foods-deliverance/nav.py", line 96, in navigate
WebDriverWait(driver, timeout).until(
File "/Users/BD/whole-foods-deliverance/env/lib/python3.8/site-packages/selenium/webdriver/support/wait.py", line 80, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "run.py", line 185, in
main_loop(driver, args)
File "run.py", line 155, in main_loop
build_route(site_config, 'CHECKOUT').navigate(driver)
File "/Users/BD/whole-foods-deliverance/nav.py", line 104, in navigate
raise e
File "/Users/BD/whole-foods-deliverance/nav.py", line 78, in navigate
self.navigate_waypoint(driver, waypoint, timeout)
File "/Users/BD/whole-foods-deliverance/nav.py", line 59, in navigate_waypoint
raise NavigationException(
nav.NavigationException: Message: Navigation to 'gp/buy/payselect/handlers/display.html' failed

from whole-foods-deliverance.

banittles avatar banittles commented on August 29, 2024

i was running with auto checkout, trying it again without auto checkout

from whole-foods-deliverance.

mark-thompson avatar mark-thompson commented on August 29, 2024

@banittles Try running now with the newest version - this kind of redirect should be handled

from whole-foods-deliverance.

mark-thompson avatar mark-thompson commented on August 29, 2024

@banittles closing this as it appears to be resolved

from whole-foods-deliverance.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.