-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Is this what it looks like when the WAF blocks you?
docker build -t localsafeway:latest https://github.com/smkent/safeway-coupons.git#main
...
docker run localsafeway
docker exec -it beautiful_haslett /bin/bash
safeway-coupons --dry-run --no-email --debug
Clipping coupons for Safeway account *****
Connect to safeway.com
Decline cookie prompt
Return to safeway.com after declining cookie prompt
Open Sign In sidebar
Would send email to *****
>>>>>>
Safeway account: *****
Error: Authentication Failure ([TimeoutException] Message:
Stacktrace:
#0 0x55895b7a6bba <unknown>
#1 0x55895b244790 <unknown>
#2 0x55895b295c80 <unknown>
#3 0x55895b295e01 <unknown>
#4 0x55895b2e4944 <unknown>
#5 0x55895b2bba7d <unknown>
#6 0x55895b2e1ccc <unknown>
#7 0x55895b2bb823 <unknown>
#8 0x55895b287a88 <unknown>
#9 0x55895b288bf1 <unknown>
#10 0x55895b77015b <unknown>
#11 0x55895b7740e2 <unknown>
#12 0x55895b75d01c <unknown>
#13 0x55895b774cd4 <unknown>
#14 0x55895b74148f <unknown>
#15 0x55895b7954f8 <unknown>
#16 0x55895b7956c9 <unknown>
#17 0x55895b7a5a36 <unknown>
#18 0x7ff1fe43a1c4 <unknown>
)
<<<<<<
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/safeway_coupons/session.py", line 71, in _chrome_driver
yield driver
File "/usr/local/lib/python3.13/site-packages/safeway_coupons/session.py", line 118, in _login
wait.until(
~~~~~~~~~~^
ec.visibility_of_element_located(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(By.XPATH, "//span [contains(text(), 'Sign In')]")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
).click()
^
File "/usr/local/lib/python3.13/site-packages/selenium/webdriver/support/wait.py", line 146, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:
Stacktrace:
#0 0x55895b7a6bba <unknown>
#1 0x55895b244790 <unknown>
#2 0x55895b295c80 <unknown>
#3 0x55895b295e01 <unknown>
#4 0x55895b2e4944 <unknown>
#5 0x55895b2bba7d <unknown>
#6 0x55895b2e1ccc <unknown>
#7 0x55895b2bb823 <unknown>
#8 0x55895b287a88 <unknown>
#9 0x55895b288bf1 <unknown>
#10 0x55895b77015b <unknown>
#11 0x55895b7740e2 <unknown>
#12 0x55895b75d01c <unknown>
#13 0x55895b774cd4 <unknown>
#14 0x55895b74148f <unknown>
#15 0x55895b7954f8 <unknown>
#16 0x55895b7956c9 <unknown>
#17 0x55895b7a5a36 <unknown>
#18 0x7ff1fe43a1c4 <unknown>
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/safeway_coupons/session.py", line 59, in __init__
self._login(account)
~~~~~~~~~~~^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/safeway_coupons/session.py", line 96, in _login
with self._chrome_driver() as driver:
~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/contextlib.py", line 162, in __exit__
self.gen.throw(value)
~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.13/site-packages/safeway_coupons/session.py", line 79, in _chrome_driver
raise ExceptionWithAttachments(
f"[{type(e).__name__}] {e}", attachments=attachments
) from e
safeway_coupons.session.ExceptionWithAttachments: [TimeoutException] Message:
Stacktrace:
#0 0x55895b7a6bba <unknown>
#1 0x55895b244790 <unknown>
#2 0x55895b295c80 <unknown>
#3 0x55895b295e01 <unknown>
#4 0x55895b2e4944 <unknown>
#5 0x55895b2bba7d <unknown>
#6 0x55895b2e1ccc <unknown>
#7 0x55895b2bb823 <unknown>
#8 0x55895b287a88 <unknown>
#9 0x55895b288bf1 <unknown>
#10 0x55895b77015b <unknown>
#11 0x55895b7740e2 <unknown>
#12 0x55895b75d01c <unknown>
#13 0x55895b774cd4 <unknown>
#14 0x55895b74148f <unknown>
#15 0x55895b7954f8 <unknown>
#16 0x55895b7956c9 <unknown>
#17 0x55895b7a5a36 <unknown>
#18 0x7ff1fe43a1c4 <unknown>
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/bin/safeway-coupons", line 8, in <module>
sys.exit(main())
~~~~^^
File "/usr/local/lib/python3.13/site-packages/safeway_coupons/app.py", line 125, in main
sc.clip_for_account(account)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/safeway_coupons/safeway.py", line 38, in clip_for_account
swy = SafewayClient(account, self.debug_dir)
File "/usr/local/lib/python3.13/site-packages/safeway_coupons/client.py", line 17, in __init__
self.session = LoginSession(account, debug_dir)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/safeway_coupons/session.py", line 61, in __init__
raise AuthenticationFailure(
e, account, attachments=e.attachments
) from e
safeway_coupons.errors.AuthenticationFailure: Authentication Failure ([TimeoutException] Message:
Stacktrace:
#0 0x55895b7a6bba <unknown>
#1 0x55895b244790 <unknown>
#2 0x55895b295c80 <unknown>
#3 0x55895b295e01 <unknown>
#4 0x55895b2e4944 <unknown>
#5 0x55895b2bba7d <unknown>
#6 0x55895b2e1ccc <unknown>
#7 0x55895b2bb823 <unknown>
#8 0x55895b287a88 <unknown>
#9 0x55895b288bf1 <unknown>
#10 0x55895b77015b <unknown>
#11 0x55895b7740e2 <unknown>
#12 0x55895b75d01c <unknown>
#13 0x55895b774cd4 <unknown>
#14 0x55895b74148f <unknown>
#15 0x55895b7954f8 <unknown>
#16 0x55895b7956c9 <unknown>
#17 0x55895b7a5a36 <unknown>
#18 0x7ff1fe43a1c4 <unknown>
)
Exception ignored in: <function Chrome.__del__ at 0x7ff12f74d3a0>
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/undetected_chromedriver/__init__.py", line 843, in __del__
File "/usr/local/lib/python3.13/site-packages/undetected_chromedriver/__init__.py", line 766, in quit
File "/usr/local/lib/python3.13/subprocess.py", line 2234, in kill
ImportError: sys.meta_path is None, Python is likely shutting down
Metadata
Metadata
Assignees
Labels
No labels