Replies: 1 comment 5 replies
-
|
Hi, The 401 code means unauthorised, so please check your Username and password, and the permissions assigned to that user. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Wanted to try out the UniFi Import plugin instead of the UniFi Import (API).
Getting the below response
Login failed - status code: 401- could this be related to 2FA - or something else?I have 2FA enabled on the UCG-Fiber.
Steen
Pi4-2:/$ python3 /app/front/plugins/unifi_import/script.py[plugin_helper] reading config file
17:37:12 [UNFIMP] In script
17:37:12 [UNFIMP] Full import needs to be done: config_value: once and lock_file_value: False
17:37:12 [UNFIMP] sites: ['HanLop']
17:37:12 [UNFIMP] site: HanLop
/opt/venv/lib/python3.12/site-packages/urllib3/connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '192.168.2.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
warnings.warn(
Traceback (most recent call last):
File "/app/front/plugins/unifi_import/script.py", line 289, in
main()
File "/app/front/plugins/unifi_import/script.py", line 59, in main
plugin_objects = get_entries(plugin_objects)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/front/plugins/unifi_import/script.py", line 87, in get_entries
c = Controller(
^^^^^^^^^^^
File "/opt/venv/lib/python3.12/site-packages/pyunifi/controller.py", line 113, in init
self._login()
File "/opt/venv/lib/python3.12/site-packages/pyunifi/controller.py", line 195, in _login
raise APIError(
pyunifi.controller.APIError: Login failed - status code: 401
Beta Was this translation helpful? Give feedback.
All reactions