Errors in GraphQL Rize API 🚨

The Rize GraphQL API uses standardized error codes and messages to help you identify and resolve issues. Below is a detailed guide to common errors and their solutions.


Error Structure

All errors returned by the API follow this structure:

{
  "errors": [
    {
      "message": "Error message details",
      "locations": [
        {
          "line": 3,
          "column": 5
        }
      ],
      "path": ["queryName"],
      "extensions": {
        "code": "BAD_USER_INPUT",
      }
    }
  ]
}

Key Fields:

Error Handling Tips

  1. Read the Error Message: Focus on the message field for immediate clues about the problem.
  2. Check the Path: The path field points to the exact field in your query causing the issue.
  3. Use Correct Extensions: Refer to the extensions.code for detailed categorization of the error.
  4. Retry: For server or network-related errors, implement retry logic with exponential backoff.
  5. Log Errors: Log the complete error response for debugging and reporting to Rize API support.

Contacting Support

If an error persists and the solution isn’t clear: