Skip to content

BRP world.list_components doesn't work for non-entity specified #23451

@Zeophlite

Description

@Zeophlite

Bevy version and features

  • main

What you did

  • in terminal 1 run cargo run --example server --features="bevy_remote"
  • in terminal 2 run curl -d'{"jsonrpc":"2.0","method":"world.list_components","id":1,"params":{"entity":null}}' -X POST -H "Accept: applcation/json" -H "Content-Type: application/json" http://127.0.0.1:15702
  • also tried with "params":{}

What went wrong

  • Got response {"jsonrpc":"2.0","id":1,"error":{"code":-32602,"message":"invalid type: null, expected u64"}} and {"jsonrpc":"2.0","id":1,"error":{"code":-32602,"message":"missing field entity"}}
  • Expected to get a list of all registered components, as per
    // If `None`, list all registered components.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Dev-ToolsTools used to debug Bevy applications.C-BugAn unexpected or incorrect behaviorS-Needs-InvestigationThis issue requires detective work to figure out what's going wrong

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions