Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Value in OData response is not in readable format

akash0925
Discoverer
0 Kudos
322
  • SAP Managed Tags:

I am getting OData response with Status code 201 as Created for the POST method. However, the HTTP response values as not readable (%23%20%20%20%20%20%20%201). How do I fix this?

1 REPLY 1

evanireland
Product and Topic Expert
Product and Topic Expert
0 Kudos
267
  • SAP Managed Tags:

It looks like the primary key is a string with "#" sign, 7 spaces, then "201", i.e. "# 201".

Spaces in URLs always have to be percent-encoded, and so do hash signs if they appear in the "path" component of the URL.

Maybe contact your server team to check if it is expected (or not) that the primary key contains "#" and spaces.

(Or if the key is client-generated, then check the client app code).

For more info, see RFC 3986: Uniform Resource Identifier (URI): Generic Syntax (rfc-editor.org)