API error when updating custom field of type "multiple objects" with the object type being a virtualization interface #9763

Closed
opened 2025-12-29 21:22:19 +01:00 by adam · 3 comments
Owner

Originally created by @Molaron on GitHub (May 29, 2024).

Deployment Type

Self-hosted

NetBox Version

v4.0.3

Python Version

3.10

Steps to Reproduce

  1. Create a new custom field testfield of type Multiple Objects and related object type Virtualization > Interface
  2. Update the custom field using the api with the following body: { custom_fields: { test_field: [ { id: 40 } ] } } (40 should be replaced with a valid id for a virtualization interface)

Expected Behavior

The custom field should be updated to contain the virtualization interface with id 40

Observed Behavior

The API returns status code 500 and the following error body:

{
    error: "'VMInterface' object has no attribute 'get'",
    exception: 'AttributeError',
    netbox_version: '4.0.3',
    python_version: '3.10.12'
}

The custom field is not updated

Originally created by @Molaron on GitHub (May 29, 2024). ### Deployment Type Self-hosted ### NetBox Version v4.0.3 ### Python Version 3.10 ### Steps to Reproduce 1. Create a new custom field `testfield` of type `Multiple Objects` and related object type `Virtualization > Interface` 2. Update the custom field using the api with the following body: `{ custom_fields: { test_field: [ { id: 40 } ] } }` (40 should be replaced with a valid id for a virtualization interface) ### Expected Behavior The custom field should be updated to contain the virtualization interface with id 40 ### Observed Behavior The API returns status code 500 and the following error body: ``` { error: "'VMInterface' object has no attribute 'get'", exception: 'AttributeError', netbox_version: '4.0.3', python_version: '3.10.12' } ``` The custom field is not updated
adam added the type: bugpending closurestatus: revisions needed labels 2025-12-29 21:22:19 +01:00
adam closed this issue 2025-12-29 21:22:19 +01:00
Author
Owner

@jeffgdotorg commented on GitHub (May 29, 2024):

Thank you for reporting a problem you've encountered in NetBox.

Unfortunately, the provided Steps to Reproduce lack sufficient detail for me, the person auto-assigned to triage your issue, to get from a pristine, unpopulated NetBox instance to a state where the problem is reproducible.

Please update the issue body in the following ways:

  • Specify the set of objects that need to be created along the way beyond the obvious basics such as a site and a device type
  • Provide full, self-contained instrucitons for making the API call, such as a curl command line invocation
@jeffgdotorg commented on GitHub (May 29, 2024): Thank you for reporting a problem you've encountered in NetBox. Unfortunately, the provided **Steps to Reproduce** lack sufficient detail for me, the person auto-assigned to triage your issue, to get from a pristine, unpopulated NetBox instance to a state where the problem is reproducible. Please update the issue body in the following ways: - Specify the set of objects that need to be created along the way beyond the obvious basics such as a site and a device type - Provide full, self-contained instrucitons for making the API call, such as a `curl` command line invocation
Author
Owner

@github-actions[bot] commented on GitHub (Jun 6, 2024):

This is a reminder that additional information is needed in order to further triage this issue. If the requested details are not provided, the issue will soon be closed automatically.

@github-actions[bot] commented on GitHub (Jun 6, 2024): This is a reminder that additional information is needed in order to further triage this issue. If the requested details are not provided, the issue will soon be closed automatically.
Author
Owner

@github-actions[bot] commented on GitHub (Jun 13, 2024):

This issue is being closed as no further information has been provided. If you would like to revisit this topic, please first modify your original post to include all the requested detail, and then ask that the issue be reopened.

@github-actions[bot] commented on GitHub (Jun 13, 2024): This issue is being closed as no further information has been provided. If you would like to revisit this topic, please first modify your original post to include all the requested detail, and then ask that the issue be reopened.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9763