You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone!
library does not work with netbox 3.7, there is no file /api/swagger.json in this version
there is a schema in yaml format in URL /api/schema/
Traceback (most recent call last):
File "/home/vagrant/workspace/inventory/src/main.py", line 15, in <module>
asyncio.run(
File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/vagrant/workspace/inventory/src/services/inventory.py", line 17, in run
netbox = AIONetbox.from_openapi(
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vagrant/workspace/inventory/venv/lib/python3.12/site-packages/aionetbox/api.py", line 54, in from_openapi
spec = NetboxSpec('{}/api/swagger.json'.format(url))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vagrant/workspace/inventory/venv/lib/python3.12/site-packages/aionetbox/utils.py", line 40, in wrapper
'instance': cls(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/home/vagrant/workspace/inventory/venv/lib/python3.12/site-packages/prance/__init__.py", line 285, in __init__
BaseParser.__init__(self, url=url, spec_string=spec_string, lazy=lazy, **kwargs)
File "/home/vagrant/workspace/inventory/venv/lib/python3.12/site-packages/prance/__init__.py", line 118, in __init__
self.parse()
File "/home/vagrant/workspace/inventory/venv/lib/python3.12/site-packages/prance/__init__.py", line 135, in parse
self.specification = fetch_url(self.url, encoding=encoding, strict=strict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vagrant/workspace/inventory/venv/lib/python3.12/site-packages/prance/util/url.py", line 240, in fetch_url
content, content_type = fetch_url_text(url, cache, encoding=encoding)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vagrant/workspace/inventory/venv/lib/python3.12/site-packages/prance/util/url.py", line 207, in fetch_url_text
raise ResolutionError(
prance.util.url.ResolutionError: Cannot fetch URL "https://netbox/api/swagger.json": 404 Not Found
The text was updated successfully, but these errors were encountered:
Hello. I'm a former maintainer this project is no longer active and the company Vapor, IO is also no longer active. I may try to revive this project if there's interest this weekend.
Hello everyone!
library does not work with netbox 3.7, there is no file
/api/swagger.json
in this versionthere is a schema in yaml format in URL
/api/schema/
The text was updated successfully, but these errors were encountered: