Replies: 9 comments
-
Hi,
Thanks for reporting this.
Could you maybe enable debug mode?
(In the netbox config file "Debug=True")
Then you should see some more info.
Please disable it again after you got the error message.
If you don't feel comfortable enabling debug mode I will try to reproduce it with some more sample data.
…________________________________
From: maxzapp ***@***.***>
Sent: Friday, September 9, 2022 6:11:12 PM
To: mattieserver/netbox-topology-views ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [mattieserver/netbox-topology-views] Server Error after placing devices on the view (Issue #152)
Hi,
i am running v3.3.2 and your actual plugin. After creating the custom field coordinates for all devices i start to shuffle all my devices in a more logical way eg. sort them by floor (custom field). I decided to create for each floor a custom link locatet to dcim-site to get quick access. During shuffeling the second floor (moste devices are there) i run into the error below. Now i cannot acces "Plugins-Topology Views" anymore.
My first created custom-link to an other floor is still working (devices can be moved, filters are available)
Need help to get back to normal access via Plugins-Topology Views link.
=======================
Server Error
There was a problem with your request. Please contact an administrator.
The complete exception is provided below:
<class 'ValueError'>
invalid literal for int() with base 10: 'None'
Python version: 3.8.10
NetBox version: 3.3.2
—
Reply to this email directly, view it on GitHub<#152>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAXITDB2DIOTPSV2P45PHNDV5NOSBANCNFSM6AAAAAAQI2CLHQ>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi I set Debug=True . I have to "clean" the log and I cannot post it open here, can I send it to you direct? |
Beta Was this translation helpful? Give feedback.
-
You should see something like this: https://i.stack.imgur.com/TJE6q.png |
Beta Was this translation helpful? Give feedback.
-
Hi here is the traceback: [REDACTED] |
Beta Was this translation helpful? Give feedback.
-
hmm, will try to reproduce this |
Beta Was this translation helpful? Give feedback.
-
I was clicking the link copy and past view and copied it here, was it wrong? |
Beta Was this translation helpful? Give feedback.
-
Hi, my quick workaround solution was to select all devices in netbox I was working in that situation and set the coordinates to zero. Now the plug-in is available as normal. |
Beta Was this translation helpful? Give feedback.
-
Maby this will help you: Environment: Request Method: GET Django Version: 4.0.7 Traceback (most recent call last): Exception Type: ValueError at /plugins/netbox_topology_views/ |
Beta Was this translation helpful? Give feedback.
-
The error states that it is not possible to treat or convert an empty value as integer. My first guess is that you set the wrong type for "coordinates". It has to be "Text" and not "Integer" (see docs). My second guess is that you have one or more NULL values in the custom field "coordinates" and/or your custom field for the floor. Double check your custom link URL aswell. You might want to check all values at the devices view. You need to make the column visible first by clicking "Configure Table". You are also able to bulk edit the coordinates field at the devices view. Have you tried to use the plugin directly after creating the custom field "Coordinates" or only after all changes have been made? Anyway, doesn't seem to be a bug for me but an individual issue. |
Beta Was this translation helpful? Give feedback.
-
Hi,
i am running v3.3.2 and your actual plugin. After creating the custom field coordinates for all devices i start to shuffle all my devices in a more logical way eg. sort them by floor (custom field). I decided to create for each floor a custom link locatet to dcim-site to get quick access. During shuffeling the second floor (moste devices are there) i run into the error below. Now i cannot acces "Plugins-Topology Views" anymore.
My first created custom-link to an other floor is still working (devices can be moved, filters are available)
Need help to get back to normal access via Plugins-Topology Views link.
=======================
Server Error
There was a problem with your request. Please contact an administrator.
The complete exception is provided below:
<class 'ValueError'>
invalid literal for int() with base 10: 'None'
Python version: 3.8.10
NetBox version: 3.3.2
Beta Was this translation helpful? Give feedback.
All reactions