# API Connector sending null for all values

**URL:** <https://forum.bubble.io/t/api-connector-sending-null-for-all-values/182037>\
**Category:** APIs\
**Created:** [December 13, 2021, 12:49am UTC](https://forum.bubble.io/t/api-connector-sending-null-for-all-values/182037 "2021-12-13T00:49:19Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![flowtron](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/flowtron/32/117912_2.png) [@flowtron](https://forum.bubble.io/u/flowtron)\
**Post date:** [December 13, 2021, 12:49am UTC](https://forum.bubble.io/t/api-connector-sending-null-for-all-values/182037/1 "2021-12-13T00:49:19Z")

</div>

I’m trying to use API Connector to connect to InPlayer’s API and I’m having some issues. I’ve tested the POST: Create an account request using Postman and it works beautifully every time but as soon as I try and bring that over to API Connector, I get an API response stating that every required field is blank. Help!

InPlayer API Doc: [InPlayer API Documentation](https://docs.inplayer.com/api/accounts/#operation/getAccount)

API Response when I fill in all required fields:

> ```
> Raw response for the API 
> Status code 400
> {"code":400,"message":"There are validation errors. Please check the fields and ensure you have all the values entered properly","errors":{"email":"The email is not in a valid format.","merchant_uuid":"The UUID must not be empty.","password":"The password must be at least 8 characters.","password_confirmation":"The password_confirmation does not match the password.","full_name":"The full_name must not be empty and between 2 and 250 characters.","type":"The type must not be empty and must be consumer or merchant."}}
> 
> ```

Edit: I just realized that the first error I was receiving regarding the single field being empty was from Bubble due to the Optional box not being checked. I’ve edited the post to reflect that. Obviously, I’m still having the issue with none of the Values being sent.

---

<div class="post-metadata">

**Author:** ![progressier](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/progressier/32/116969_2.png) [@progressier](https://forum.bubble.io/u/progressier)\
**Post date:** [December 13, 2021, 5:25am UTC](https://forum.bubble.io/t/api-connector-sending-null-for-all-values/182037/2 "2021-12-13T05:25:23Z")

</div>

Could you add a screenshot of your API Connector setup? If it’s working on Postman but not in the API Connector, it’s almost certainly an issue with your use of the latter. You’re not alone though — the API Connector is notoriously difficult to navigate.

---

<div class="post-metadata">

**Author:** ![flowtron](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/flowtron/32/117912_2.png) [@flowtron](https://forum.bubble.io/u/flowtron)\
**Post date:** [December 13, 2021, 11:33am UTC](https://forum.bubble.io/t/api-connector-sending-null-for-all-values/182037/3 "2021-12-13T11:33:26Z")

</div>

Absolutely! Here’s the screenshot of my set up. Blanked the client\_ID for privacy but other than that this is exactly what I’m running.

 ![screencapture-bubble-io-page-2021-12-13-04_31_42](https://us1.discourse-cdn.com/bubble/original/3X/d/7/d7dbdd5540efcacf68e695adf54ff2cf1c7fe1b0.png)  
Edit: Also, I understand some of these fields should be private, but I’m just trying to get it to work.

---

<div class="post-metadata">

**Author:** ![flowtron](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/flowtron/32/117912_2.png) [@flowtron](https://forum.bubble.io/u/flowtron)\
**Post date:** [December 13, 2021, 3:53pm UTC](https://forum.bubble.io/t/api-connector-sending-null-for-all-values/182037/4 "2021-12-13T15:53:03Z")

</div>

Alright, so I was finally able to get it to work. I figured there were only a limited number of combinations for these options and discovered that changing the body type from JSON to form-data worked!

---

<div class="post-metadata">

**Author:** ![flowtron](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/flowtron/32/117912_2.png) [@flowtron](https://forum.bubble.io/u/flowtron)\
**Post date:** [December 30, 2021, 9:58pm UTC](https://forum.bubble.io/t/api-connector-sending-null-for-all-values/182037/5 "2021-12-30T21:58:07Z")

</div>

So I thought I had solved this problem in my previous post by changing the body type from JSON ot form-data, but the problem continues. Same API, different call. My other calls work perfectly fine and my settings are matched everywhere except what needs to be different. I’m tearing my hair out over this!

Working call:

 ![Screen Shot 2021-12-30 at 1.56.54 PM](https://us1.discourse-cdn.com/bubble/original/3X/0/5/0556a4b45ee0953014abd249f4e3c0b626cb24cc.png)

Not working call:

 ![Screen Shot 2021-12-30 at 1.56.59 PM](https://us1.discourse-cdn.com/bubble/original/3X/2/3/23093a2d8a27ce66a6207311650a7eab5fba5151.png)  
 ![Screen Shot 2021-12-30 at 1.57.34 PM](https://us1.discourse-cdn.com/bubble/original/3X/f/e/fe293cde04c3162fdb39b9a5d1803ea80fd7797f.png)

For what it’s worth, the call in question is working perfectly fine in Postman as well.

---

<div class="post-metadata">

**Author:** ![jonathandantaschagas](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jonathandantaschagas/32/205783_2.png) [@jonathandantaschagas](https://forum.bubble.io/u/jonathandantaschagas)\
**Post date:** [January 8, 2022, 6:20am UTC](https://forum.bubble.io/t/api-connector-sending-null-for-all-values/182037/6 "2022-01-08T06:20:15Z")

</div>

Did you have success wit this issue ? I have same problem, but with json body.

---

<div class="post-metadata">

**Author:** ![gerbertdelangen](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gerbertdelangen/32/144602_2.png) [@gerbertdelangen](https://forum.bubble.io/u/gerbertdelangen)\
**Post date:** [January 8, 2022, 7:14am UTC](https://forum.bubble.io/t/api-connector-sending-null-for-all-values/182037/7 "2022-01-08T07:14:09Z")

</div>

According to the [apidocs](https://docs.inplayer.com/api/accounts/#operation/eraseAccount) you also need to provide a customer\_id.

---

<div class="post-metadata">

**Author:** ![flowtron](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/flowtron/32/117912_2.png) [@flowtron](https://forum.bubble.io/u/flowtron)\
**Post date:** [January 8, 2022, 4:07pm UTC](https://forum.bubble.io/t/api-connector-sending-null-for-all-values/182037/8 "2022-01-08T16:07:31Z")

</div>

It is only required when requested by the Merchant. In my scenario, it is being requested by the Customer. My postman request does not contain a customer\_id and works fine.

---

<div class="post-metadata">

**Author:** ![flowtron](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/flowtron/32/117912_2.png) [@flowtron](https://forum.bubble.io/u/flowtron)\
**Post date:** [January 8, 2022, 4:08pm UTC](https://forum.bubble.io/t/api-connector-sending-null-for-all-values/182037/9 "2022-01-08T16:08:19Z")

</div>

No success yet.

---

<div class="post-metadata">

**Author:** ![gerbertdelangen](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gerbertdelangen/32/144602_2.png) [@gerbertdelangen](https://forum.bubble.io/u/gerbertdelangen)\
**Post date:** [January 8, 2022, 4:19pm UTC](https://forum.bubble.io/t/api-connector-sending-null-for-all-values/182037/10 "2022-01-08T16:19:54Z")

</div>

Ah, sorry, I did not see that. Did you already try it like this?

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

---

<div class="post-metadata">

**Author:** ![gerbertdelangen](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gerbertdelangen/32/144602_2.png) [@gerbertdelangen](https://forum.bubble.io/u/gerbertdelangen)\
**Post date:** [January 8, 2022, 4:32pm UTC](https://forum.bubble.io/t/api-connector-sending-null-for-all-values/182037/11 "2022-01-08T16:32:17Z")

</div>

Or did you try this already:

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

Content-type = application/x-www-form-urlencoded

Inspired by [this post](http://forum.bubble.io/t/api-help-much-appreciated/68421/11) from Nigel

And if that does not work maybe try the content-type parameter in combination with body type form-data like you [tried above](http://forum.bubble.io/t/api-connector-sending-null-for-all-values/182037/5) :

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

---

<div class="post-metadata">

**Author:** ![jonathandantaschagas](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jonathandantaschagas/32/205783_2.png) [@jonathandantaschagas](https://forum.bubble.io/u/jonathandantaschagas)\
**Post date:** [January 8, 2022, 6:26pm UTC](https://forum.bubble.io/t/api-connector-sending-null-for-all-values/182037/12 "2022-01-08T18:26:24Z")

</div>

This works to me.

Add a header parameter, and in the key field add Content-Type and in value field add application/json

With this, the API will understand the type of data you are sending.

---

<div class="post-metadata">

**Author:** ![flowtron](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/flowtron/32/117912_2.png) [@flowtron](https://forum.bubble.io/u/flowtron)\
**Post date:** [January 13, 2022, 10:14pm UTC](https://forum.bubble.io/t/api-connector-sending-null-for-all-values/182037/13 "2022-01-13T22:14:42Z")

</div>

CC @jonathandantaschagas

I tried all of the solutions suggested and I received the same response every time. I actually already had Content-Type as a Shared Header. I tried it in the individual call as well but nothing changed. Tried JSON and the same response as well.

Thank you for the suggestions, however we ended up making a strategic decision to move away from this provider. I spent a good portion of the last week recreating the functionality we actually used (we really only used it for authentication for our assets) from them and decided just to import our db of users.

---

<div class="post-metadata">

**Author:** ![jsfeder1](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@jsfeder1](https://forum.bubble.io/u/jsfeder1)\
**Post date:** [April 26, 2022, 5:23pm UTC](https://forum.bubble.io/t/api-connector-sending-null-for-all-values/182037/14 "2022-04-26T17:23:12Z")

</div>

https://player.vimeo.com/video/529723274  
This video might help
