Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 553 Bytes

ai-invalid-response-data-error.mdx

File metadata and controls

25 lines (17 loc) · 553 Bytes
title description
AI_InvalidResponseDataError
Learn how to fix AI_InvalidResponseDataError

AI_InvalidResponseDataError

This error occurs when the server returns a response with invalid data content.

Properties

  • data: The invalid response data value
  • message: The error message

Checking for this Error

You can check if an error is an instance of AI_InvalidResponseDataError using:

import { InvalidResponseDataError } from 'ai';

if (InvalidResponseDataError.isInstance(error)) {
  // Handle the error
}