question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid argument deep in netty code

See original GitHub issue

I recently started making a new request in my code, and I am getting a strange error when trying to connect. It might be a problem in my code, though I suspect the recent Endpoint changes a little too, but hard to work out what the problem might be if it’s in my code since it’s very deep and has an IPv6 address which I definitely don’t create or reference anywhere. Any quick thoughts on it? Presumably even if it’s a problem in my calling code, armeria must be missing an argument check of its own somewhere.

java.util.concurrent.CompletionException: io.netty.channel.AbstractChannel$AnnotatedConnectException: connect(..) failed: Invalid argument: www.googleapis.com/2607:f8b0:4001:c14:0:0:0:5f:443
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:331)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:346)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:632)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
at com.linecorp.armeria.common.HttpMessageAggregator.fail(HttpMessageAggregator.java:161)
at com.linecorp.armeria.common.HttpMessageAggregator.accept(HttpMessageAggregator.java:114)
at com.linecorp.armeria.common.HttpMessageAggregator.accept(HttpMessageAggregator.java:36)
at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404)
at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:309)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: connect(..) failed: Invalid argument: www.googleapis.com/2607:f8b0:4001:c14:0:0:0:5f:443
at io.netty.channel.unix.Errors.throwConnectException(Errors.java:112)
at io.netty.channel.unix.Socket.connect(Socket.java:257)
at io.netty.channel.epoll.AbstractEpollChannel.doConnect0(AbstractEpollChannel.java:732)
at io.netty.channel.epoll.AbstractEpollChannel.doConnect(AbstractEpollChannel.java:717)
at io.netty.channel.epoll.AbstractEpollChannel$AbstractEpollUnsafe.connect(AbstractEpollChannel.java:559)
at io.netty.channel.DefaultChannelPipeline$HeadContext.connect(DefaultChannelPipeline.java:1366)
at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:545)
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:530)
at com.linecorp.armeria.client.HttpClientPipelineConfigurator.connect(HttpClientPipelineConfigurator.java:198)
at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:545)
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:530)
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:512)
at io.netty.channel.DefaultChannelPipeline.connect(DefaultChannelPipeline.java:1024)
at io.netty.channel.AbstractChannel.connect(AbstractChannel.java:259)
at io.netty.bootstrap.Bootstrap$3.run(Bootstrap.java:252)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
trustincommented, Apr 26, 2018

OK to close?

0reactions
anuraagacommented, Apr 18, 2018

I have sent https://github.com/netty/netty/pull/7875 upstream to fix this

Read more comments on GitHub >

github_iconTop Results From Across the Web

java.net.SocketException: Invalid argument - Stack Overflow
1 Answer 1 ... Try to lower the version of io.grpc eg. to 1.30.0 , worked for me. I had issue with jar...
Read more >
Unable to connect create netty connection (Horn... - JBoss.org
HQ121005 : Invalid "host" value "0.0.0.0" detected for "netty" connector. Switching to "MDSA1". If this new address is incorrect please manually ...
Read more >
ChannelPipeline (Netty API Reference (4.0.56.Final))
IllegalArgumentException - if there's an entry with the same name already in the pipeline: java.lang.NullPointerException - if the specified handler is null ......
Read more >
A Tour of Netty. Introduction | by Kondah Mouad | Geek Culture
Next, we check that provided child group (worker group) and child handler are not null. AbstractBootstrap#validate. The following code snippet ...
Read more >
Web on Servlet Stack - Spring
... public void onStartup(ServletContext servletContext) { // Load Spring web ... context only and leave the contextConfigLocation Servlet parameter empty.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found