How to debug API call?

I’m calling my private API and getting object data correctly when I use API editor test function. But, wen I use the API call in my app, the Alert for error says “[object Object]” only and I have no idea how to proceed.

I use x-api-key HDR field for authentication.

Can you tell me how can I debug here or give me any clue what can be wrong?


OK, replying to myself as someone can find it useful. I found a solution to my problem. Simply, the API call works when I created the API but it does not work when I call the API from the app. This is due to the fact that I was testing the app using Web and for some reason AWS API does not like that. When I switched to testing the app on Android device it started working.


hello, how are you?

I saw your letter today, did you solve the problem?

yes, I had to use real phone to test my app. The Web test does not work with my API.