-
Notifications
You must be signed in to change notification settings - Fork 95
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.sql.exc.RequestError: Error during request to server" with versions 2.6 onwards #169
Comments
Sorry for the late response here. I'm not able to reproduce this running any version since 2.5.0. The error you shared doesn't give much detail but I suspect it's a 404 of some kind, rather than a problem with the connector code. If you add this snippet to the quickstart example you will see the precise logging output from databricks-sql-connector which should give you a better sense of what is wrong: import logging, sys
logging.getLogger("databricks.sql").setLevel(logging.DEBUG)
logging.getLogger("databricks.sql").addHandler(logging.StreamHandler(sys.stdout)) For example, when I run the quickstart script with this snippet enabled I see the following in my console with connector version 2.7.0
|
I'm closing this for now but feel free to reopen if the issue persists. |
Hi, thanks for your response. I've reran the code with the logging and the exact error is still pretty opaque when using 2.7.0 :
If it is a 404 - can you advice on how I can debug this further? |
I've just read the 2.6.0 release notes, https://github.com/databricks/databricks-sql-python/releases/tag/v2.6.0: I'm running this code on a VM, using a proxy so I suspect this might be the root cause of this issue as version 2.5 still works for me. Reopening the issue as I'm still having errors, and you've asked for this in the release notes : ) |
Thanks for reopening and for more context! We received a community contribution #158 which fixes proxies again. It's not part of an official release (yet) but I've just moments ago pushed out Can you please Also, if it doesn't work please be sure to set your log level to DEBUG (the default is INFO) so we can see more of what's going on. |
I've installed that version, and now the code works as expected : )
I'm happy to reclose this issue, looks like it was a proxy issue after all! Thanks for your help, I look forward to the release next week : ) |
When running the quickstart example, I get errors initializing the connection unless I downgrade the package version to 2.5 .
With version 2.6 and above
Error Trace:
With downgraded version 2.5
Code works as expected
Environment
It's a pretty standard environment, but for reproducibility:
OS - Windows 10
conda.yml:
Fix
Is there a known fix for this issue? I'd like to use the latest version to enable features such as Azure OAuth.
Thanks
The text was updated successfully, but these errors were encountered: