Skip to content

Wrong RPCError: .unknown instead of .cancelled #9

@alex-vasenin-peggy

Description

@alex-vasenin-peggy

Describe the bug

I noticed that sometimes if a task with grpc-swift-2 call is cancelled, it throws RPCError.unknown with the cause Swift.CancellationError().

To reproduce

I don't have a clear way to reproduce it, but it would probably be easy to catch this case in code. If not - let me know.

Expected behaviour

Cancelled tasks should return RPCError.cancelled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    size/MMedium task. (A couple of days of work.)

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions