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

UnifiTransportError: 400 when calling create_vouchers #22

Open
Knowaaaa opened this issue Apr 21, 2021 · 0 comments
Open

UnifiTransportError: 400 when calling create_vouchers #22

Knowaaaa opened this issue Apr 21, 2021 · 0 comments

Comments

@Knowaaaa
Copy link

Build: atag_5.11.39_12706
Vers: 5.11.39

when calling client.create_voucher() filling in kwargs with desired settings, it returns a 400 error with the traceback:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/barkern/.local/lib/python3.8/site-packages/unificontrol/metaprogram.py", line 125, in wrapper
    return instance(client, *a, **kw)
  File "/home/barkern/.local/lib/python3.8/site-packages/unificontrol/metaprogram.py", line 103, in __call__
    return client._execute(url, self._method, rest_dict, need_login=self._need_login)
  File "/home/barkern/.local/lib/python3.8/site-packages/unificontrol/unifi.py", line 115, in _execute
    raise UnifiTransportError("{}: {}".format(resp.status_code, resp.reason))
  unificontrol.exceptions.UnifiTransportError: 400: 

Any ideas? I am able to run other commands successfully such as client.list_sites() and client.stat_sysinfo(), but I am not sure if I am just not understanding the formatting of the function correctly or if it's been deprecated and doesn't work as intended any more.

Thanks!

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