title: React Native Expo Request failed with status code 404
body: <p>I am trying to do a request to my server in a react native expo app on an ios device.</p>
  
  <p>My server is on heroku and is with HTTPS.</p>
  
  <p>here is the request code</p>
  
  <pre><code>axios.post(`${SERVER_URL}/users`, {
        data: {
          phoneNumber: phoneNumber.value,
          countryCode: '374',
          firstName: firstName.value,
          lastName: lastName.value
        }
      })
      .catch(err =&gt; console.error('sign up err', err))
      .then(res =&gt; {
        console.log('res', res.data)
      })
    }
  </code></pre>
  
  <p>And here is what error is displayed</p>
  
  <p><code>sign up err Error: Request failed with status code 404</code></p>
  
  <p>I also tried using <code>fetch</code> but get same 404 error.</p>
  
  <p>And this is what I get on my phone</p>
  
  <p><a href="https://i.stack.imgur.com/5XXjW.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5XXjW.jpg" alt="enter image description here"></a></p>