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

Get a Device is not working #37

Open
beshoyabdelmalak opened this issue Jan 18, 2022 · 0 comments
Open

Get a Device is not working #37

beshoyabdelmalak opened this issue Jan 18, 2022 · 0 comments

Comments

@beshoyabdelmalak
Copy link

I get this error when I try to get a device

File "/Users/b.abdelmalak/Library/Caches/pypoetry/virtualenvs/paxexpress-cli-aBmlxjbt-py3.8/bin/paxexpress", line 5, in <module>
    cli()
  File "/Users/b.abdelmalak/Library/Caches/pypoetry/virtualenvs/paxexpress-cli-aBmlxjbt-py3.8/lib/python3.8/site-packages/typer/main.py", line 214, in __call__
    return get_command(self)(*args, **kwargs)
  File "/Users/b.abdelmalak/Library/Caches/pypoetry/virtualenvs/paxexpress-cli-aBmlxjbt-py3.8/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/Users/b.abdelmalak/Library/Caches/pypoetry/virtualenvs/paxexpress-cli-aBmlxjbt-py3.8/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/Users/b.abdelmalak/Library/Caches/pypoetry/virtualenvs/paxexpress-cli-aBmlxjbt-py3.8/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/b.abdelmalak/Library/Caches/pypoetry/virtualenvs/paxexpress-cli-aBmlxjbt-py3.8/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/b.abdelmalak/Library/Caches/pypoetry/virtualenvs/paxexpress-cli-aBmlxjbt-py3.8/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/b.abdelmalak/Library/Caches/pypoetry/virtualenvs/paxexpress-cli-aBmlxjbt-py3.8/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/Users/b.abdelmalak/Library/Caches/pypoetry/virtualenvs/paxexpress-cli-aBmlxjbt-py3.8/lib/python3.8/site-packages/typer/main.py", line 497, in wrapper
    return callback(**use_params)  # type: ignore
  File "/Users/b.abdelmalak/projects/paxexpress-cli/paxexpress_cli/devices/cli.py", line 27, in cli_get_device
    get_device(mac_address=mac_address)
  File "/Users/b.abdelmalak/projects/paxexpress-cli/paxexpress_cli/devices/core.py", line 51, in get_device
    response_handler(response=response, return_model=DeviceOutModel, print_field="data")
  File "/Users/b.abdelmalak/projects/paxexpress-cli/paxexpress_cli/utils.py", line 66, in response_handler
    return return_model(**to_print)
  File "/Users/b.abdelmalak/Library/Caches/pypoetry/virtualenvs/paxexpress-cli-aBmlxjbt-py3.8/lib/python3.8/site-packages/pydantic/main.py", line 400, in __init__
    raise validation_error
pydantic.error_wrappers.ValidationError: 1 validation error for DeviceOutModel
mqtt_password
  field required (type=value_error.missing)

To reproduce:
1- Create a new Device paxexpress device create
2- Try to get the Device paxexpress device get

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant