-
Notifications
You must be signed in to change notification settings - Fork 170
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
Updating object with JSON custom field causes a traceback #457
Comments
Testing code:
With a text custom field it works. TBH, I don't get the purpose of " Removing the call to pynetbox/pynetbox/core/response.py Lines 453 to 458 in 0f1e588
|
I think it is for the case of objects that have a "label" and a "value" like the Status entry in many objects like Device. |
But |
Not saying it makes sense, just trying to guess what the author may have been thinking when they wrote that particular piece of code. |
I'm also seeing the same bug. I have also removed the call to Edit: After doing a bunch of digging, I really can't see why this |
Thanks @rodvand. I've tested the solution proposed above by markkuleinio and now everything works. Not sure if it may break something else, but up to the moment all other automations I've works fine. It will be really nice if this can be included in pynetbox production release. |
Hi, |
Any workaround for this that you know of? -- |
I've forked the repository and did a small change https://github.com/Kani999/pynetbox/tree/fix_cf_6.6.2 Then I released the forked version to pypi, so I can simply install it in my projects. I'm trying to maintain the version with the original pynetbox, but I don't guarantee anything in the future |
Thanks, going to use is for the moment, until you want to deprecate or stale it! -- |
@Kani999 can you open a new PR for your fix to come back upstream to pynetbox, so that someone can hopefully review that proposed fix? I know the last one stalled, but hopefully we can keep trying to nudge the right people to help gain consensus on the proper fix |
Pull Request #518 |
I have run into to this error as well:
If the managed_by field is empty, no errors occur. The field is defined like this:
Pynetbox is version version 7.0.0 |
Try upgrading Pynetbox to v7.0.1 |
Fixed by #518 |
I have a JSON custom field on some objects in my NetBox 3.2beta instance. When trying to update one of the objects I get this traceback.
The text was updated successfully, but these errors were encountered: