-
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
[BUG] Remote Finder unable to parse UTF-8 characters #2652
Comments
Yes, I expect changing to .load(encodigin='bytes') should fix this. Any chance you could test this? |
@piotr1212 I just tried out the branch you opened however, I'm seeing only the following from the info.log with no results being returned:
|
What is your remote finder? Another Graphite-web? Have any exceptions there? Do you see regressions with this branch (ie metrics with only ascii still work)? |
The remote finders are go-carbon carbonservers, and returning data in a pickle format. I'm able to see that it is responding to the find requests as expected from a tcpdump, without any error. As a test all data was purges and only sample test data which uses ascii only characters is being generated, however with this patch in place unfortunately no data is being able to be parsed from the carbonservers by graphite-web |
I confirmed what @jbradleynh was seeing, that the patch is a regression and produces no results for ascii only metrics. Switching to |
Describe the bug
When using the remote finder to look for metrics from multiple backends, any non ascii character results in an exception when trying to unpickle the response.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Be able to see all metrics present, including the ones with UTF-8 characters in their namespace
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context
This was tested on originally on v1.1.7, as well as on the master branch with the environment set for
UTF8_METRICS=true
, related to #2641Trying to expand the metric tree in the UI or trying to render this metric results in the following error
It may be the case that the some means to specify
encoding='bytes'
needs to be passed to:https://github.com/graphite-project/graphite-web/blob/master/webapp/graphite/util.py#L194
The text was updated successfully, but these errors were encountered: