I recently came across a Chrome issue which I think is worth sharing it with you.
I worked on a self written API using an HttpHandler which primary should return jso
Once I had the same problem and the main reason was lying in my controller return type.
If you try to return a C# object
just as-is, you will only get net::ERR_INCOMPLETE_CHUNKED_ENCODING
so don't forget to serialize your complex objects before sending them out for java script
client (or View
).
i.e. my controller return type was :
public async Task> GetComplexModelList(){
return new List()
}
Which caused INCOMPLETE_CHUNKED_ENCODING
error, so I tried to fix my mistake with something like:
using Newtonsoft.Json;
...
public async Task GetComplexModelList(){
return JsonConvert.SerializeObject(new List())
}