vercel/ai · error · InvalidResponseDataError

Google did not return a resumable upload URL.

Error message

Google did not return a resumable upload URL.

What it means

Error "Google did not return a resumable upload URL." thrown in vercel/ai.

Source

Thrown at packages/google/src/google-batch.ts:663

}

function convertGoogleRpcError(
  error: InferSchema<typeof googleRpcStatusSchema>,
  fallbackMessage: string,
): BatchV4Error {
  return {
    message: error.message ?? fallbackMessage,
    ...(error.status != null ? { type: error.status } : {}),
    ...(error.code != null ? { code: String(error.code) } : {}),
  };
}

const googleUploadUrlResponseHandler: ResponseHandler<string> = async ({
  response,
}) => {
  const uploadUrl = response.headers.get('x-goog-upload-url');
  if (uploadUrl == null) {
    throw new InvalidResponseDataError({
      data: response.headers,
      message: 'Google did not return a resumable upload URL.',
    });
  }

  return { value: uploadUrl };
};

View on GitHub (pinned to 69428b1f8b)

When it happens

Trigger: Thrown at packages/google/src/google-batch.ts:663 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of vercel/ai@69428b1f8b (2026-08-30). Data as JSON: /api/errors/d876e539ce88d8bd. Report an issue: GitHub.