# Error bad.connectoin 400 (missing property required connection)

**URL:** <https://community.auth0.com/t/error-bad-connectoin-400-missing-property-required-connection/122697>\
**Category:** Get Help\
**Tags:** user-password-management, user-management\
**Created:** [December 9, 2023, 3:59pm UTC](https://community.auth0.com/t/error-bad-connectoin-400-missing-property-required-connection/122697 "2023-12-09T15:59:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramandeep](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ramandeep/32/47127_2.png) [@ramandeep](https://community.auth0.com/u/ramandeep)\
**Post date:** [December 9, 2023, 3:59pm UTC](https://community.auth0.com/t/error-bad-connectoin-400-missing-property-required-connection/122697/1 "2023-12-09T15:59:04Z")

</div>

I’ve read this: [Passwordless bad connection universal login new - #6 by dbinetti](https://community.auth0.com/t/passwordless-bad-connection-universal-login-new/69713/6) (However I believe I’m not making the same mistake, I’m sending the values in the request body)…

```
  const response: AxiosResponse = await this.axios.post(
    `https://${AUTH0_DOMAIN}/passwordless/start`,
    {
      client_id:
        process.env.AUTH0_CLIENT_ID, 
      connection: "sms",
      phone_number: phoneNumber,
      send: "code",
    },
    {
      headers: {
        "Content-Type": "application/json",
      },
    }
  );

```

I have ensured all variables and request body are as expected, however I still receive a missing required property: “connection” error, when attempting to perform passwordless sms auth on react-native app

---

<div class="post-metadata">

**Author:** ![ramandeep](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ramandeep/32/47127_2.png) [@ramandeep](https://community.auth0.com/u/ramandeep)\
**Post date:** [December 12, 2023, 5:23pm UTC](https://community.auth0.com/t/error-bad-connectoin-400-missing-property-required-connection/122697/3 "2023-12-12T17:23:02Z")

</div>

Resolved using JSON.stringify()

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [December 12, 2023, 9:18pm UTC](https://community.auth0.com/t/error-bad-connectoin-400-missing-property-required-connection/122697/4 "2023-12-12T21:18:55Z")

</div>

Hey @ramandeep welcome to the community!

> [@ramandeep](#):
>
> Resolved using JSON.stringify()

Interesting! Thanks for sharing your solution with the community 🙂

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 26, 2023, 9:18pm UTC](https://community.auth0.com/t/error-bad-connectoin-400-missing-property-required-connection/122697/5 "2023-12-26T21:18:58Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
