FAQ

Updated at:

What should I do if I receive a 403 error message, such as"You are not authorized to do this operation"or" You are not authorized to perform this action ", when calling a QuanMiao Light App API operation?

This error occurs because the current account does not have permission to access QuanMiao Light App API operations. Try one of the following solutions:

What should I do if I receive the error "Error: Invalidcontents code: 400,httpStatusCode: 200" when calling a QuanMiao Light App API for a conversation with history?This error occurs when you call a QuanMiao Light App with conversation history. Although the HTTP status code of the API is 200 and the outer code field is successful, the status field in the business data data is FAILED and the errorMessage field is No content found, indicating that the QuanMiao Light App did not find valid conversation content when processing the request. The following is an example of the response body:

{
  "code": "successful",
  "data": {
    "errorMessage": "No content found",
    "results": [],
    "status": "FAILED"
  },
  "httpStatusCode": "200",
  "message": "successful",
  "requestId": "52676CAF-54AA-50D9-85F6-F6AE5383661A",
  "success": true
}

We recommend that you check the following:

  • Check whether the conversation content (contents) passed in is empty or incorrectly formatted.
  • Verify that the context data of the conversation history is complete and has not expired.
  • If the issue persists after troubleshooting, submit a ticket with the requestId from the response body and contact technical support for further assistance.