You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When accessing presto behind a HTTPS proxy, this python sdk won't work when trying to following up the nextUri from query statement. E.g., after creating a query, when following statement:
After using server configuration option http-server.process-forwarded=true from trinodb/trino#3714 I don't have this problem anymore.
This case only happens when http-server.process-forwarded=false where it won't use the expect scheme when presto is behind a HTTPS proxy.
shawnzhu
changed the title
nextUri should be parsed instead of consumed directly
nextUri should be parsed instead of being consumed directly
Aug 1, 2020
What happend
When accessing presto behind a HTTPS proxy, this python sdk won't work when trying to following up the
nextUri
from query statement. E.g., after creating a query, when following statement:Notice that the
nextUri
does not starts with HTTPS.As a consequence, the python client will fail since it tries to use the value of this
nextUri
directly:presto-python-client/prestodb/client.py
Lines 337 to 340 in b87744e
Expected outcome
It should parse the value of
nextUri
then format it just like that for the statement url.The text was updated successfully, but these errors were encountered: