Skip to content

Custom Choices tries wrong URL. #487

@jkugler

Description

@jkugler

I am using version 6.6.2 of pynetbox against version 3.2.7 of NetBox. I'm getting errors trying these api calls:

api = pynetbox.api(self.url)
api.create_token(self.user, self.password)
list(api.dcim.custom_choices())
pynetbox.core.query.RequestError: The requested url: http://192.168.108.56/api/dcim/_custom_field_choices/ could not be found.

likewise:

list(api.extras.custom_choices())
pynetbox.core.query.RequestError: The requested url: http://192.168.108.56/api/extras/_custom_field_choices/ could not be found.

BUT! This url works on my server: http://192.168.108.56/api/extras/custom-fields/ So, as a work-around, I can hit that URL with my token and Requests, but I'd like to be able to get that information from within pynetbox.

Metadata

Metadata

Assignees

No one assigned

    Labels

    app: pynetboxstatus: needs ownerThis issue is tentatively accepted pending a volunteer committed to its implementationtype: documentationA change or addition to the documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions