-
Notifications
You must be signed in to change notification settings - Fork 524
Unable to read big json file from Request.Body #234
Comments
From @kichalla on September 30, 2015 19:51 @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? |
From @anfomin on September 30, 2015 20:38 @kichalla I tried this sample both on Windows and Mac, result is the same. Also I tried to save The problem is |
From @kichalla on September 30, 2015 21:13 Yeah, this seems like a Kestrel issue as I cannot repro it with weblistener |
I'll take a look also |
@loudej Probably you are the best person to take a look at it...I tried to figure it out but I got lost 😄 ..following are some details:
|
I have the same issue with 1.0.0-beta8-15736. With beta8-15613 it worked fine. Reproduce: |
- This fix prevents large request streams from being corrupted #234
- This fix prevents large request streams from being corrupted #234
- This fix prevents large request streams from being corrupted #234
- This fix prevents large request streams from being corrupted #234
hi @halter73, thanks for working on this issue. Would you be able to confirm which is the package version that contains the fix? The last version I was able to use was 1.0.0-beta8-15674. If I try to use 1.0.0-beta8-15697 or 1.0.0-beta8-15702 it doesn't seems to work anymore. |
@edurdias This should be fixed in the final beat8 package and all the rc1 prerelease packages. It will probably take a little while digging through the CI logs to find the specific build number the fix was introduced in. Do you really need that? |
We were using older build version in some of our microservices but I did an experiment and we should fine upgrading them to final beta8 version. Thanks for the quick feedback. |
From @anfomin on September 30, 2015 15:1
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.
Copied from original issue: aspnet/Mvc#3235
The text was updated successfully, but these errors were encountered: