-
Notifications
You must be signed in to change notification settings - Fork 40
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
pynetbox.lib.query.RequestError: The request failed with code 400 Bad Request #4
Comments
It looks like a mismatch between pynetbox v3.4.6 and NetBox v2.5.8 --I built this script using NetBox v2.4.4 and current version of pynetbox is 4.0.6. I can't reproduce this environment right now (NetBox v2.5.8), but just made a new commit updating all versions of dependencies. Please, try this new version and send me a reply (it worked for me pynetbox v4.0.6 and NetBox v2.4.4). |
Ok, pip install --upgrade -r requirements.txt
i see pynetbox changing to 4.0.6 ...
In the server side running in development mode with DEbug=True I see:
|
Connection reset errors could be related to network or web server issues. Using the same environment you're running the script, you could open Python shell and simulate that interaction: >>> from pynetbox import api
>>> nb = api('netbox_addr', token='token_goes_here', ssl_verify=False)
>>> nb.ipam.ip_addresses.get(address='ip_addr') Try with IP addresses that are registered and not registered in NetBox. You could even try with some invalid values, like |
Thanks, this actually was helpful debugging. |
I get this error both in Centos 7.6 and in a container running debian and python 3.7.3
My netbox is versionn 2.5.8
Here is the stack trace:
The text was updated successfully, but these errors were encountered: