Replies: 2 comments 3 replies
-
I am getting this same error, I have tried creating and updating the .env file with new API tokens from the Netbox Gui and it is just refusing to work. If you find an answer to this issue, please share it with me. I will do the same for you! |
Beta Was this translation helpful? Give feedback.
-
If your filepath is /opt/netbox/netbox/netbox API Cross-Origin Resource Sharing (CORS) settings. If CORS_ORIGIN_ALLOW_ALL is set to True, all origins will be |
Beta Was this translation helpful? Give feedback.
-
Im see the following error when I run nb-dt-import.py
(venv) user@netbox:~/Device-Type-Library-Import$ ./nb-dt-import.py
Package devicetype-library is already installed, updating /home/user/Device-Type-Library-Import/repo
Traceback (most recent call last):
File "/home/user/Device-Type-Library-Import/./nb-dt-import.py", line 54, in
main()
File "/home/user/Device-Type-Library-Import/./nb-dt-import.py", line 17, in main
netbox = NetBox(settings)
File "/home/user/Device-Type-Library-Import/netbox_api.py", line 28, in init
self.verify_compatibility()
File "/home/user/Device-Type-Library-Import/netbox_api.py", line 50, in verify_compatibility
version_split = [int(x) for x in self.netbox.version.split('.')]
File "/home/user/Device-Type-Library-Import/venv/lib/python3.10/site-packages/pynetbox/core/api.py", line 109, in version
).get_version()
File "/home/user/Device-Type-Library-Import/venv/lib/python3.10/site-packages/pynetbox/core/query.py", line 187, in get_version
raise RequestError(req)
pynetbox.core.query.RequestError: The request failed with code 403 Forbidden: {'detail': 'Authentication credentials were not provided.'}
Beta Was this translation helpful? Give feedback.
All reactions