You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"error":{
"code": "InternalServerError",
"message": "The relative URI 'Airlines' was specified in a batch operation, but a base URI was not specified for the batch writer or batch reader.",
"innererror":{
"message": "The relative URI 'Airlines' was specified in a batch operation, but a base URI was not specified for the batch writer or batch reader.",
"type": "Microsoft.OData.Core.ODataException",
"stacktrace": "at Microsoft.OData.Core.ODataBatchUtils.CreateOperationRequestUri(Uri uri, Uri baseUri, IODataUrlResolver urlResolver)
at Microsoft.OData.Core.ODataBatchReader.ParseRequestLine(String requestLine, String& httpMethod, Uri& requestUri)
at Microsoft.OData.Core.ODataBatchReader.CreateOperationRequestMessageImplementation()
at Microsoft.OData.Core.ODataBatchReader.InterceptException[T](Func`1 action)
at Microsoft.OData.Core.ODataBatchReader.CreateOperationRequestMessage()
at Microsoft.Test.OData.Services.ODataWCFService.Handlers.BatchHandler.Process(IODataRequestMessage requestMessage, IODataResponseMessage responseMessage)
at Microsoft.Test.OData.Services.ODataWCFService.Handlers.RequestHandler.Process(Stream requestStream)
at Microsoft.Test.OData.Services.ODataWCFService.Handlers.RequestHandler.Process(Stream requestStream)
at Microsoft.Test.OData.Services.ODataWCFService.Handlers.RootRequestHandler.Process(Stream requestStream)"
}
}
}
When using relative uris in the batch request content the provided hosted TripPin Service (https://services.odata.org/V4/TripPinServiceRW/) throws an internal server error:
When running the service locally it works fine.
Example Batch Payloads
POST http://localhost:23890/$batch HTTP/1.1
Absolute uris local service
Relative uris local service
POST https://services.odata.org/V4/(S(tlqsblnqc325d3g3fkcdjfnn))/TripPinServiceRW/$batch HTTP/1.1
Absolute uris hosted service
Relative uris hosted service
The text was updated successfully, but these errors were encountered: