Duplicate "Custom fields" model found #4829

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

Originally created by @bitcollector1 on GitHub (Apr 26, 2021).

NetBox version

v2.11

Python version

3.8

Steps to Reproduce

When running commands from jupyter notebook I get the warning that "Duplicate "Custom fields" model found". Curious if I can find some help to get rid of this warning. Everything seems to work but I was hoping to get some input on what I'm seeing.....so maybe not really a bug.....but I did create custom data fields so figured I'd post.

from halutz.client import Client
from requests.sessions import Session
import json
import warnings
warnings.filterwarnings('ignore')

my_session = Session()
my_session.headers['Authorization'] = "Token xxxxxxxxxxxxxxxxxxxxxxxxx"
my_api_url = 'https://netdevbox.xxx.xxx.com'
my_api_doc_url = my_api_url + "/api/docs?format=openapi"

my_session.verify = False

client = Client(server_url=my_api_url,
origin_spec=my_session.get(my_api_doc_url).json(),
session=my_session)

Expected Behavior

I did not expect to see the Duplicate Custom Fields model found.

Observed Behavior

Saw the following error:

Screen Shot 2021-04-26 at 1 48 01 PM

Originally created by @bitcollector1 on GitHub (Apr 26, 2021). ### NetBox version v2.11 ### Python version 3.8 ### Steps to Reproduce When running commands from jupyter notebook I get the warning that "Duplicate "Custom fields" model found". Curious if I can find some help to get rid of this warning. Everything seems to work but I was hoping to get some input on what I'm seeing.....so maybe not really a bug.....but I did create custom data fields so figured I'd post. from halutz.client import Client from requests.sessions import Session import json import warnings warnings.filterwarnings('ignore') my_session = Session() my_session.headers['Authorization'] = "Token xxxxxxxxxxxxxxxxxxxxxxxxx" my_api_url = 'https://netdevbox.xxx.xxx.com' my_api_doc_url = my_api_url + "/api/docs?format=openapi" my_session.verify = False client = Client(server_url=my_api_url, origin_spec=my_session.get(my_api_doc_url).json(), session=my_session) ### Expected Behavior I did not expect to see the Duplicate Custom Fields model found. ### Observed Behavior Saw the following error: ![Screen Shot 2021-04-26 at 1 48 01 PM](https://user-images.githubusercontent.com/50723251/116148795-36d27700-a696-11eb-9e1d-4352004352d2.png)
adam added the type: bug label 2025-12-29 19:21:01 +01:00
adam closed this issue 2025-12-29 19:21:01 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4829