Hi team,

I wasn't able to connect to Ads API while executing 
ListAccessibleCustomersResponse accessibleCustomers = customerServiceClient.
listAccessibleCustomers(ListAccessibleCustomersRequest.newBuilder().build
()); via SOCKS proxy (request hangs for about 1 hour) and got following 
exception from logs:
12:06:28 PM web.1 |  Mar 25, 2022 12:06:28 PM 
io.grpc.netty.shaded.io.grpc.netty.Utils getByteBufAllocator
12:06:28 PM web.1 |  FINE: Using custom allocator: forceHeapBuffer=false, 
defaultPreferDirect=true
12:06:28 PM web.1 |  Mar 25, 2022 12:06:28 PM 
io.grpc.netty.shaded.io.grpc.netty.Utils createByteBufAllocator
12:06:28 PM web.1 |  FINE: Creating allocator, preferDirect=true
12:06:28 PM web.1 |  Mar 25, 2022 12:06:28 PM 
io.grpc.netty.shaded.io.grpc.netty.Utils createByteBufAllocator
12:06:28 PM web.1 |  FINE: Forcing maxOrder=8
12:06:29 PM web.1 |  Mar 25, 2022 12:06:29 PM 
io.grpc.netty.shaded.io.grpc.netty.Utils getByteBufAllocator
12:06:29 PM web.1 |  FINE: Using custom allocator: forceHeapBuffer=false, 
defaultPreferDirect=true
...
1:06:17 PM web.1 |  INFO: io.grpc.StatusRuntimeException: UNAVAILABLE: io 
exception
1:06:17 PM web.1 |  Channel Pipeline: 
[HttpProxyHandler$HttpClientCodecWrapper#0, HttpProxyHandler#0, 
ProtocolNegotiators$ProxyProtocolNegotiationHandler#0, 
WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0]

When I disable sock proxy configuration, the connection was established 
successfully and able to retrieve the results.

Here's the snippet code that setup the SOCKS proxy protocol:
System.setProperty("socksNonProxyHosts", socksNonProxyHost);
URI proxyUri = new URI(socksProxy);
String proxyHost = proxyUri.getHost();
System.setProperty("socksProxyHost", proxyHost);
if (proxyUri.getPort() > 0) {
String proxyPort = "" + proxyUri.getPort();
System.setProperty("socksProxyPort", proxyPort);
}
if (proxyUri.getUserInfo() != null) {
String username = proxyUri.getUserInfo().split(":")[0];
String password = proxyUri.getUserInfo().split(":")[1];
Authenticator.setDefault(new ProxyAuth(username, password))
}

Does the library suppose to be working using Socks proxy? If yes, is there 
any workaround that I can implement on my end to resolve the issue? Thank 
you
--Krishna

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/36867bb6-9870-4d5b-b226-ac1252f1f5f5n%40googlegroups.com.

Reply via email to