Cannot edit prefixes or ip addresses #103

Closed
opened 2025-12-29 15:32:54 +01:00 by adam · 10 comments
Owner

Originally created by @mhmsh on GitHub (Jun 30, 2016).

I get server error whenever i try to edit a prefix or ip address. Im running the lastest version upgraded from a 1.0.0. Error was also present in v1.0.0

Originally created by @mhmsh on GitHub (Jun 30, 2016). I get server error whenever i try to edit a prefix or ip address. Im running the lastest version upgraded from a 1.0.0. Error was also present in v1.0.0
adam added the type: bug label 2025-12-29 15:32:54 +01:00
adam closed this issue 2025-12-29 15:32:54 +01:00
Author
Owner

@mhmsh commented on GitHub (Jun 30, 2016):

Im thinking its because i accientally used a local caracter, like æøå. Could that be the reason?

@mhmsh commented on GitHub (Jun 30, 2016): Im thinking its because i accientally used a local caracter, like æøå. Could that be the reason?
Author
Owner

@mdlayher commented on GitHub (Jun 30, 2016):

@mhmsh can you provide the exact steps you used to make this problem occur?

@mdlayher commented on GitHub (Jun 30, 2016): @mhmsh can you provide the exact steps you used to make this problem occur?
Author
Owner

@augustocarlson commented on GitHub (Jun 30, 2016):

When I edit anything that has accentuation on it, I get the error below:

" Server Error

There was a problem with your request. This error has been logged and administrative staff have been notified. Please return to the home page and try again.
If you are responsible for this installation, please consider filing a bug report."

For example, site with the name: "São José".

@augustocarlson commented on GitHub (Jun 30, 2016): When I edit anything that has accentuation on it, I get the error below: " Server Error There was a problem with your request. This error has been logged and administrative staff have been notified. Please return to the home page and try again. If you are responsible for this installation, please consider filing a bug report." For example, site with the name: "São José".
Author
Owner

@jeremystretch commented on GitHub (Jul 1, 2016):

I tweaked the way the status message was generated upon creating/editing an object in 2829303. I'm now able to create, edit, and delete a site named São José with no problem. Please clone the develop branch and let us know if it's still a problem.

@jeremystretch commented on GitHub (Jul 1, 2016): I tweaked the way the status message was generated upon creating/editing an object in 2829303. I'm now able to create, edit, and delete a site named São José with no problem. Please clone the `develop` branch and let us know if it's still a problem.
Author
Owner

@jeremystretch commented on GitHub (Jul 1, 2016):

Going to close this one for now but please comment here or open a new issue if you find that this is still a problem.

@jeremystretch commented on GitHub (Jul 1, 2016): Going to close this one for now but please comment here or open a new issue if you find that this is still a problem.
Author
Owner

@mhmsh commented on GitHub (Jul 1, 2016):

Im still seeing issues with editing prefixes after changing to develop branch. Another symptom im seeing is that i cannot select a vlan when adding a prefix, the dropdown shows nothing.

UnicodeEncodeError at /ipam/prefixes/19/edit/
'ascii' codec can't encode character u'\xa0' in position 5: ordinal not in range(128)
Request Method: GET
Request URL: http://netdoc-01.corp.systemhosting.dk/ipam/prefixes/19/edit/
Django Version: 1.9.7
Exception Type: UnicodeEncodeError
Exception Value:
'ascii' codec can't encode character u'\xa0' in position 5: ordinal not in range(128)
Exception Location: /opt/netbox/netbox/ipam/models.py in display_name, line 370
Python Executable: /usr/bin/python
Python Version: 2.7.6
Python Path:
['/opt/netbox/netbox/netbox',
'/opt/netbox/netbox',
'/usr/bin',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages']
Server time: Fri, 1 Jul 2016 12:07:42 +0000
Unicode error hint

The string that could not be encoded/decoded was: Kunde LAN

@mhmsh commented on GitHub (Jul 1, 2016): Im still seeing issues with editing prefixes after changing to develop branch. Another symptom im seeing is that i cannot select a vlan when adding a prefix, the dropdown shows nothing. UnicodeEncodeError at /ipam/prefixes/19/edit/ 'ascii' codec can't encode character u'\xa0' in position 5: ordinal not in range(128) Request Method: GET Request URL: http://netdoc-01.corp.systemhosting.dk/ipam/prefixes/19/edit/ Django Version: 1.9.7 Exception Type: UnicodeEncodeError Exception Value: 'ascii' codec can't encode character u'\xa0' in position 5: ordinal not in range(128) Exception Location: /opt/netbox/netbox/ipam/models.py in display_name, line 370 Python Executable: /usr/bin/python Python Version: 2.7.6 Python Path: ['/opt/netbox/netbox/netbox', '/opt/netbox/netbox', '/usr/bin', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages'] Server time: Fri, 1 Jul 2016 12:07:42 +0000 Unicode error hint The string that could not be encoded/decoded was: Kunde LAN
Author
Owner

@augustocarlson commented on GitHub (Jul 1, 2016):

I tried to add a site it is now working.

The problem still persists with VLAN names. If I add the VLAN with accentuation in the name, I receive the error. Despite the error, the VLAN is successfully added. If I try to delete, I receive the error and the VLAN is not removed.
Using v1.0.8-dev

*update: When trying to edit an IP prefix, the error also occurs. In that case no accentuation is used.

@augustocarlson commented on GitHub (Jul 1, 2016): I tried to add a site it is now working. The problem still persists with VLAN names. If I add the VLAN with accentuation in the name, I receive the error. Despite the error, the VLAN is successfully added. If I try to delete, I receive the error and the VLAN is not removed. Using v1.0.8-dev *update: When trying to edit an IP prefix, the error also occurs. In that case no accentuation is used.
Author
Owner

@mhmsh commented on GitHub (Jul 7, 2016):

I still have issue in 1.1.0-dev

UnicodeEncodeError at /ipam/vlans/15/
'ascii' codec can't encode character u'\xa0' in position 5: ordinal not in range(128)
Request Method: GET
Request URL: http://netdoc-01.corp.systemhosting.dk/ipam/vlans/15/
Django Version: 1.9.7
Exception Type: UnicodeEncodeError
Exception Value:
'ascii' codec can't encode character u'\xa0' in position 5: ordinal not in range(128)
Exception Location: /opt/netbox/netbox/ipam/models.py in display_name, line 370
Python Executable: /usr/bin/python
Python Version: 2.7.6
Python Path:
['/opt/netbox-1.1.0-dev/netbox/netbox',
'/opt/netbox/netbox',
'/opt/netbox-1.1.0-dev/netbox',
'/usr/bin',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages']
Server time: Thu, 7 Jul 2016 07:05:22 +0000

@mhmsh commented on GitHub (Jul 7, 2016): I still have issue in 1.1.0-dev UnicodeEncodeError at /ipam/vlans/15/ 'ascii' codec can't encode character u'\xa0' in position 5: ordinal not in range(128) Request Method: GET Request URL: http://netdoc-01.corp.systemhosting.dk/ipam/vlans/15/ Django Version: 1.9.7 Exception Type: UnicodeEncodeError Exception Value: 'ascii' codec can't encode character u'\xa0' in position 5: ordinal not in range(128) Exception Location: /opt/netbox/netbox/ipam/models.py in display_name, line 370 Python Executable: /usr/bin/python Python Version: 2.7.6 Python Path: ['/opt/netbox-1.1.0-dev/netbox/netbox', '/opt/netbox/netbox', '/opt/netbox-1.1.0-dev/netbox', '/usr/bin', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages'] Server time: Thu, 7 Jul 2016 07:05:22 +0000
Author
Owner

@mhmsh commented on GitHub (Jul 7, 2016):

After re-populating the data it seems to be working.

Thanks

@mhmsh commented on GitHub (Jul 7, 2016): After re-populating the data it seems to be working. Thanks
Author
Owner

@augustocarlson commented on GitHub (Jul 7, 2016):

Hi all!

I started all from scratch with v1.1.0 and it is now working fine.

Thank you!

@augustocarlson commented on GitHub (Jul 7, 2016): Hi all! I started all from scratch with v1.1.0 and it is now working fine. Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#103