[PR #3419] [CLOSED] Improve API error handling when a list is given as a choice value #12556

Closed
opened 2025-12-29 22:22:15 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/3419
Author: @candlerb
Created: 8/10/2019
Status: Closed

Base: developHead: candlerb/api-exception


📝 Commits (1)

  • e8d4561 Improve API error handling when a list is given as a choice value

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 netbox/utilities/api.py (+2 -1)

📄 Description

Fixes:

Return an error message instead of an exception if a user (wrongly) provides a list as a choice value, e.g. "interface": {"type": [32767]}

See https://groups.google.com/forum/#!topic/netbox-discuss/H7xIrwVnOSM


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/3419 **Author:** [@candlerb](https://github.com/candlerb) **Created:** 8/10/2019 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `candlerb/api-exception` --- ### 📝 Commits (1) - [`e8d4561`](https://github.com/netbox-community/netbox/commit/e8d4561db13c904546043356541d14ce98cfda70) Improve API error handling when a list is given as a choice value ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/utilities/api.py` (+2 -1) </details> ### 📄 Description # Fixes: Return an error message instead of an exception if a user (wrongly) provides a list as a choice value, e.g. `"interface": {"type": [32767]}` See https://groups.google.com/forum/#!topic/netbox-discuss/H7xIrwVnOSM --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:22:15 +01:00
adam closed this issue 2025-12-29 22:22:15 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12556