PUTs to Site Endpoint Requires Value for time_zone #2175

Closed
opened 2025-12-29 17:23:01 +01:00 by adam · 3 comments
Owner

Originally created by @nue-melexis on GitHub (Dec 6, 2018).

Environment

  • Python version: 3.4.8
  • NetBox version: 2.4.3

Steps to Reproduce

with pynetbox < 4.0.0 get a site
api = pynetbox.api(>url<, token=>token<)
site = api.dcim.sites.get(1)
site.comments = "CHANGE RANDOM"
site.save()

Expected Behavior

change should be succesful

Observed Behavior

response:
{"time_zone":["This field may not be null."]}

Description

To overcome digitalocean/pynetbox#59,
#2143 was done, but it was only valid for netbox 2.3.4 - 6.

I get the issue again with 2.4.3.
Check master commits https://github.com/digitalocean/netbox/commits/master?after=8d4329197a916ed5704ce774a77ec1f59c8a6328+279

Browsing files:
Still OK:
Post-release version bump @jeremystretch committed on Jul 2

NOK:
Closes #2211: Removed Python 2 instructions from the installation docs @jeremystretch committed on Jul 2

Sorry for the confusion with the other issue, but I somehow miss-copy pasted.

Best Regards,
Norman

Originally created by @nue-melexis on GitHub (Dec 6, 2018). ### Environment * Python version: 3.4.8 * NetBox version: 2.4.3 ### Steps to Reproduce **with pynetbox < 4.0.0 get a site** api = pynetbox.api(>url<, token=>token<) site = api.dcim.sites.get(1) site.comments = "CHANGE RANDOM" site.save() ### Expected Behavior change should be succesful ### Observed Behavior response: {"time_zone":["This field may not be null."]} ### Description To overcome [digitalocean/pynetbox#59,](https://github.com/digitalocean/pynetbox/issues/59) [#2143](https://github.com/digitalocean/netbox/issues/2143) was done, but it was only valid for netbox 2.3.4 - 6. I get the issue again with 2.4.3. Check master commits https://github.com/digitalocean/netbox/commits/master?after=8d4329197a916ed5704ce774a77ec1f59c8a6328+279 Browsing files: Still OK: [Post-release version bump @jeremystretch committed on Jul 2](https://github.com/digitalocean/netbox/blob/302c14186a2020fa2a241cb0b0bbe1fd9dc0a367/netbox/dcim/api/serializers.py) NOK: [Closes #2211: Removed Python 2 instructions from the installation docs @jeremystretch committed on Jul 2 ](https://github.com/digitalocean/netbox/blob/104bd1b45f6a6f3b5d94fef4126c3b49413b33a3/netbox/dcim/api/serializers.py) Sorry for the confusion with the other issue, but I somehow miss-copy pasted. Best Regards, Norman
adam closed this issue 2025-12-29 17:23:01 +01:00
Author
Owner

@jeremystretch commented on GitHub (Dec 11, 2018):

Please specify your NetBox and Python versions as stated in the template.

@jeremystretch commented on GitHub (Dec 11, 2018): Please specify your NetBox and Python versions as stated in the template.
Author
Owner

@DanSheps commented on GitHub (Dec 13, 2018):

You should go to the latest version of netbox.

I am unable to reproduce this on the latest version.

@DanSheps commented on GitHub (Dec 13, 2018): You should go to the latest version of netbox. I am unable to reproduce this on the latest version.
Author
Owner

@jeremystretch commented on GitHub (Dec 19, 2018):

Closing due to lack of activity. Please upgrade to the latest stable NetBox release and request to re-open this issue if it persists and is reproducible.

@jeremystretch commented on GitHub (Dec 19, 2018): Closing due to lack of activity. Please upgrade to the latest stable NetBox release and request to re-open this issue if it persists and is reproducible.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2175