Kestrelhttpserver: Kestrel Server producing unfriendly outputs

Created on 24 Jan 2017  路  3Comments  路  Source: aspnet/KestrelHttpServer

I originally posted this issue in dotnet/cli but was referred here instead.

Steps to reproduce

Make a ASP net core project with ssl, kestrel and individual user accounts

Expected behavior

Prints decimal number for line number

Actual behavior

Printing hexadecimal? line numbers.

info: Microsoft.AspNetCore.Server.Kestrel[17]
      Connection id "0HL24847RN8VG" bad request data: "Invalid request line: <0x16><0x03><0x01><0x00><0xC6><0x01><0x00><0x00><0xC2><0x03><0x03><0xCE>#<0xC6><0x1E>+<0x9A>@<0x81><0xC9><0xEF><0x00>q<0xCC>%:<0x19>5m*<0xBB>[..."
Microsoft.AspNetCore.Server.Kestrel.BadHttpRequestException: Invalid request line: <0x16><0x03><0x01><0x00><0xC6><0x01><0x00><0x00><0xC2><0x03><0x03><0xCE>#<0xC6><0x1E>+<0x9A>@<0x81><0xC9><0xEF><0x00>q<0xCC>%:<0x19>5m*<0xBB>[...

Environment data

dotnet --info output:

.NET Command Line Tools (1.0.0-preview4-004233)

Product Information:
 Version:            1.0.0-preview4-004233
 Commit SHA-1 hash:  8cec61c6f7

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.14393
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\1.0.0-preview4-004233

Most helpful comment

It looks like you're hitting an HTTP endpoint over HTTPS.

All 3 comments

It looks like you're hitting an HTTP endpoint over HTTPS.

Its outputting the input data (bytes) that are part of the request line as hexadecimal; not the line number of the code

By design.

Was this page helpful?
0 / 5 - 0 ratings