简体   繁体   English

如何绕过 spring 启动应用程序的组织代理

[英]How to bypass the organization proxy for a spring boot application

I have created a spring boot application.我创建了一个 spring 启动应用程序。 I am using a third party API class for my service response.我正在使用第三方 API class 进行服务响应。 In my controller I have created a GET method with query parameter and inside the method I am calling the service class. Inside the service class I am using the third party API (to get the response).在我的 controller 中,我创建了一个带有查询参数的GET方法,并在方法内部调用服务 class。在服务 class 中,我使用第三方 API(以获取响应)。 The problem here the third party API has one authentication API key to use there API call.这里的问题是第三方 API 有一个身份验证 API 密钥可以使用那里的 API 调用。 And when I am running the spring boot application and calling my API while connected to the VPN then it's throwing APIException:SocketTimeout .当我运行 spring 引导应用程序并在连接到 VPN 时调用我的 API 然后它抛出APIException:SocketTimeout But when I disconnect the VPN the response comes as expected.但是当我断开 VPN 时,响应如预期的那样出现。 Could anybody please suggest me how to overcome this issue.谁能建议我如何克服这个问题。 Or how should I bypass my.network proxy.或者我应该如何绕过 my.network 代理。

Thank You谢谢你

so this means that you have a.network issue.所以这意味着您遇到了网络问题。 Either the domain that you're accessing block your vpn region or from your vpn there is some limitations.您访问的域要么阻止您的 vpn 区域,要么从您的 vpn 访问有一些限制。 Could you please make a curl, and see where you're request got blocked?你能打一个 curl,看看你的请求在哪里被屏蔽了吗? If doesn't pass your vpn connection, please discuss with your.network admin to add it to some sort of whitelisting.如果没有通过您的 vpn 连接,请与您的网络管理员讨论将其添加到某种白名单中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM