# 503 Service Unavailable while SMS auth but email works fine

**URL:** <https://community.auth0.com/t/503-service-unavailable-while-sms-auth-but-email-works-fine/9270>\
**Category:** Get Help\
**Tags:** sdk, 503, sms, passwordless\
**Created:** [January 23, 2018, 11:29pm UTC](https://community.auth0.com/t/503-service-unavailable-while-sms-auth-but-email-works-fine/9270 "2018-01-23T23:29:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dk1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dk1/32/3218_2.png) [@dk1](https://community.auth0.com/u/dk1)\
**Post date:** [January 23, 2018, 11:29pm UTC](https://community.auth0.com/t/503-service-unavailable-while-sms-auth-but-email-works-fine/9270/1 "2018-01-23T23:29:09Z")

</div>

Do someone experience the same issue with 503 error while SMS enter via passwordless?

We utilize hosted page and Auth0 Lock SDK on both ios/android and each time enter SMS code - this error cause notification.

No commits were made to the backend to cause any changes.  
Email authentication works fine at the same time! No errors.

```
{
  "date": "2018-01-22T09:48:35.605Z",
  "type": "f",
  "description": "The login returned an unknown error. Status: 503Body: <html><body><h1>503 Service Unavailable</h1>\nNo server is available to handle this request.\n</body></html>\n",
  "connection": "sms",
  "connection_id": "con_rwfCCq44FpDUYkLH",
  "client_id": "vUy05HVi.....OWEitpqV",
  "client_name": "....property.com",
  "ip": "52.50.221.223",
  "user_agent": "Ruby/2.1.5",
  "details": {
    "body": {
      "client_id": "vUy05HVi.......3OWEitpqV",
      "username": "+....719665",
      "password": " *****",
      "scope": "openid",
      "connection": "sms",
      "grant_type": "password"
    },
    "qs": {},
    "connection": "sms",
    "error": {
      "message": "The login returned an unknown error. Status: 503Body: <html><body><h1>503 Service Unavailable</h1>\nNo server is available to handle this request.\n</body></html>\n",
      "oauthError": "The login returned an unknown error. Status: 503Body: <html><body><h1>503 Service Unavailable</h1>\nNo server is available to handle this request.\n</body></html>\n",
      "type": "access_denied"
    },
    "stats": {
      "loginsCount": 9
    }
  },
  "hostname": "mobile.eu.auth0.com",
  "user_id": "sms|59faf12........d943d",
  "user_name": "+35797719665",
  "strategy": "sms",
  "strategy_type": "passwordless",
  "auth0_client": {
    "name": "ruby-auth0",
    "version": "4.1.0"
  },
  "log_id": "90020180122094835606753257103149892541238823857516707890"
}

```

Dear @jmangelo - as I see through tickets history same took place in 2016 and 2017

[https://support.auth0.com/tickets/16091](https://support.auth0.com/tickets/16091)  
[https://support.auth0.com/tickets/29592](https://support.auth0.com/tickets/29592)

---

<div class="post-metadata">

**Author:** ![ricardo.batista](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ricardo.batista/32/7711_2.png) [@ricardo.batista](https://community.auth0.com/u/ricardo.batista)\
**Post date:** [February 13, 2018, 7:52pm UTC](https://community.auth0.com/t/503-service-unavailable-while-sms-auth-but-email-works-fine/9270/2 "2018-02-13T19:52:57Z")

</div>

The error is caused by one of your rules. In both your rules, after calling an external API, you have:

```
  return callback(new Error('The login returned an unknown error. Status: ' + response.statusCode + 'Body: ' + body));

```

This will cause the error that you’re seeing in the logs. Please check if these external APIs are returning a proper response.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 25, 2019, 10:06am UTC](https://community.auth0.com/t/503-service-unavailable-while-sms-auth-but-email-works-fine/9270/3 "2019-07-25T10:06:26Z")

</div>


