Skip to content

Unknown parameter primaryKey: expected one of offset, limit, fields #468

@pedzed

Description

@pedzed

Description
I am using Laravel Sail (Docker) and my unit tests are suddenly failing. I'm not yet sure where the problem exactly lies.

Failed to connect to 127.0.0.1 port 7700 after 0 ms: Connection refused for "http://127.0.0.1:7700/indexes/MY_INDEXES/documents?primaryKey=id".

Opening the link gives the following JSON:

{
    "message": "Unknown parameter `primaryKey`: expected one of `offset`, `limit`, `fields`",
    "code": "bad_request",
    "type": "invalid_request",
    "link": "https://docs.meilisearch.com/errors#bad_request"
}

Environment

  • OS: macOS
  • PHP v8.2.3
  • Laravel v10.1.5
  • Laravel Sail v1.21.0
  • Laravel Scout v9.8.1
  • Meilisearch Docker image v1.0.2
  • meilisearch-php version: ^1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    supportIssues related to support questions.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions