/upload/v1beta/files?key={} HTTP/1.1\r\nHost: generativelanguage.googleapis.com
{
"error": {
"code": 400,
"message": "The document has no pages.",
"status": "INVALID_ARGUMENT"
}
}
/upload/v1beta/files?key={} HTTP/1.1\r\nHost: generativelanguage.googleapis.com
{
"error": {
"code": 400,
"message": "The document has no pages.",
"status": "INVALID_ARGUMENT"
}
}
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.