-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Plotly stream + corporate proxy with basic auth #1129
Comments
Hi @imscaradh , thanks for reaching out and I'm glad you got things working. @scjody do you have any thoughts on this scenario, and whether something in plotly.py should be changed? |
@jonmmease It does look like we only use the hostname and port extracted from the The hostname and port are extracted in plotly.py/plotly/plotly/chunked_requests/chunked_request.py Lines 79 to 103 in dbb79e4
plotly.py/plotly/plotly/chunked_requests/chunked_request.py Lines 128 to 138 in dbb79e4
This could be extended to support performing basic auth with the proxy. |
Hi @jonmmease , I forked plotly.py and committed my changes here: 4c38dc5 I'm not sure this is in your interest. If it is, I will be happy to create a PR. |
Hi @imscaradh , these changes look reasonable and generally useful so a PR would be great! I don't have a way to test it personally, but I'll reach out to some other folks to help out there. Thanks! |
Done in #1133. Thanks @imscaradh |
I am trying to use Plotly streaming functionality behind a corporate proxy with basic auth. Despite the comprehensible instructions at https://plot.ly/python/proxy-configuration/ I didn't get Plotly up and running. After digging around in my system configuration I noticed that only proxy servername and port is respected while setting up the http tunnel:
plotly.py/plotly/plotly/chunked_requests/chunked_request.py
Line 138 in dbb79e4
Was this intentionally implemented in this way? As soon as I add the
Proxy-Authorization
header to the tunnel configuration everything works like expected.The text was updated successfully, but these errors were encountered: