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

feat: retry failed requests #73

Merged
merged 3 commits into from
Jun 9, 2024
Merged

feat: retry failed requests #73

merged 3 commits into from
Jun 9, 2024

Conversation

ngshiheng
Copy link
Owner

@ngshiheng ngshiheng commented Jun 9, 2024

Example:

INFO[0143] visited                                       status_code=200 url="https://guide.michelin.com/en/restaurants/the-plate-michelin/page/512"
WARN[0143] delay for 5s seconds before next request      attempt=1 url="https://guide.michelin.com/en/salzburg-region/salzburg/restaurant/brunnauer"
WARN[0150] delay for 5s seconds before next request      attempt=2 url="https://guide.michelin.com/en/salzburg-region/salzburg/restaurant/brunnauer"
WARN[0155] delay for 5s seconds before next request      attempt=3 url="https://guide.michelin.com/en/salzburg-region/salzburg/restaurant/brunnauer"
ERRO[0160] error                                         error="Moved Permanently" headers="&map[Accept:[*/*] Cookie:[JSESSIONID=abc] Referer:[https://guide.michelin.com/en/salzburg-region/salzburg/restaurant/brunnauer] User-Agent:[Opera/9.80 (Windows NT 6.1; Win64; x64; U; en) Presto/2.2.15 Version/10.00]]" status_code=301 url="https://guide.michelin.com/en/salzburg-region/salzburg/restaurant/brunnauer"
INFO[0160] visited                                       status_code=200 url="https://guide.michelin.com/en/restaurants/the-plate-michelin/page/513"

@ngshiheng ngshiheng merged commit 1c89d25 into main Jun 9, 2024
9 checks passed
@ngshiheng ngshiheng deleted the retry-failed-requests branch June 9, 2024 14:58
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

Successfully merging this pull request may close these issues.

1 participant