How to check HTTP Response?

When you get server side error, you need to check HTTP Response from API, you can use the very useful Chrome DevTools network analysis features, see: https://developers.google.com/web/tools/chrome-devtools/network/reference

Please try as follows:

1. In DB AppMaker, click Tools -> Advanced Settings, enable "Debug", generate all scripts again, including the API.

2. Start your app with ionic serve,

3. Press F12 in your Chrome browser, go to Network panel,

4. Run your app again until you get the error,

4. So long as DevTools is open, it logs all requests in the Network panel. Use the Network panel to analyze requests. See: https://developers.google.com/web/tools/chrome-devtools/network/reference#analyze 

6. The API requests are sent to //yoursite/api, so in the "Name" column on the left of the Network panel, you see "api". Click on the request, you'll see detailed info on the right: - Click "Headers" to view HTTP headers (https://developers.google.com/web/tools/chrome-devtools/network/reference#headers), you also see the "Form data" sent to the API if the request is a HTTP POST. - Click "Preview" to view response body (https://developers.google.com/web/tools/chrome-devtools/network/reference#preview), if the requests is successful, you see the parsed JSON response. If not, click "Response" to view the actual response body (https://developers.google.com/web/tools/chrome-devtools/network/reference#response), if there are errors, you should find them in the response body.