Skip to content
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

Error: initializing netbox controller #30

Open
sanjaypjana opened this issue May 30, 2024 · 1 comment
Open

Error: initializing netbox controller #30

sanjaypjana opened this issue May 30, 2024 · 1 comment

Comments

@sanjaypjana
Copy link

I am setting up a new instance of ip controller, It looks like a get request to netbox pod was executed successfully. When the ip controller pod does a post i am getting a error.

The below is from pod logs of ip controller:

Error: initializing netbox controller: "upserting UID field: executing request: 400 Bad Request: {"object_types":["This field is required."]}"

The below is the pod log from netbox for the transaction:

"POST /api/extras/custom-fields/ HTTP/1.1" 400 44 "-" "Go-http-client/1.1"

Its not clear to me what went wrong. Can anyone help?

@ndombroski
Copy link
Collaborator

👋 what version of NetBox were you running this against?

This error is coming from the UpsertUIDField function, which is responsible for creating the uid custom field. As the error implies, the controller is not passing a value for object_types field in the request to create the custom field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants