Pdf page error in uploading

/upload/v1beta/files?key={} HTTP/1.1\r\nHost: generativelanguage.googleapis.com

{
  "error": {
    "code": 400,
    "message": "The document has no pages.",
    "status": "INVALID_ARGUMENT"
  }
}
1 Like

Hi @Hari_Prasath,

Please check your pdf file once again, verify content is available in the document you are sending.

Try with another pdf file, whether you are getting the same error or not?

Also, try upgrading SDK and send your request again.

Let me know, you are still facing the same issue.

I’m also experiencing this issue. I’m currently using the java client library “google-cloud-vertexai” version “1.14.0”.

I’ve tried multiple different PDF files and they all return the same error message. If I use Google Cloud console directly and upload the PDF via “add media” then the content is ingested as expected.