Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to send empty or non-JSON payload in command #163

Open
ctron opened this issue Nov 22, 2022 · 0 comments
Open

Unable to send empty or non-JSON payload in command #163

ctron opened this issue Nov 22, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@ctron
Copy link
Member

ctron commented Nov 22, 2022

Trying to send a command without payload:

➜  drg cmd test1 "foo" --application ctron
error: The following required arguments were not provided:
    <--payload <payload>|--filename <FILE>>

USAGE:
    drg command --application <applicationId> <--payload <payload>|--filename <FILE>> <deviceId> <command>

For more information try --help

Trying to send a command with a non-JSON payload:

➜  drg cmd test1 "foo" --application ctron --payload ""
Error: Can't parse data args: '' into json

Caused by:
    EOF while parsing a value at line 1 column 0
@ctron ctron added the bug Something isn't working label Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant