kovihq / sqltools-athena-driver

AWS Athena Driver for VSCode Plugin SQLTools
MIT License
6 stars 12 forks source link

Using http_proxy from the env within the plugin #38

Open adbdkb opened 1 year ago

adbdkb commented 1 year ago

I am trying to set-up a VSCode connection using SQLTools to connect to Athena. This is connected to issue # 36 ( https://github.com/kovihq/sqltools-athena-driver/issues/36 )

This is my set-up

Athena-in-VSCode

I have http_proxy defined and also tried setting up proxy in VSCode - but get the same error

VSCode_Proxy_settings

When working with a colleague of mine when he also was trying to connect - we came to this conclusion

it is definately a proxy issue though, you wont be able to connect to the athena endpoint, without a hardcoded proxy in VScode, and that would explain all 3 scenarios: 1 - off network (no proxy needed) works, 2 - on-network terminal (proxy configured) works, 3 - on-network vscode, cannot conenct to the Athena endpoint

He also looked at the extension code and said 'ask for the plugin developer team to use http_proxy settings from VSCode'

adbdkb commented 1 year ago

Sorry, pressed submit too soon. Is is possible to add it to the extension, so it could be used when a proxy needs to be defined?

Thank you