Message is sent before header is sent?
See original GitHub issuejava.lang.IllegalStateException: sendHeaders has not been called
at com.linecorp.armeria.internal.shaded.guava.base.Preconditions.checkState(Preconditions.java:508)
at com.linecorp.armeria.server.grpc.ArmeriaServerCall.doSendMessage(ArmeriaServerCall.java:245)
at com.linecorp.armeria.server.grpc.ArmeriaServerCall.lambda$sendMessage$4(ArmeriaServerCall.java:240)
at com.linecorp.armeria.common.RequestContext.lambda$makeContextAware$3(RequestContext.java:479)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:384)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:834)
It happened in Armeria 1.1.0
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
How to fix "Headers already sent" error in PHP - Stack Overflow
This error message gets triggered when anything is sent before you send HTTP headers (with setcookie or header ) ...
Read more >How to Fix the "Cannot Modify Header Information - Kinsta
The first thing you need to do when you run into the “Cannot modify header information – headers already sent by” error is...
Read more >What is the "headers already sent" PHP error? - KnownHost
When PHP receives the first output ( print , echo , <html> ) it will “flush” the collected headers. Afterward, it can send...
Read more >Warning: "Headers already sent" or "Cannot modify ... - Drupal
In short, it means that somewhere in the code, something was printed to the browser before Drupal had finished preparing the page. This...
Read more >How to fix Headers already sent error in PHP - Edureka
The page/output always follows the headers. PHP has to pass the headers to the web server first. It can only do that once....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Ah yes, sorry. The exceptions always come in pairs, with the first one being:
We got a report that is similar to this error from Armeria slack channel. I’m sure this is the same case or not yet. Let me investigate on the reported issue. On the otherhand, we can sample the original stacktrace that called
ArmeriaServerCall.close()with-Dcom.linecorp.armeria.verboseExceptions=...if-Dcom.linecorp.armeria.verboseResponses=trueis set. /cc @okue