Skip to content

JSON API Not Working Correctly #1817

@SpacePretender

Description

@SpacePretender

Hello,

I've been trying to utilize the JSON API in COSMOS to allow for post-launch anomaly deployments but I'm having trouble actually getting my commands to run. I'm greeted with messages such as "Interface not connected, RADIO" or "Packet 'GENERIC_EPS GENERIC_EPS_RST_COUNTERS_CC' does not exist" when I'm able to see it in the CmdTlmServer window.

I also cannot get anything out when requesting TLM packets, similar responses are sent. I've even tried using the example from the docs listed HERE.

Am I doing something wrong, or does the version of COSMOS bundled with nos3 not have the full functionality of the API?

Here's the request I'm sending for reference.

curl -i -H "Content-Type: application/json-rpc" -H "Authorization: nos3123!" -d '{"jsonrpc": "2.0", "method": "cmd", "params": ["GENERIC_EPS GENERIC_EPS_RST_COUNTERS_CC"], "keyword_params": {"scope": "DEFAULT"}, "id": 1}' -X POST http://127.0.0.1:2900/openc3-api/api

or for the "Interface not connected, RADIO" message, I'm sending:

curl -i -H "Content-Type: application/json-rpc" -H "Authorization: nos3123!" -d '{"jsonrpc": "2.0", "method": "cmd", "params": ["GENERIC_EPS_RADIO GENERIC_EPS_RST_COUNTERS_CC"], "keyword_params": {"scope": "DEFAULT"}, "id": 1}' -X POST http://127.0.0.1:2900/openc3-api/api

Thank you, any help is greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions