Skip to content

CancellationError swallowed in networking catch blocks #4

@shrudge

Description

@shrudge
Image

the generic catch block at the end of the get() method captures all errors and transforms them into a SerpApiError.requestFailed.

but, a CancellationError is the essential signal for a task to stop execution immediately. By catching and wrapping this specific error, it prevents the system from properly unwinding the task. This results in zombie tasks that continue to process data and mutate state even after the parent task has aborted the request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions