-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
None ascii characters cause alias function exception? #1737
Comments
you can simply do these 2 things to resolve:
|
graphite-web cannot use Unicode characters in aliases [1] in the moment. The grafana json dashboard generator must therefore remove these characters to avoid rendering errors when a Freifunk node name uses umlauts. [1] graphite-project/graphite-web#1737
@deniszh the change mentioned by @pfctgeorge is OK to pull request? |
This is quite out of date now since the updates to add python 3.x support. |
|
Yes, it's out of date. It's resolved now. Sorry about that. Just close this issue. |
If use Chinese characters as alias of matrix, it will cause following error:
Graphite encountered an unexpected error while handling your request.
Please contact your site administrator if the problem persists.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/opt/graphite/webapp/graphite/render/views.py", line 71, in renderView
requestKey = hashRequest(request)
File "/opt/graphite/webapp/graphite/render/hashing.py", line 33, in hashRequest
return compactHash(normalizedParams)
File "/opt/graphite/webapp/graphite/render/hashing.py", line 46, in compactHash
hash.update(string)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 178-179: ordinal not in range(128)
The text was updated successfully, but these errors were encountered: