-1

I send a request: enter image description here

And get an error: enter image description here

How can I see details of this error?

user2950593
  • 9,233
  • 15
  • 67
  • 131
  • 1
    You've got a `.catch` on the `post` Promise. That means your `try ... catch` block won't catch anything. Do a `JSON.stringify` on `res` inside that `.catch` and see what else you get. Right now `toString` is called on it, which might hide an actual response body / error message. – Sergiu Paraschiv Jan 16 '19 at 09:12

1 Answers1

1

You can use the debugger to look at all of your Network requests.

The answer to this question will allow you to view your requests.

(Assuming you're on iOS) - Once you've added the code and your application is running, click on Hardware > Shake Gesture and then select Debug JS Remotely.

Once the debugger opens, you should start to see your requests on the Network tab.

Dan
  • 8,041
  • 8
  • 41
  • 72