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

REST API Error creating a rack: rack_group required, but not required in UI or ORM #4790

Closed
Tibo-nauto opened this issue Nov 13, 2023 · 2 comments · Fixed by #4802
Closed
Assignees
Labels
emergent Unplanned work that is brought into a sprint after it's started. type: bug Something isn't working as expected

Comments

@Tibo-nauto
Copy link

Hi,

I am using Nautobot v2.0.3 with pynautobot v2.0.1.

When creating a rack via pynautobot, the error message :
pynautobot.core.query.RequestError: The request failed with code 400 Bad Request: {'rack_group': ['This field is required.']} appears.

even if we add the rack_group field, leaving it empty. the request is unsuccessful :
pynautobot.core.query.RequestError: The request failed with code 400 Bad Request: {'rack_group': ['Related objects must be referenced by ID or by dictionary of attributes. Received an unrecognized value: null']}

The rack_group field is not mandatory in the documentation.

Regards,

@pszulczewski
Copy link

Looks like there is a discrepancy in Nautobot between UI and API. Give me some time to validate that.

@pszulczewski pszulczewski transferred this issue from nautobot/pynautobot Nov 13, 2023
@pszulczewski
Copy link

I have moved the issue to nautobot as it's a bug in the core.

@glennmatthews glennmatthews changed the title Error creating a rack. rack_group required REST API Error creating a rack: rack_group required, but not required in UI or ORM Nov 13, 2023
@glennmatthews glennmatthews added type: bug Something isn't working as expected emergent Unplanned work that is brought into a sprint after it's started. labels Nov 13, 2023
@HanlinMiao HanlinMiao self-assigned this Nov 14, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
emergent Unplanned work that is brought into a sprint after it's started. type: bug Something isn't working as expected
Projects
No open projects
Status: Done
4 participants