cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

400 Bad Request error

Former Member
4,963

Hi Experts,

I am getting 400 bad request error once post happens.

https://<port>:<host>/sap/opu/odata/sap/ZTest_SRV/EntitySet?sap-client=100&$filter=Proxy%20eq%20%27N...

I can see above url when error appears. Please check if you would have faced similar issue in your project. Let me know in case of any further detail required.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Andre_Fischer
Product and Topic Expert
Product and Topic Expert

Either

1.)

Remove the query parameter

?sap-client=100&$filter=Proxy%20eq%20%27N%27/$count from your request,so that it reads

https://<port>:<host>/sap/opu/odata/sap/ZTest_SRV/EntitySet

and provide a valid payload to create a new entity .

POST requests are only alllowed on entity set level.

or

2.)

Change the method from POST to GET so you will get a valid read request.

See also

https://www.odata.org/documentation/odata-version-2-0/uri-conventions/

Regards,

Andre

Answers (0)