Closed Kiechlus closed 4 years ago
Running on aks with kubernetes
1.13.10
onmcr.microsoft.com/dotnet/core/aspnet:3.1
image behind a nginx ingress controller and an additional nginx. Their error logs are as follows:
Is your ingress decoding the URL? What is the actual URL as it arrives at Kestrel? The exception message indicates that what Kestrel is getting is an unescaped space. We know that if Kestrel recieves a properly escaped %20
space in the URL it should work properly.
You are right, when I directly route from the kubernetes ingress to the service, without our custom nginx, it works.
This works: https://rhs-d15.robotics-rd.stryker.com/api/v1.2/facilities/foobar
Now adding a space: https://rhs-d15.robotics-rd.stryker.com/api/v1.2/facilities/foo%20bar
This fails with HTTP Status Code
505
Bad Http Version:So he somehow misinterprets what is coming after the space as http version!
Running on aks with kubernetes
1.13.10
onmcr.microsoft.com/dotnet/core/aspnet:3.1
image behind a nginx ingress controller and an additional nginx. Their error logs are as follows: