# API call returns a non-object

**URL:** <https://forum.bubble.io/t/api-call-returns-a-non-object/138039>\
**Category:** APIs\
**Created:** [February 24, 2021, 9:11pm UTC](https://forum.bubble.io/t/api-call-returns-a-non-object/138039 "2021-02-24T21:11:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesh95](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@jamesh95](https://forum.bubble.io/u/jamesh95)\
**Post date:** [February 24, 2021, 9:11pm UTC](https://forum.bubble.io/t/api-call-returns-a-non-object/138039/1 "2021-02-24T21:11:31Z")

</div>

Calling an API with data type JSON. Works fine on Postman and returns JSON there.  
When I capture response headers and show raw data the body is just {}.  
Also if I change the data type from JSON to text, it returns the “JSON” from my API but in text…

Get the API call returns a non-object when I call it from the API Connector?

---

<div class="post-metadata">

**Author:** ![andrew.mcdonagh](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@andrew.mcdonagh](https://forum.bubble.io/u/andrew.mcdonagh)\
**Post date:** [February 24, 2021, 10:44pm UTC](https://forum.bubble.io/t/api-call-returns-a-non-object/138039/2 "2021-02-24T22:44:44Z")

</div>

Do you. have a comment in the Response body?

---

<div class="post-metadata">

**Author:** ![curiousfeed](https://avatars.discourse-cdn.com/v4/letter/c/41988e/32.png) [@curiousfeed](https://forum.bubble.io/u/curiousfeed)\
**Post date:** [February 18, 2022, 2:52pm UTC](https://forum.bubble.io/t/api-call-returns-a-non-object/138039/3 "2022-02-18T14:52:03Z")

</div>

I think I have the same issue. Adding some screenshots for more context. I am trying to call my own Python backend through a POST request.  
Data type Text returns something that looks like JSON to me but Bubble does not recognize it as such and throws an error with data type JSON.

Postman seems to handle it better. Changing the body type from form-data to JSON doesn’t seem to change anything for data type text.

 ![Setup](https://us1.discourse-cdn.com/bubble/original/3X/1/0/10fd887265cbbae4419986c67cfe428d935c2fa7.jpeg)  
 ![text_output](https://us1.discourse-cdn.com/bubble/original/3X/9/c/9c3248a74c76b42c6bdb5e95cc5c05423018c30d.jpeg)  
 ![Postman_working](https://us1.discourse-cdn.com/bubble/original/3X/9/a/9ae5f943388d007d8b70c5c214f354d30f79b3fc.jpeg)
