API - 500 Server Error on specific changed_object_type ("Templates") #2493

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

Originally created by @zmaster7 on GitHub (Apr 3, 2019).

Environment

  • Python version: 3.5.2
  • NetBox version: 2.5.9

Steps to Reproduce

Note: This is a bug as a result of: #3001

  1. Go to the change log webpage [/extras/changelog/] and filter by Action: Created, Object Type: "_______" template
  2. Select any of the change log entries and make note of the id
  3. Pull the specific record via API [/api/extras/object-changes/{id}/]

Expected Behavior

The record should be returned by the API

Observed Behavior

A 500 code Server Error is returned with the following message:

There was a problem with your request. Please contact an administrator.
The complete exception is provided below:
<class 'utilities.api.SerializerNotFound'>
Could not determine serializer for dcim.InterfaceTemplate with prefix 'Nested'

This error has been verified when selecting object types of "power port template," "interface template," and "device bay template." It could be possible it affects all "template" object types.

Additional Notes

It will also throw errors when pulling the changelog in bulk via [/api/extras/object-changes/] if the results happen to have these specific changed_object_type values

Originally created by @zmaster7 on GitHub (Apr 3, 2019). <!-- NOTE: This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report. --> ### Environment * Python version: 3.5.2 * NetBox version: 2.5.9 <!-- Describe in detail the exact steps that someone else can take to reproduce this bug using the current stable release of NetBox (or the current beta release where applicable). Begin with the creation of any necessary database objects and call out every operation being performed explicitly. If reporting a bug in the REST API, be sure to reconstruct the raw HTTP request(s) being made: Don't rely on a wrapper like pynetbox. --> ### Steps to Reproduce Note: This is a bug as a result of: [#3001](https://github.com/digitalocean/netbox/issues/3001) 1. Go to the change log webpage [/extras/changelog/] and filter by Action: Created, Object Type: "_______" template 2. Select any of the change log entries and make note of the id 3. Pull the specific record via API [/api/extras/object-changes/{id}/] <!-- What did you expect to happen? --> ### Expected Behavior The record should be returned by the API <!-- What happened instead? --> ### Observed Behavior A 500 code Server Error is returned with the following message: > There was a problem with your request. Please contact an administrator. > The complete exception is provided below: > <class 'utilities.api.SerializerNotFound'> > Could not determine serializer for dcim.InterfaceTemplate with prefix 'Nested' This error has been verified when selecting object types of "power port template," "interface template," and "device bay template." It could be possible it affects all "template" object types. ### Additional Notes It will also throw errors when pulling the changelog in bulk via [/api/extras/object-changes/] if the results happen to have these specific changed_object_type values
adam added the type: bugstatus: accepted labels 2025-12-29 18:19:19 +01:00
adam closed this issue 2025-12-29 18:19:19 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2493