-
Hi, I have developed a simple Direct Forwarding solution, using the basic example. endpoints.Map("/{**catch-all}", async httpContext =>
{
var error = await forwarder.SendAsync(httpContext, "https://example.com", httpClient, requestOptions, transformer);
if (error != ForwarderError.None)
{
var errorFeature = httpContext.Features.Get<IForwarderErrorFeature>();
var exception = errorFeature.Exception;
}
}); I am using this to forward the requests to different destinations, depend on some conditions. For most sites it works great, but for one I get the following exception. It would be great if anyone has any suggestions on how to resolve this. {"Received chunk header length could not be parsed: '3C-21-44-4F-43-54-59-50-45-20-48-54-4D-4C-20-50-55-42-4C-49-43-20-22-2D-2F-2F-57-33-43-2F-2F-44-54-44-20-48-54-4D-4C-20-34-2E-30-31-20-54-72-61-6E-73-69-74-69-6F-6E-61-6C-2F-2F-45-4E-22-3E'."} Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Can you capture a wireshark trace? We'd need to see what headers accompany that response. That error implies that there was a |
Beta Was this translation helpful? Give feedback.
Can you capture a wireshark trace? We'd need to see what headers accompany that response. That error implies that there was a
Transfer-Encoding: chunked
header, but that the body wasn't formatted correctly. Those bytes decode as follows, which is not using the chunking format.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">