Skip to content
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

TypeError: the JSON object must be str #2

Open
0c0c0f opened this issue Aug 21, 2019 · 0 comments
Open

TypeError: the JSON object must be str #2

0c0c0f opened this issue Aug 21, 2019 · 0 comments

Comments

@0c0c0f
Copy link

0c0c0f commented Aug 21, 2019

The target response content:

<pre>
    Traceback (most recent call last):

File "/usr/hdp/3.1.0.0-78/superset/lib/python3.4/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/usr/hdp/3.1.0.0-78/superset/lib/python3.4/site-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/hdp/3.1.0.0-78/superset/lib/python3.4/site-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/hdp/3.1.0.0-78/superset/lib/python3.4/site-packages/flask/_compat.py", line 33, in reraise
raise value
File "/usr/hdp/3.1.0.0-78/superset/lib/python3.4/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/hdp/3.1.0.0-78/superset/lib/python3.4/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functionsrule.endpoint
File "/usr/hdp/3.1.0.0-78/superset/lib/python3.4/site-packages/superset/models/core.py", line 883, in wrapper
value = f(*args, **kwargs)
File "/usr/hdp/3.1.0.0-78/superset/lib/python3.4/site-packages/superset/utils.py", line 709, in wraps
return f(self, *args, **kwargs)
File "/usr/hdp/3.1.0.0-78/superset/lib/python3.4/site-packages/superset/views/core.py", line 1146, in import_dashboards
data = json.loads(f.stream.read(), object_hook=utils.decode_dashboards)
File "/usr/hdp/3.1.0.0-78/superset/lib/python3.4/json/init.py", line 312, in loads
s.class.name))
TypeError: the JSON object must be str, not 'bytes'

  </pre>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant