# API Connector sudden failure : Non-Object Returned When JSON Expected

**URL:** <https://forum.bubble.io/t/api-connector-sudden-failure-non-object-returned-when-json-expected/325954>\
**Category:** APIs\
**Created:** [June 8, 2024, 7:09am UTC](https://forum.bubble.io/t/api-connector-sudden-failure-non-object-returned-when-json-expected/325954 "2024-06-08T07:09:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ginelock](https://avatars.discourse-cdn.com/v4/letter/g/a9a28c/32.png) [@ginelock](https://forum.bubble.io/u/ginelock)\
**Post date:** [June 8, 2024, 7:09am UTC](https://forum.bubble.io/t/api-connector-sudden-failure-non-object-returned-when-json-expected/325954/1 "2024-06-08T07:09:22Z")

</div>

I have set up the API connector since half year ago and it is running completely fine. No changes were made since then, and suddenly the API connector Failed To Return the value although post request is successfully executed.

I used Postman to post a similar request, and the value is returned correctly. So i know it is not issue of the url endpoint.

This is what i captured from webhook.site to see the difference :

**Post request from postman**

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/e/4/e425d7525e300ca09fa9b1e82a13aed94d26dda3.png)

**Results I see from postman**  
{  
“id”: “f5wc6ris”,  
“collection\_id”: “knklacep”,  
“paid”: false,  
“state”: “due”,  
“amount”: 200,  
“paid\_amount”: 0,  
“due\_at”: “2023-2-25”,  
“email”: “[testing@gmail.com](mailto:testing@gmail.com)”,  
“mobile”: “+60123456789”,  
“name”: “TESTER”,  
“url”: “[Billplz | Fair payment platform](https://www.billplz.com/bills/f5wc6ris)”,  
“reference\_1\_label”: “Ref\_label\_1”,  
“reference\_1”: “Reference 1”,  
“reference\_2\_label”: “Ref\_label\_2”,  
“reference\_2”: “Reference 2”,  
“redirect\_url”: “[https://staywokeproperty.com/rms](https://staywokeproperty.com/rms)”,  
“callback\_url”: “[https://jetfuel-client-prototype.bubbleapps.io/api/1.1/wf/billplz\_webhook](https://jetfuel-client-prototype.bubbleapps.io/api/1.1/wf/billplz_webhook)”,  
“description”: “Rental Payment”,  
“paid\_at”: null  
}

**Post request from Bubble**

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/f/7/f7ad6f49c32690b06d2cc16a1e94c6681d820def.png)

**Results I see from API Connector**

1. When data type set to Json  

2. When data type set to text  

Both request from Bubble and Postman successfully executed. just the value is not returning correctly when using bubble, out of a suddenly. Anyone please help.
