We have an API that we are querying through React Native.
GET, POST request work flawlessly either in our app or in Postman.
DELETE doesn't work on the App, but the same request works with Postman.
What is even weirder is that :
If we delete the resource either with Django or Postman, making the exact same request from our app on the phone will give us a 404 response, telling us that indeed, it was deleted.
Which means that the call from our app is supposed to work since we get an answer from the API!
So, basically, the DELETE doesn't work from the app but if we delete the resource from elsewhere, it acts as if it works for real.
We tested it from two different phones, just in case... And we are using Expo.
Example of our DELETE request :
https://apiurl/reservations/id_num {"method":"DELETE","headers":{"Accept":"application/json","Content-Type":"application/json","X-App-Token":"blablatoken","Authorization":"JWT blablasuperlongtoken"}}
UPDATE: The question asked by MattyK14 was good, we get a 200 response which is supposed to be our GET response. We investigated on this path but can't seem to find anything.
We are rebuilding the API using Axios as we can't find a thing and we will check.