abstract public class GoogleDriveRequest extends StorageApiRequest {
public static final int PORT = 443; protected static final String BASE_PATH = "/drive/v3"; protected static final String FOLDER_MIME_TYPE = "application/vnd.google-apps.folder"; protected static final String HOST = "https://www.googleapis.com";
protected JsonObject json = new JsonObject();
GoogleDriveRequest(Vertx vertx) {
client = vertx.createHttpClient(new HttpClientOptions().setSsl(true));
}}
request = client.get(PORT,HOST,path);
java.net.SocketException: Network is unreachable: www.googleapis.com/2a00:1450:400c:c02:0:0:0:5f:443
at sun.nio.ch.Net.connect0(Native Method) ~[?:1.8.0_101]
at sun.nio.ch.Net.connect(Net.java:454) ~[?:1.8.0_101]
at sun.nio.ch.Net.connect(Net.java:446) ~[?:1.8.0_101]
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:648) ~[?:1.8.0_101]
at io.netty.channel.socket.nio.NioSocketChannel.doConnect(NioSocketChannel.java:315) ~[InhanceCloudAPI-runnable.jar:?]
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.connect(AbstractNioChannel.java:256) [InhanceCloudAPI-runnable.jar:?]
at io.netty.channel.DefaultChannelPipeline$HeadContext.connect(DefaultChannelPipeline.java:1246) [InhanceCloudAPI-runnable.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:531) [InhanceCloudAPI-runnable.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:516) [InhanceCloudAPI-runnable.jar:?]
at io.netty.handler.ssl.SslHandler.connect(SslHandler.java:442) [InhanceCloudAPI-runnable.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:531) [InhanceCloudAPI-runnable.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:516) [InhanceCloudAPI-runnable.jar:?]
at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.connect(CombinedChannelDuplexHandler.java:487) [InhanceCloudAPI-runnable.jar:?]
at io.netty.channel.ChannelOutboundHandlerAdapter.connect(ChannelOutboundHandlerAdapter.java:47) [InhanceCloudAPI-runnable.jar:?]
at io.netty.channel.CombinedChannelDuplexHandler.connect(CombinedChannelDuplexHandler.java:288) [InhanceCloudAPI-runnable.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:531) [InhanceCloudAPI-runnable.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:516) [InhanceCloudAPI-runnable.jar:?]
at io.netty.channel.ChannelDuplexHandler.connect(ChannelDuplexHandler.java:50) [InhanceCloudAPI-runnable.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:531) [InhanceCloudAPI-runnable.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:516) [InhanceCloudAPI-runnable.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:498) [InhanceCloudAPI-runnable.jar:?]
at io.netty.channel.DefaultChannelPipeline.connect(DefaultChannelPipeline.java:964) [InhanceCloudAPI-runnable.jar:?]
at io.netty.channel.AbstractChannel.connect(AbstractChannel.java:248) [InhanceCloudAPI-runnable.jar:?]
at io.netty.bootstrap.Bootstrap$3.run(Bootstrap.java:251) [InhanceCloudAPI-runnable.jar:?]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:339) [InhanceCloudAPI-runnable.jar:?]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:393) [InhanceCloudAPI-runnable.jar:?]
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:742) [InhanceCloudAPI-runnable.jar:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
--
You received this message because you are subscribed to a topic in the Google Groups "vert.x" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vertx/7xTo_a_lOWk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/a414383f-a295-4501-ac83-ffee309fccf3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/02c93c5e-6dfe-472e-9b3e-bb770b9b9c5c%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/48a271b4-ca01-481c-9054-538d43d781db%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "vert.x" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vertx/7xTo_a_lOWk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/22634b13-b0a9-480a-93ad-aff4f5b582ea%40googlegroups.com.
I found this flag, and so far haven’t seen the issue repeat
-Djava.net.preferIPv6Addresses=false
On 4 Aug 2016, at 12:34, Alexander Lehmann <alex...@gmail.com> wrote:
This means that the dns request still gets an ipv6 address, but the local machine doesn't have ipv6 support.
I am not completely sure how vert.x handles the ipv6/ipv4 difference, maybe that is a bug (or the prefer ipv4 option is not available).
I will take a look at the source code, and I could get back to you some time tonight.
On Thursday, August 4, 2016 at 11:28:27 AM UTC+2, Patrick Conway wrote:I disabled ipv6 on the vm...and set the java prefer ipv4 flagstill getting the error but it has changed slightlyto--
You received this message because you are subscribed to a topic in the Google Groups "vert.x" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vertx/7xTo_a_lOWk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vertx+unsubscribe@googlegroups.com.
-Djava.net.preferIPv6Addresses=falseDid not resolve the issue either
On Thursday, August 4, 2016 at 12:35:57 PM UTC+1, Patrick Conway wrote:
I found this flag, and so far haven’t seen the issue repeat
-Djava.net.preferIPv6Addresses=false
On 4 Aug 2016, at 12:34, Alexander Lehmann <alex...@gmail.com> wrote:
This means that the dns request still gets an ipv6 address, but the local machine doesn't have ipv6 support.
I am not completely sure how vert.x handles the ipv6/ipv4 difference, maybe that is a bug (or the prefer ipv4 option is not available).
I will take a look at the source code, and I could get back to you some time tonight.
On Thursday, August 4, 2016 at 11:28:27 AM UTC+2, Patrick Conway wrote:I disabled ipv6 on the vm...and set the java prefer ipv4 flagstill getting the error but it has changed slightlyto--
You received this message because you are subscribed to a topic in the Google Groups "vert.x" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vertx/7xTo_a_lOWk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vertx+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/744edead-3832-4301-b41f-ce29e97c7033%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to vertx+unsubscribe@googlegroups.com.
static int connect(ProtocolFamily var0, FileDescriptor var1, InetAddress var2, int var3) throws IOException {
boolean var4 = isIPv6Available() && var0 != StandardProtocolFamily.INET;
return connect0(var4, var1, var2, var3);
}
static boolean isIPv6Available() {
if(!checkedIPv6) {
isIPv6Available = isIPv6Available0();
checkedIPv6 = true;
}
return isIPv6Available;
}
private static native boolean isIPv6Available0();
To unsubscribe from this group and all its topics, send an email to vertx+unsubscribe@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/4c8046e5-a818-4370-8268-5792cb5c0ddc%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/93dc38a0-d32a-4a21-9d02-520f6fe9abee%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/d7a1f7f4-79c6-4775-b8b7-5abf3d1c68cb%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/3d66fe44-99de-43c0-b82e-d4ddd94fb0fc%40googlegroups.com.