-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Unable to read big json file from Request.Body #3235
Comments
@kichalla can you take a look? |
@anfomin I suppose you are running on Mono on Linux? was curious if Encoding.Default was doing something here but looks like some content is entirely missing based on your snapshot above...just to isolate the issue, can you try saving the read content to a file and see if the contents are any different? also does this issue repro consistently for you? |
@kichalla I tried this sample both on Windows and Mac, result is the same. Also I tried to save The problem is |
@anfomin you are right, I was able to repro it on a Windows machine now..investigating... left -> actual file content |
Yeah, this seems like a Kestrel issue as I cannot repro it with weblistener |
This issue was moved to aspnet/KestrelHttpServer#234 |
Certainly could be - that part of the code was updated heavily recently |
I'm trying to read big JSON file (UTF8) from
Request.Body
stream:At the beginning it's ok, but
content
variable contains invalid character sequence after some offset.Sample repo: https://github.com/anfomin/DNX-MVC-bigfile. There is file
sample.json
. Just rundnx kestrel
and make:with body =
sample.json
file.You will find mismatches since line 84.
Source:
Result:
I've tried latest DNX 1.0.0-beta8-15736 from https://www.myget.org/F/aspnetvnext/api/v2 and 1.0.0-rc1-15775 from https://www.myget.org/F/aspnetcidev/api/v2.
The text was updated successfully, but these errors were encountered: