Once everything is setup and data is flowing through APIs, there could be chances of getting errors for any reason.
- You can keep all the PoCs associated with the bot configuration informed if there is any error in sending or retrieving data from any of the APIs you added in the API section.
- See error log to identify the reason for failure and troubleshoot the API. There are 4 options available on the platform to test and Configure and configure API:
Tools and settings: One of the options that you see on the right of API configuration page. This is a global testing and setting tab. Click here to learn more.
You can email alerts to be sent to specific recipients (email) when there is some issue with an API and call got failed. Recipients will get error alerts for all the APIs added in the API section and is not specific to one API.
To add recipients to whom you want to notify about the API failures -
- In Studio > API.
- Click on the Setup alerts icon and enable Setup alerts.
- In Email, enter each email address of the recipient you want to notify and click Include.
- Click Save.
- To remove a recipient from the included list, click Exclude.
- To move a recipient from the Include to Exclude list or vice-versa, click on that respective email address.
The following is a sample screenshot of the error alert email.
To see the failure log of the API, click on the API failure log icon.
You will see the summary of all errors. Click on the arrow to expand that particular error details.
To see errors of a specific API, use the API drop-down box and choose your preferred API.
If there are many errors, you can further filter the summary by error code using the Search box.
There are response codes tagged to each error to help you identify why the error has occurred. The following section provides the list of status codes and its description to help help you troubleshoot an error.
The following table contains the list of common HTTP Status codes -
|401 (Unauthorized)||Error may be because of an expired, missing, or invalid token.|
|403 (Forbidden)||When the authorization fails. 404 is also used when the consumer is unaware that the resource exists.|
|400 (Bad Request)||Error when the request is bad/unclear. Example: if required fields are missing or header values are not filled.|
|404 (Not Found)||Error when the requested resource is not found.|
|500 (Internal Server Error)||Server error. The users can try again later.|
The timestamp(log) consists API details such as BotID, API name, etc. It is used to understand and rectify the error.