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

No longer works with Netbox as of v3.5.0 due to OpenAPI change #548

Closed
K0HAX opened this issue May 1, 2023 · 2 comments · Fixed by #564
Closed

No longer works with Netbox as of v3.5.0 due to OpenAPI change #548

K0HAX opened this issue May 1, 2023 · 2 comments · Fixed by #564

Comments

@K0HAX
Copy link

K0HAX commented May 1, 2023

When targeting a Netbox instance of v3.5.0 I get the error pynetbox.core.query.RequestError: The requested url: https://<url>/api/docs/?format=openapi could not be found. when calling pynetbox.api('<url>', token='<token>')

@markkuleinio
Copy link
Contributor

Creating the API object works here:

>>> import pynetbox
>>> pynetbox.__version__
'7.0.1'
>>> netbox = pynetbox.api("http://netbox-test.lein.io/", token="176d4c04ccc8f2a549ea6fd39312367d9da5a796ff")
>>> netbox.version
'3.5'
>>> netbox.status()["netbox-version"]
'3.5.0'
>>>

I see you already noticed #547 that deals with the OpenAPI change.

@photonicnet
Copy link

Is the change in #547 and the commit going into 7.0.2? We have not noticed anything else with netbox 3.5.x other than the OpenAPI change at this stage. We have not worked with any of the new features as of yet though.

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

Successfully merging a pull request may close this issue.

3 participants