Closed trinvh closed 4 years ago
@trinvh I've run different scenarios including yours and I can't reproduce the issue. Have you tried testing it without/outside docker? If you test your API using postman for example, does it return the statuscode?
@proudmonkey I haven't tested yet without docker because I think it will work well with IIS. Didn't try with dotnet run
command too, I will give a look when I have a chance.
Yes, I tested it with Postman, also curl -v
command, the statusCode was just empty string on Postman
Hi @trinvh - I've retested this again using IIS Express and Kestrel and still I'am not able to replicate the issue. I'm seeing the StatusCodes in both Logs and Response Headers.
Closing this issue now as I can't replicate it. Feel free to reopen if the issue still persist on your side and provide details. Thanks!
The issue is the title. The response header is missing a valid HTTP status code. Only occurred with ApiResponse
The example code:
The logs from docker-compose:
In the above output you can see the statusCode responded is [0]
Tested on both v1.0 - 2.1.0 with the same results.
Here is my csproj file in case it's needed: