Skip to content

Unknown causes for canceled responses #2953

@greg-signi

Description

@greg-signi

Using Yarp.ReverseProxy version 2.3.0

We are having the issue on a specific request, that when we ask for a longer chunk of data, we get
Copying the response body was canceled after almost a minute of the response already being delivered.
We are only seeing this on this specific request.

Image

The api response is fairly small 1.6MB nothing major, I managed to test locally much more, so I kinda want to disregard the response size in this equation, but its the only variable that changes..

The api responds in ~5 seconds

My proxy response times out after ~60 seconds always

You can see that we get Received HTTP/"2.0" response 200. inside the Yarp.ReverseProxy.Forwarder.HttpForwarder

After this 60 seconds hang up I can see that the HttpContext.RequestAborted.IsCancellationRequested is true, but that must be just a symptom and not the cause right ?

Can you help me debug this issue ?

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