Skip to content

resultHandler called twice #3517

@mlight3

Description

@mlight3

Summary

I wrapped fetch method with withCheckedThrowingContinuation, but I got a fatal error.

Thread 1: Fatal error: SWIFT TASK CONTINUATION MISUSE: fetch(_:ignoreError:cachePolicy:) tried to resume its continuation more than once, throwing cannotParseResponse!

Fortunately, cannotParseResponse error is used in only one place so I can easily tracked it.

resultHandler was called from below two method.

Image Image

Version

1.15.1

Steps to reproduce the behavior

I couldn't share the response data because it is private project in company. Sorry about it.

Logs

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions