Skip to content

Some Requests are getting cancelled when Response Detective is enabled #67

@ran-helfer

Description

@ran-helfer

I am using a POST network call which does get cancelled for some unknown reason.

When i am not enabling responseDetective, i do get a response with code 200.

I am using pure URLSession. Not using any external libraries for the request.

When responseDetective is active the request is getting cancelled and on console log i do see:

 [Info] (NetworkLogger, output(requestRepresentation:), 23): [Network] Request id EFF99D2A-7E69-414D-B6C9-9C1D993D4BAD (POST) api/v0/somePath/other
 API MISUSE: NSURLSession delegate RDTURLProtocol: <RDTURLProtocol: 0x6000019f2c10> (0x6000019f2c10)
 API MISUSE: task:willPerformHTTPRedirection:newRequest:completionHandler: completion handler not called
 [Error] (NetworkLogger, output(errorRepresentation:), 47): [Network] Error id EFF99D2A-7E69-414D-B6C9-9C1D993D4BAD domain: NSURLErrorDomain code: -999 reason: cancelado
[Info] (NetworkLogger, output(requestRepresentation:), 23): [Network] Request id 82292D2C-05B7-4950-AC17-9B88516ABA1F (POST) api/v0/somePath/other/xxxxx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions