API Call Returning a "1" in the Body

Hi Everyone,

New to the forum but excited to learn from all of you. I just performed an API call and the only thing it returned was a “1” in the Body.

Please advise on what could be causing this. Thank you in advance.

Hi @rklee,

Welcome to the community! :clap:

While that does look like strange behavior, this is most likely based on the endpoint you are hitting.

If you click on “Code” all the way to the right just above the response area, you can generate a curl command, or other language snippet that will let you make the request from that language or program.

Going with curl, I would execute that call and see if you also get a “1” back, and if so, its likely to be issues with your endpoint.

In addition, it looks like that “1” could also be line numbering from the UI, and that you actually have an empty result, or your response sent back a character that doesnt render text, such as new line character, carriage return character, or even a space or tab. Trying this in curl should help, as well to see if its an empty response or not.

Hopefully this helps!

1 Like