Claude
e7da440a8f
Refactor retry logic to use tenacity library
...
- Add tenacity==9.* to project dependencies
- Import AsyncRetrying, retry_if_exception, stop_after_attempt, wait_fixed
- Create _is_page_crash helper function to identify page crash errors
- Extract navigation logic into _navigate_and_solve inner function
- Replace manual retry loop with tenacity's AsyncRetrying:
* Retry only on page crash errors
* Stop after 2 attempts
* Wait 0.5 seconds between retries
- Use page_container list to allow page updates during retries
- Maintain page recreation logic when crashes occur
- Keep all error handling for PlaywrightError and TimeoutError
This provides more robust and maintainable retry handling using
an established library instead of custom retry logic.
2025-11-14 16:18:22 +00:00
Claude
a6d21b5b43
Fix Playwright page crash error with retry mechanism
...
- Add import for PlaywrightError from playwright.async_api
- Implement retry logic (max 2 attempts) for page crashes
- When page crashes, close the crashed page and create a new one from context
- Use current_page variable to track the active page instance
- Initialize page_request and status to prevent undefined variable errors
- Add proper error logging for page crash scenarios
This fix resolves the "Page.goto: Page crashed" error by gracefully
handling page crashes and retrying the operation with a fresh page.
2025-11-14 16:14:44 +00:00
Thirawyn91
58a5567b6d
Change default PORT from 8196 to 8191 ( #267 )
2025-11-08 23:05:22 +01:00
renovate[bot]
b818446cff
fix(deps): update dependency fastapi to ==0.121.* ( #270 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-03 19:43:52 +00:00
renovate[bot]
68a5225be1
fix(deps): update dependency fastapi to ==0.120.* ( #265 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-24 05:11:43 +00:00
renovate[bot]
49b4e2ae7d
chore(deps): update actions/checkout action to v5 ( #260 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-17 22:15:25 +02:00
ThePhaseless
5a3e48f47c
remake dockerfile
2025-10-16 09:36:09 +00:00
ThePhaseless
36b329a75b
use non-root user
2025-10-15 13:07:09 +00:00
ThePhaseless
c80909a22f
remove pytest progress
2025-10-15 12:50:47 +00:00
oldwombat and Adam Roddick
07cfa9370f
fix readme table ( #256 )
...
Co-authored-by: Adam Roddick <13641602+adamcybersec@users.noreply.github.com >
2025-10-15 09:29:13 +02:00
ThePhaseless
3899de3612
bump deps and stay on python 3.13
2025-10-15 07:02:00 +00:00
Jakub Orchowski
352fa599e9
Add Claude Code GitHub Workflow ( #259 )
...
* "Claude PR Assistant workflow"
* "Claude Code Review workflow"
2025-10-15 08:20:21 +02:00
renovate[bot]
ebbd4b94b2
chore(deps): update dependency ruff to ==0.14.* ( #252 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-08 05:02:58 +00:00
ThePhaseless
c6b50596e2
install uv globally
2025-10-01 13:06:33 +00:00
ThePhaseless
94af6adf6a
add host and port as env
2025-10-01 12:09:53 +00:00
renovate[bot]
83ec6bd36a
fix(deps): update dependency fastapi to ==0.118.* ( #250 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-29 11:31:50 +00:00
renovate[bot]
c3a4c361c2
fix(deps): update dependency fastapi to ==0.117.* ( #244 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-21 00:33:36 +00:00
renovate[bot]
606c887faa
chore(deps): update dependency pytest-asyncio to ==1.2.* ( #242 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-12 21:26:22 +00:00
ThePhaseless
9334169265
[skip ci] use init for containers for zombie processes
2025-09-12 20:08:34 +00:00
ThePhaseless
b652f3caa1
use timer to timeout functions
2025-09-11 20:26:11 +00:00
ThePhaseless
8d77e63507
add icon
2025-09-11 17:10:28 +00:00
ThePhaseless
8ceb7fa7d3
change healthcheck msg
2025-09-11 16:55:05 +00:00
ThePhaseless
7ac9c39766
return 200 if intersite challenge
2025-09-11 16:54:50 +00:00
ThePhaseless
21a0aef6fe
use maxsize instead of power
2025-09-11 16:54:19 +00:00
ThePhaseless
605ee23148
dont build on pull request
2025-09-11 18:25:04 +02:00
renovate[bot]
648b3be24f
chore(deps): update dependency ruff to ==0.13.* ( #239 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-11 01:53:53 +00:00
ThePhaseless
b356bc6081
fix exception
2025-09-10 20:47:59 +00:00
ThePhaseless
2b8a9acb65
add logger for lib if debug
2025-09-10 22:46:03 +02:00
ThePhaseless
e0dd492f4e
log loglevel
2025-09-10 22:45:55 +02:00
ThePhaseless
d59d322e9e
add faster turnstile check
2025-09-10 22:45:40 +02:00
Jakub Orchowski
7e2d97e1c3
Migrate to camoufox ( #235 )
...
* use camoufox
* build custom branches
* organize compose
* ignore missing stubs
* add init method
* create ADDON PATH
* check if solving is required
* type checking and remove logger
* uv sync
* add timeout
* add descriptiuon
* cancel previous runs
* wildcard minor
* fix proxy
* syntax fix
* [skip ci] fix loop warning
* fix proxy format
* copy over docker ignore
* remove testing line
* comment out port expose
* remove idope
* use strict typechecking
* refactor
* adjust compose
* run init only before test
* try test without init
* add curl
* handle page response
* remove turnsile test
* fix dockerignore symlink
* use newer debian
* bump pytest
* add docker in docker in devcontaienr
* remove unused values
* handle timeouts
* fix edgecase
* use new envs for proxy
* remove init command
* remove testing line
* remove setuptools
* fix linters
* reimport
* readd setuptools
* better float handling
2025-09-05 23:08:35 +02:00
renovate[bot]
e745e118b9
fix(deps): update dependency seleniumbase to v4.41.3 ( #234 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-31 13:33:01 +00:00
renovate[bot]
a482b949b9
fix(deps): update dependency seleniumbase to v4.41.2 ( #233 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-27 17:33:26 +00:00
renovate[bot]
c4ee6dd417
chore(deps): update dependency seleniumbase to v4.41.1 ( #226 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-19 22:45:50 +00:00
ThePhaseless
b7264fed2a
use trixie as base
2025-08-17 03:19:10 +02:00
Jakub Orchowski
d0cc36c357
Merge pull request #225 from ThePhaseless/renovate/actions-checkout-5.x
...
chore(deps): update actions/checkout action to v5
2025-08-17 02:39:46 +02:00
ThePhaseless
80315fc611
fix exception
2025-08-17 00:38:37 +00:00
Jakub Orchowski
e875a9b0de
Merge pull request #228 from ThePhaseless/fix-cloudflare-errors
...
Fix Cloudfare errors
2025-08-17 01:20:13 +02:00
ThePhaseless
22da0ba815
cancel previous runs
2025-08-16 22:50:10 +00:00
ThePhaseless
bb4511f3a5
ignore regex syntax warning
2025-08-16 22:49:24 +00:00
ThePhaseless
5e74536d59
Merge branch 'main' into fix-cloudflare-errors
2025-08-16 22:43:12 +00:00
ThePhaseless
71e6b17ea4
bump deps
2025-08-16 22:41:26 +00:00
ThePhaseless
22c6bacafa
update example compose file
2025-08-16 22:41:22 +00:00
renovate[bot]
d00828b737
fix(deps): update dependency seleniumbase to v4.41.0 ( #3 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-16 17:32:57 +00:00
renovate[bot]
a2c55947c6
chore(deps): update dependency ruff to v0.12.9 ( #2 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-16 16:12:55 +00:00
Alvaro Santos Andres
62553b60cd
fix: set default CAPTCHA_RETRIES to 3
2025-08-12 07:16:33 +02:00
renovate[bot]
5f5d8c7413
chore(deps): update actions/checkout action to v5
2025-08-11 13:34:58 +00:00
Alvaro Santos Andres
155a9076f1
fix: simplify code to fix PR suggestions
2025-08-11 06:57:42 +00:00
Alvaro Santos Andres
bb88c8e111
chore: fix renovate in a fork
2025-08-09 16:13:31 +00:00
renovate[bot]
73646d2d03
chore(deps): update dependency ruff to v0.12.8 ( #224 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-07 23:24:17 +00:00