java - Facing connection timeout when trying to connect to bigquery api when transport options with proxy was provided - Stack O

I already have some code in place which is working fine.What it does is create a bigquery service usin

I already have some code in place which is working fine. What it does is create a bigquery service using Bigquery options builder. This works fine. No explicit transport options are set here.

Problematic code: We have a squid proxy server in place and i wanted to try connecting to bigquery via proxy as well.

I set two environment props for proxy host and port. And when they are set.. I am explicitly setting transport options using NetHttpTransport with proxy set. The code works fine(connects to BQ and gets the job done) when i give the HTTP port.

But when i try to give the HTTPS port, its not working and giving connection timeout..

What would be the reason?

I tried adding the proxy ceetificate to keystore and then set it to the SSLContext while building NetHttpTransport.. But it didnt work and gave me PKIX exception

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744592148a4582672.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信