Troubleshoot Analytics Errors

📘

Important

The Buy with Prime API is offered as a preview and might change as we receive feedback and iterate on the interfaces. We are sharing this early documentation to help you learn about the Buy with Prime API as we write and iterate on the content.

This topic describes errors that you can encounter when you call the Buy with Prime Analytics interface and suggests corrective actions that you can take.

Errors starting report tasks

The following errors can occur when you call the startReportTask mutation.

Error TypeError CodeDescriptionSuggested Action
AccessDeniedErrorN/AYou don't have sufficient access to perform this action.Ensure that your access token has permission to access this information, and retry the call. For details, see Authenticate to the Buy with Prime API.
InternalServerErrorN/AUnexpected error during request processing.None. This is a server-side error.
ThrottlingErrorN/AYou made too many requests to the API. You can have up to five startReportTask requests in STARTED or RUNNING state at any time.Send the request again using exponential backoff.
ValidationErrorInvalidDateFormatInvalid date format.Provide a valid date range. Dates must be in ISO 8601 UTC format.
ValidationErrorInvalidDateRangeInvalid date range.Provide a valid date range.
ValidationErrorInvalidReportTypeThe specified report type is not one of the allowed types.Specify a report of an allowed type. For allowed report types, see Analytics Report Types.

Errors getting report status

The following errors can occur when you call the reportTask query.

Error TypeError CodeDescriptionSuggested Action
AccessDeniedErrorN/AYou don't have sufficient access to perform this action.Ensure that your access token has permission to access this information, and retry the call. For details, see Authenticate to the Buy with Prime API.
InternalServerErrorN/AUnexpected error during request processing.None. This is a server-side error.
ResourceNotFoundErrorN/AYou queried an invalid or expired taskId.Call startReportTask to create a new report. Reports expire seven days after creation.
ThrottlingErrorN/AYou made too many requests to the API. The maximum TPS is five.Send the request again using exponential backoff.

Errors getting a link to an analytics report

The following errors can occur when you call the reportDownloadLink query.

Error TypeError CodeDescriptionSuggested Action
AccessDeniedErrorN/AYou don't have sufficient access to perform this action.Ensure that your access token has permission to access this information, and retry the call. For details, see Authenticate to the Buy with Prime API.
InternalServerErrorN/AUnexpected error during request processing.None. This is a server-side error.
ResourceNotFoundErrorN/AYou queried an invalid or expired taskId.Call startReportTask to create a new report. Reports expire seven days after creation.
ThrottlingErrorN/AYou made too many requests to the API. The maximum TPS is five.Send the request again using exponential backoff.

Related topics