Skip to content

API lookup expressions stopped working #17708

@FestplattenSchnitzel

Description

@FestplattenSchnitzel

Deployment Type

Self-hosted

NetBox Version

4.1.3

Python Version

3.12.3

Steps to Reproduce

Run e.g. https://demo.netbox.dev/api/dcim/interfaces/?type__n=virtual as described in https://demo.netbox.dev/static/docs/reference/filtering/#lookup-expressions .

Expected Behavior

The query should return the results as described in https://demo.netbox.dev/static/docs/reference/filtering/#lookup-expressions .

Observed Behavior

HTTP 400 Bad Request
Allow: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, TRACE
Content-Type: application/json
Vary: Accept

{
    "type__n": [
        "Select a valid choice. virtual is not one of the available choices."
    ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: revisions neededThis issue requires additional information to be actionabletype: bugA confirmed report of unexpected behavior in the application

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions