-
Notifications
You must be signed in to change notification settings - Fork 760
Open
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Summary:
Calling documents.list on a File Search Store returns an INVALID_ARGUMENT error
requesting corpora//documents/ format, even though the endpoint is
fileSearchStores/*/documents.
This worked previously and now fails.
Reproduction:
curl -X GET
"https://generativelanguage.googleapis.com/v1beta/fileSearchStores/STORE_ID/documents?key=API_KEY"
Response:
{
"error": {
"code": 400,
"message": "Document name must be of the format corpora//documents/",
"status": "INVALID_ARGUMENT"
}
}
Notes:
- Same error with curl and application client
- fileSearchStores.get works
- documents.list fails consistently
- Appears to be routed/validated as corpora documents API
Environment:
- API: Gemini / Generative Language API
- Version: v1beta
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.