OData / odataorg.github.io

Staging site and collaboration repository for http://www.odata.org
MIT License
64 stars 101 forks source link

TripPin OData v4 Sample Service: Bug in Batch support #123

Open sapui5-demos opened 7 years ago

sapui5-demos commented 7 years ago

Hi!

When sending the following batch request:

POST http://services.odata.org/TripPinRESTierService/(S(44nbzk0kapmsdmankuj0auq0))/$batch

OData-Version:4.0 Content-Type:multipart/mixed; boundary=batch_id-1486480047107-5

--batch_id-1486480047107-5 Content-Type:application/http Content-Transfer-Encoding:binary

GET Airlines?$skip=0&$top=100 HTTP/1.1 Accept:application/json;odata.metadata=minimal;IEEE754Compatible=true Accept-Language:de-DE Content-Type:application/json;charset=UTF-8;IEEE754Compatible=true --batch_id-1486480047107-5--

... I get the following error response, instead of the requested data:

--batchresponse_c8665a96-5705-4304-ac6c-db090c6b5d47 Content-Type: application/http Content-Transfer-Encoding: binary

HTTP/1.1 404 Not Found Content-Type: application/json; charset=utf-8

{"Message":"No HTTP resource was found that matches the request URI 'http://services.odata.org/TripPinRESTierService/(S(44nbzk0kapmsdmankuj0auq0))/Airlines?$skip=0&$top=100'."} --batchresponse_c8665a96-5705-4304-ac6c-db090c6b5d47--

moh-hassan commented 5 years ago

Late answer, but it may be useful for others that face that error.

Can you try the service: https://services.odata.org/V4/TripPinServiceRW/ It seems that there is a bug in the service.