You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/06/21 08:01:40 UTC

[GitHub] [incubator-superset] HuangJT commented on issue #6587: Can't upload CSV in Apache Superset

HuangJT commented on issue #6587: Can't upload CSV in Apache Superset
URL: https://github.com/apache/incubator-superset/issues/6587#issuecomment-504332365
 
 
   Had issue with the csv upload when the csv file has Chinese characters.It is fine when I replace Chinese characters with English.
   
   How to solve? 
   
           
   
   > Traceback (most recent call last):
   >   File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
   >     response = self.full_dispatch_request()
   >   File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1816, in full_dispatch_request
   >     return self.finalize_request(rv)
   >   File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1833, in finalize_request
   >     response = self.process_response(response)
   >   File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2114, in process_response
   >     self.session_interface.save_session(self, ctx.session, response)
   >   File "/usr/local/lib/python3.6/site-packages/flask/sessions.py", line 375, in save_session
   >     val = self.get_signing_serializer(app).dumps(dict(session))
   >   File "/usr/local/lib/python3.6/site-packages/itsdangerous.py", line 565, in dumps
   >     payload = want_bytes(self.dump_payload(obj))
   >   File "/usr/local/lib/python3.6/site-packages/itsdangerous.py", line 847, in dump_payload
   >     json = super(URLSafeSerializerMixin, self).dump_payload(obj)
   >   File "/usr/local/lib/python3.6/site-packages/itsdangerous.py", line 550, in dump_payload
   >     return want_bytes(self.serializer.dumps(obj))
   >   File "/usr/local/lib/python3.6/site-packages/flask/json/tag.py", line 296, in dumps
   >     return dumps(self.tag(value), separators=(',', ':'))
   >   File "/usr/local/lib/python3.6/site-packages/flask/json/__init__.py", line 179, in dumps
   >     rv = _json.dumps(obj, **kwargs)
   >   File "/usr/local/lib/python3.6/site-packages/simplejson/__init__.py", line 399, in dumps
   >     **kw).encode(obj)
   >   File "/usr/local/lib/python3.6/site-packages/simplejson/encoder.py", line 296, in encode
   >     chunks = self.iterencode(o, _one_shot=True)
   >   File "/usr/local/lib/python3.6/site-packages/simplejson/encoder.py", line 378, in iterencode
   >     return _iterencode(o, 0)
   >   File "/usr/local/lib/python3.6/site-packages/flask/json/__init__.py", line 81, in default
   >     return _json.JSONEncoder.default(self, o)
   >   File "/usr/local/lib/python3.6/site-packages/simplejson/encoder.py", line 273, in default
   >     o.__class__.__name__)
   > TypeError: Object of type UnicodeEncodeError is not JSON serializable
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org