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

Databricks Data Source Broken #4621

Closed
null-sleep opened this issue Feb 8, 2020 · 0 comments · Fixed by #4624
Closed

Databricks Data Source Broken #4621

null-sleep opened this issue Feb 8, 2020 · 0 comments · Fixed by #4624

Comments

@null-sleep
Copy link

null-sleep commented Feb 8, 2020

Issue Summary

Databricks data source does not work. The authorization token for Databricks data source needs to be converted into a byte string as it currently raises TypeError: a bytes-like object is required, not 'str'
Calling .encode() to transform to a byte string makes the data source work.

auth = base64.b64encode("token:" + password)
transport.setCustomHeaders({"Authorization": "Basic " + auth})

Steps to Reproduce

  1. Create a Databricks data source
  2. Run test connection and you will get the message: a bytes-like object is required, not 'str'

Any other info e.g. Why do you consider this to be a bug? What did you expect to happen instead?

Technical details:

  • Redash Version: master
  • Browser/OS: Chrome
  • How did you install Redash: Docker development environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants