配置代理访问后,无法使用https
g9420 opened this issue · 0 comments
g9420 commented
配置代理代码
clientConfig.proxyHost = config.get("endpoint").asText()
clientConfig.proxyPort = config.get("port").asInt()
默认的https请求方式报错,设置 clientConfig.protocol = Protocol.HTTP
后报错消失
报错日志如下
[ErrorCode]: BadRequest
[RequestId]: 64B12C9E7016F73537DCF587
[HostId]: airbyte-oss-source-test.oss-cn-beijing.aliyuncs.com
[ResponseError]:
<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>BadRequest</Code>
<Message>Your browser sent a request that this server could not understand.</Message>
<RequestId>64B12C9E7016F73537DCF587</RequestId>
<HostId>airbyte-oss-source-test.oss-cn-beijing.aliyuncs.com</HostId>
</Error>
2023-07-14 11:08:14 ERROR i.a.i.b.s.SshWrappedSource(read):76 - Exception occurred while getting the delegate read iterator, closing SSH tunnel
com.aliyun.oss.OSSException: Your browser sent a request that this server could not understand.
[ErrorCode]: BadRequest
[RequestId]: 64B12C9E7016F73537DCF587
[HostId]: airbyte-oss-source-test.oss-cn-beijing.aliyuncs.com
[ResponseError]:
<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>BadRequest</Code>
<Message>Your browser sent a request that this server could not understand.</Message>
<RequestId>64B12C9E7016F73537DCF587</RequestId>
<HostId>airbyte-oss-source-test.oss-cn-beijing.aliyuncs.com</HostId>
</Error>
at com.aliyun.oss.common.utils.ExceptionFactory.createOSSException(ExceptionFactory.java:103) ~[aliyun-sdk-oss-3.15.1.jar:?]
at com.aliyun.oss.internal.OSSErrorResponseHandler.handle(OSSErrorResponseHandler.java:72) ~[aliyun-sdk-oss-3.15.1.jar:?]
at com.aliyun.oss.common.comm.ServiceClient.handleResponse(ServiceClient.java:259) ~[aliyun-sdk-oss-3.15.1.jar:?]
at com.aliyun.oss.common.comm.ServiceClient.sendRequestImpl(ServiceClient.java:142) ~[aliyun-sdk-oss-3.15.1.jar:?]
at com.aliyun.oss.common.comm.ServiceClient.sendRequest(ServiceClient.java:71) ~[aliyun-sdk-oss-3.15.1.jar:?]
at com.aliyun.oss.internal.OSSOperation.send(OSSOperation.java:134) ~[aliyun-sdk-oss-3.15.1.jar:?]
at com.aliyun.oss.internal.OSSOperation.doOperation(OSSOperation.java:192) ~[aliyun-sdk-oss-3.15.1.jar:?]
at com.aliyun.oss.internal.OSSOperation.doOperation(OSSOperation.java:153) ~[aliyun-sdk-oss-3.15.1.jar:?]
at com.aliyun.oss.internal.OSSBucketOperation.listObjects(OSSBucketOperation.java:337) ~[aliyun-sdk-oss-3.15.1.jar:?]
at com.aliyun.oss.OSSClient.listObjects(OSSClient.java:538) ~[aliyun-sdk-oss-3.15.1.jar:?]
at io.airbyte.integrations.source.oss_ali.OssAliSource$read$1.fetchNextPage(OssAliSource.kt:106) ~[main/:?]
at io.airbyte.integrations.source.oss_ali.OssAliSource$read$1.<init>(OssAliSource.kt:102) ~[main/:?]
at io.airbyte.integrations.source.oss_ali.OssAliSource.read(OssAliSource.kt:100) ~[main/:?]
at io.airbyte.integrations.base.ssh.SshWrappedSource.read(SshWrappedSource.java:74) ~[main/:?]
at io.airbyte.integrations.source.oss_ali.AliSshWrappedSource.read(AliSshWrappedSource.java:57) ~[main/:?]
at io.airbyte.integrations.base.IntegrationRunner.runInternal(IntegrationRunner.java:160) ~[main/:?]
at io.airbyte.integrations.base.IntegrationRunner.run(IntegrationRunner.java:120) ~[main/:?]
at io.airbyte.integrations.source.oss_ali.OssAliSourceKt.main(OssAliSource.kt:174) ~[main/:?]
2023-07-14 11:08:14 ERROR i.a.i.b.AirbyteExceptionHandler(uncaughtException):26 - Something went wrong in the connector. See the logs for more details.
com.aliyun.oss.OSSException: Your browser sent a request that this server could not understand.
[ErrorCode]: BadRequest
[RequestId]: 64B12C9E7016F73537DCF587
[HostId]: airbyte-oss-source-test.oss-cn-beijing.aliyuncs.com
[ResponseError]:
<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>BadRequest</Code>
<Message>Your browser sent a request that this server could not understand.</Message>
<RequestId>64B12C9E7016F73537DCF587</RequestId>
<HostId>airbyte-oss-source-test.oss-cn-beijing.aliyuncs.com</HostId>
</Error>
at com.aliyun.oss.common.utils.ExceptionFactory.createOSSException(ExceptionFactory.java:103) ~[aliyun-sdk-oss-3.15.1.jar:?]
at com.aliyun.oss.internal.OSSErrorResponseHandler.handle(OSSErrorResponseHandler.java:72) ~[aliyun-sdk-oss-3.15.1.jar:?]
at com.aliyun.oss.common.comm.ServiceClient.handleResponse(ServiceClient.java:259) ~[aliyun-sdk-oss-3.15.1.jar:?]
at com.aliyun.oss.common.comm.ServiceClient.sendRequestImpl(ServiceClient.java:142) ~[aliyun-sdk-oss-3.15.1.jar:?]
at com.aliyun.oss.common.comm.ServiceClient.sendRequest(ServiceClient.java:71) ~[aliyun-sdk-oss-3.15.1.jar:?]
at com.aliyun.oss.internal.OSSOperation.send(OSSOperation.java:134) ~[aliyun-sdk-oss-3.15.1.jar:?]
at com.aliyun.oss.internal.OSSOperation.doOperation(OSSOperation.java:192) ~[aliyun-sdk-oss-3.15.1.jar:?]
at com.aliyun.oss.internal.OSSOperation.doOperation(OSSOperation.java:153) ~[aliyun-sdk-oss-3.15.1.jar:?]
at com.aliyun.oss.internal.OSSBucketOperation.listObjects(OSSBucketOperation.java:337) ~[aliyun-sdk-oss-3.15.1.jar:?]
at com.aliyun.oss.OSSClient.listObjects(OSSClient.java:538) ~[aliyun-sdk-oss-3.15.1.jar:?]
at io.airbyte.integrations.source.oss_ali.OssAliSource$read$1.fetchNextPage(OssAliSource.kt:106) ~[main/:?]
at io.airbyte.integrations.source.oss_ali.OssAliSource$read$1.<init>(OssAliSource.kt:102) ~[main/:?]
at io.airbyte.integrations.source.oss_ali.OssAliSource.read(OssAliSource.kt:100) ~[main/:?]
at io.airbyte.integrations.base.ssh.SshWrappedSource.read(SshWrappedSource.java:74) ~[main/:?]
at io.airbyte.integrations.source.oss_ali.AliSshWrappedSource.read(AliSshWrappedSource.java:57) ~[main/:?]
at io.airbyte.integrations.base.IntegrationRunner.runInternal(IntegrationRunner.java:160) ~[main/:?]
at io.airbyte.integrations.base.IntegrationRunner.run(IntegrationRunner.java:120) ~[main/:?]
at io.airbyte.integrations.source.oss_ali.OssAliSourceKt.main(OssAliSource.kt:174) ~[main/:?]