question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to use JDBC driver with proxyHost with dashes

See original GitHub issue

Whenever I try to initialize JDBC driver with proxy settings as part of the Connection String, I am getting an error:

No suitable driver found for jdbc:snowflake://myaccount.snowflakecomputing.com:443?CLIENT_SESSION_KEEP_ALIVE=true&db=TEST_DB&proxyHost=some-host-with-dashes.com&proxyPort=1234&schema=PUBLIC&useProxy=true&warehouse=TEST_WH

When proxyHost doesn’t include dashes or any other special characters, the driver initializes but fails on network error. An example proxyHost that doesn’t fail: jdbc:snowflake://myaccount.snowflakecomputing.com:443?CLIENT_SESSION_KEEP_ALIVE=true&db=TEST_DB&proxyHost=localhost&proxyPort=1234&schema=PUBLIC&useProxy=true&warehouse=TEST_WH.

Any idea what’s going on?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
smtakedacommented, Jun 24, 2019

We are working on the fix.

On Mon, Jun 24, 2019 at 6:15 AM Moty Michaely notifications@github.com wrote:

@smtakeda https://github.com/smtakeda Hey, any updates on this? Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/snowflakedb/snowflake-jdbc/issues/135?email_source=notifications&email_token=AABJMZKWZMYOWBTQN37BIXDP4DCFZA5CNFSM4HYYN3W2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYM4FNA#issuecomment-505004724, or mute the thread https://github.com/notifications/unsubscribe-auth/AABJMZNFPMQCUC6KAML7QITP4DCFZANCNFSM4HYYN3WQ .

– Shige Takeda smtakeda@gmail.com

1reaction
motymichaelycommented, Jun 19, 2019

@smtakeda and @mknister Thanks for your comments!

Specifying a Proxy Server by Setting JVM Options won’t work for us as we are running several workloads under the same JVM process, and setting the proxy on JVM level will route all traffic through the proxy. We only need the Snowflake connection go through the proxy.

Our use case is whitelisting a single IP in our Snowflake Security policy by having the connection go through a proxy. We tried sorting this out using an SSH tunnel but this doesn’t work due to certificate mismatch.

Currently we are working this around by having a dedicated NAT gateway to have single IP but we’d like to avoid having a dedicated NAT gateway for this purpose. I hope this makes sense.

@smtakeda - Any ETA for a fix?

Thanks a bunch!

Read more comments on GitHub >

github_iconTop Results From Across the Web

DataSource Connections Fail With Error " [SQLServer JDBC ...
DataSource Connections Fail With Error " [SQLServer JDBC Driver]Failure while trying to establish connection to proxy service.
Read more >
JDBC driver encountered communication error when ...
I have driver class name as net.snowflake.client.jdbc. ... When executing sql using this connection, I got the following error in the nifi app...
Read more >
JDBC Driver Connection Parameter Reference
This topic lists the connection parameters that you can use to configure the JDBC driver. You can set these parameters in the JDBC...
Read more >
MySQL JDBC driver failed to create schema with hyphen
1 Answer 1 ... In MySQL, the dash (hyphen) character is not a permitted character in an unquoted identifier. ... To use the...
Read more >
I can't connect SonarQube with PostgreSQL - Sonar Community
Hello, I have installed SonarQube on my Windows 10 laptop and using the embedded database it works perfectly but when i try connecting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found