This project is read-only.

Odata - batch request got stuck

Topics: ASP.NET Web API
Feb 8, 2014 at 6:38 PM
i am sending
POST$batch HTTP/1.1
Content-Type: multipart/mixed; boundary="batch_c65a2514-747f-4183-aeea-4942af3152cb"
Cookie: session-token=1c1071dd-fbda-4a57-8a22-b602b35c5a4a
Content-Length: 210
Expect: 100-continue

Content-Type: application/http; msgtype=request

GET /SituatorWebApi/Sensors(5) HTTP/1.1


and i am getting error

HTTP/1.1 500 Internal Server Error
Cache-Control: no-cache
Pragma: no-cache
Content-Type: application/json; charset=utf-8
Expires: -1
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Sat, 08 Feb 2014 18:11:24 GMT
Content-Length: 46

{"$id":"1","Message":"An error has occurred."}

i downloaded the batchhandler code and saw that in ParseBatchRequestsAsync it got stuck in while (batchReader.Read())