redash icon indicating copy to clipboard operation
redash copied to clipboard

Query execution fails if data source name has unicode characters

Open arikfr opened this issue 10 years ago • 6 comments

UnicodeEncodeError: 'ascii' codec can't encode characters in position 7-17: ordinal not in range(128)
  File "celery/app/trace.py", line 240, in trace_task
    R = retval = fun(*args, **kwargs)
  File "redash/tasks.py", line 31, in __call__
    return super(BaseTask, self).__call__(*args, **kwargs)
  File "celery/app/trace.py", line 437, in __protected_call__
    return self.run(*args, **kwargs)
  File "redash/tasks.py", line 292, in execute_query
    with statsd_client.timer('query_runner.{}.{}.run_time'.format(data_source.type, data_source.name)):

arikfr avatar Mar 08 '16 13:03 arikfr

If the user name also has ascii characters, the query is also not performed. My name is João and I was able to run a few minutes without anything to get the accent of my name.

:+1:

joaoleite avatar May 21 '16 05:05 joaoleite

I'm pretty sure the issue with unicode in user's name was fixed. What version of Redash do you have? On May 21, 2016 8:05 AM, "joaoleite" [email protected] wrote:

If the user name also has ascii characters, the query is also not performed. My name is João and I was able to run a few minutes without anything to get the accent of my name.

👍

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/getredash/redash/issues/905#issuecomment-220758955

arikfr avatar May 21 '16 05:05 arikfr

I am using the version last that was in the docker a few days ago. When it was fixed? What PR? I can see if I find this line.

Thank you

joaoleite avatar May 21 '16 05:05 joaoleite

@arikfr last updated version of the docker image is different from the latest marking the image docker. I think that's why I picked up a version 20 days ago, right?

My version is 0.10.0+b1774 the latest version...

Look: https://hub.docker.com/r/redash/redash/tags/

Through releases you will updating the latest version?

joaoleite avatar May 21 '16 17:05 joaoleite

It's this line, but maybe you have a different issue. Can you share logs of the error?

As for the Docker version: latest tag always marks the latest stable version, which is currently 0.10.1 (and was 0.10.0 when you posted your comment). Version 0.11.0 is still in progress.

arikfr avatar May 23 '16 12:05 arikfr

Apparently this piece of code doesn't exist anymore. Closing.

arikfr avatar May 31 '16 07:05 arikfr