Skip to content

File Search documents.list returns corpora/* validation error (regression) #2037

@philo92

Description

@philo92

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p2Moderately-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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions