Skip to content

Default page_token for list identities yields 400 (go at least) #461

@vincegio

Description

@vincegio

Preflight checklist

Ory Network Project

No response

Describe the bug

Suddenly got 400 issues from ListIdentities in our production service.
Boiled it down to

var defaultValue string = "1"

Reproducible by setting page_token=1 in a request outside of the SDK.

Reproducing the bug

  1. GET /admin/identities
  2. Test with the defaults from the previously linked code (page_token=1)
  3. It will fail

Relevant log output

"error": {
    "code": 400,
    "status": "Bad Request",
    "request": "f643e501-9e67-99b5-9989-f02ae0b499b5",
    "reason": "The page token is invalid, do not craft your own page tokens",
    "message": "The request was malformed or contained invalid parameters"
  }
}

Relevant configuration

Version

Network

On which operating system are you observing this issue?

None

In which environment are you deploying?

None

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions