Skip to content

fix: call failed_request_handler for SessionError when session rotation count exceeds maximum#1147

Merged
janbuchar merged 1 commit into
apify:masterfrom
Mantisus:fix-failed-request-handler
Apr 23, 2025
Merged

fix: call failed_request_handler for SessionError when session rotation count exceeds maximum#1147
janbuchar merged 1 commit into
apify:masterfrom
Mantisus:fix-failed-request-handler

Conversation

@Mantisus

Copy link
Copy Markdown
Collaborator

Description

  • Call failed_request_handler for SessionError when session rotation count exceeds maximum

@Mantisus Mantisus requested a review from Copilot April 10, 2025 00:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

src/crawlee/crawlers/_basic/_basic_crawler.py:1176

  • Ensure that the _handle_failed_request method fully captures any necessary error logging and tracking, as the previous direct call to the error tracker has been removed.
await self._handle_failed_request(context, session_error)

@Mantisus Mantisus requested review from janbuchar and vdusek April 10, 2025 00:43
@Mantisus Mantisus self-assigned this Apr 10, 2025

@vdusek vdusek left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! thanks

@janbuchar janbuchar merged commit b3637b6 into apify:master Apr 23, 2025
Mantisus added a commit to Mantisus/crawlee-python that referenced this pull request Apr 24, 2025
…tation count exceeds maximum (apify#1147)

- Call `failed_request_handler` for `SessionError` when session rotation
count exceeds maximum
Mantisus added a commit to Mantisus/crawlee-python that referenced this pull request Apr 24, 2025
…tation count exceeds maximum (apify#1147)

- Call `failed_request_handler` for `SessionError` when session rotation
count exceeds maximum
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.

4 participants