pynetbox icon indicating copy to clipboard operation
pynetbox copied to clipboard

Choices are not returned when the API token can PUT but not POST on an endpoint

Open BenoitKnecht opened this issue 1 year ago • 5 comments

pynetbox version

v7.1.0

NetBox version

v3.4.3

Python version

3.9

Steps to Reproduce

Using an API token that cannot POST on the /dcim/devices/ endpoint for instance, try getting choices using

nb.dcim.devices.choices()

Expected Behavior

A list of choices is returned.

Observed Behavior

ValueError: Unexpected format in the OPTIONS response at https://netbox.example.com/api/dcim/devices

BenoitKnecht avatar Nov 03 '23 22:11 BenoitKnecht