Skip to content

Instantly share code, notes, and snippets.

@chuhlomin
Created June 12, 2018 18:49
Show Gist options
  • Save chuhlomin/710192f826bb33ee438c56bf3c1972a6 to your computer and use it in GitHub Desktop.
Save chuhlomin/710192f826bb33ee438c56bf3c1972a6 to your computer and use it in GitHub Desktop.
curl --request POST \
--url http://localhost:8080/helloworld.Greeter/SayHello \
--header 'content-type: application/json' \
--data '{"name":"John"}'
envoy_1 | [2018-06-12 18:41:24.490][12][debug][main] source/server/connection_handler_impl.cc:196] [C8] new connection
envoy_1 | [2018-06-12 18:41:24.492][12][debug][http] source/common/http/conn_manager_impl.cc:186] [C8] new stream
envoy_1 | [2018-06-12 18:41:24.493][12][debug][http] source/common/http/conn_manager_impl.cc:452] [C8][S6165410297060250325] request headers complete (end_stream=false):
envoy_1 | [2018-06-12 18:41:24.493][12][debug][http] source/common/http/conn_manager_impl.cc:457] [C8][S6165410297060250325] ':authority':'localhost:8080'
envoy_1 | [2018-06-12 18:41:24.493][12][debug][http] source/common/http/conn_manager_impl.cc:457] [C8][S6165410297060250325] 'user-agent':'curl/7.54.0'
envoy_1 | [2018-06-12 18:41:24.493][12][debug][http] source/common/http/conn_manager_impl.cc:457] [C8][S6165410297060250325] 'accept':'*/*'
envoy_1 | [2018-06-12 18:41:24.493][12][debug][http] source/common/http/conn_manager_impl.cc:457] [C8][S6165410297060250325] 'content-type':'application/json'
envoy_1 | [2018-06-12 18:41:24.493][12][debug][http] source/common/http/conn_manager_impl.cc:457] [C8][S6165410297060250325] 'content-length':'15'
envoy_1 | [2018-06-12 18:41:24.493][12][debug][http] source/common/http/conn_manager_impl.cc:457] [C8][S6165410297060250325] ':path':'/helloworld.Greeter/SayHello'
envoy_1 | [2018-06-12 18:41:24.493][12][debug][http] source/common/http/conn_manager_impl.cc:457] [C8][S6165410297060250325] ':method':'POST'
envoy_1 | [2018-06-12 18:41:24.493][12][debug][router] source/common/router/router.cc:250] [C8][S6165410297060250325] cluster 'app' match for URL '/helloworld.Greeter/SayHello'
envoy_1 | [2018-06-12 18:41:24.493][12][debug][router] source/common/router/router.cc:298] [C8][S6165410297060250325] ':authority':'localhost:8080'
envoy_1 | [2018-06-12 18:41:24.493][12][debug][router] source/common/router/router.cc:298] [C8][S6165410297060250325] 'user-agent':'curl/7.54.0'
envoy_1 | [2018-06-12 18:41:24.493][12][debug][router] source/common/router/router.cc:298] [C8][S6165410297060250325] 'accept':'*/*'
envoy_1 | [2018-06-12 18:41:24.493][12][debug][router] source/common/router/router.cc:298] [C8][S6165410297060250325] 'content-type':'application/json'
envoy_1 | [2018-06-12 18:41:24.493][12][debug][router] source/common/router/router.cc:298] [C8][S6165410297060250325] 'content-length':'15'
envoy_1 | [2018-06-12 18:41:24.493][12][debug][router] source/common/router/router.cc:298] [C8][S6165410297060250325] ':path':'/helloworld.Greeter/SayHello'
envoy_1 | [2018-06-12 18:41:24.493][12][debug][router] source/common/router/router.cc:298] [C8][S6165410297060250325] ':method':'POST'
envoy_1 | [2018-06-12 18:41:24.493][12][debug][router] source/common/router/router.cc:298] [C8][S6165410297060250325] 'x-forwarded-proto':'http'
envoy_1 | [2018-06-12 18:41:24.493][12][debug][router] source/common/router/router.cc:298] [C8][S6165410297060250325] 'x-request-id':'57dcff89-062e-4070-a948-746b1fd542b2'
envoy_1 | [2018-06-12 18:41:24.493][12][debug][router] source/common/router/router.cc:298] [C8][S6165410297060250325] ':scheme':'http'
envoy_1 | [2018-06-12 18:41:24.493][12][debug][pool] source/common/http/http2/conn_pool.cc:97] [C5] creating stream
envoy_1 | [2018-06-12 18:41:24.493][12][debug][router] source/common/router/router.cc:968] [C8][S6165410297060250325] pool ready
envoy_1 | [2018-06-12 18:41:24.493][12][debug][http] source/common/http/conn_manager_impl.cc:798] [C8][S6165410297060250325] request end stream
envoy_1 | [2018-06-12 18:41:24.507][12][debug][router] source/common/router/router.cc:590] [C8][S6165410297060250325] upstream headers complete: end_stream=false
envoy_1 | [2018-06-12 18:41:24.508][12][debug][http] source/common/http/conn_manager_impl.cc:972] [C8][S6165410297060250325] encoding headers via codec (end_stream=false):
envoy_1 | [2018-06-12 18:41:24.508][12][debug][http] source/common/http/conn_manager_impl.cc:976] [C8][S6165410297060250325] ':status':'415'
envoy_1 | [2018-06-12 18:41:24.508][12][debug][http] source/common/http/conn_manager_impl.cc:976] [C8][S6165410297060250325] 'content-type':'text/plain; encoding=utf-8'
envoy_1 | [2018-06-12 18:41:24.508][12][debug][http] source/common/http/conn_manager_impl.cc:976] [C8][S6165410297060250325] 'grpc-status':'13'
envoy_1 | [2018-06-12 18:41:24.508][12][debug][http] source/common/http/conn_manager_impl.cc:976] [C8][S6165410297060250325] 'grpc-message':'Content-Type 'application/json' is not supported'
envoy_1 | [2018-06-12 18:41:24.508][12][debug][http] source/common/http/conn_manager_impl.cc:976] [C8][S6165410297060250325] 'x-envoy-upstream-service-time':'14'
envoy_1 | [2018-06-12 18:41:24.508][12][debug][http] source/common/http/conn_manager_impl.cc:976] [C8][S6165410297060250325] 'date':'Tue, 12 Jun 2018 18:41:24 GMT'
envoy_1 | [2018-06-12 18:41:24.508][12][debug][http] source/common/http/conn_manager_impl.cc:976] [C8][S6165410297060250325] 'server':'envoy'
envoy_1 | [2018-06-12 18:41:24.508][12][debug][http2] source/common/http/http2/codec_impl.cc:515] [C5] stream closed: 2
envoy_1 | [2018-06-12 18:41:24.508][12][debug][client] source/common/http/codec_client.cc:104] [C5] request reset
envoy_1 | [2018-06-12 18:41:24.508][12][debug][pool] source/common/http/http2/conn_pool.cc:189] [C5] destroying stream: 0 remaining
envoy_1 | [2018-06-12 18:41:24.508][12][debug][router] source/common/router/router.cc:464] [C8][S6165410297060250325] upstream reset
envoy_1 | [2018-06-12 18:41:24.508][12][debug][connection] source/common/network/connection_impl.cc:98] [C8] closing data_to_write=277 type=0
envoy_1 | [2018-06-12 18:41:24.508][12][debug][connection] source/common/network/connection_impl.cc:487] [C8] write flush complete
envoy_1 | [2018-06-12 18:41:24.508][12][debug][connection] source/common/network/connection_impl.cc:133] [C8] closing socket: 1
envoy_1 | [2018-06-12 18:41:24.508][12][debug][main] source/server/connection_handler_impl.cc:50] [C8] adding to cleanup list
app_1 | WARNING: Stream Error
app_1 | io.netty.handler.codec.http2.Http2Exception$StreamException:
app_1 | at io.netty.handler.codec.http2.Http2Exception.streamError(Http2Exception.java:149)
app_1 | at io.grpc.netty.NettyServerHandler.newStreamException(NettyServerHandler.java:693)
app_1 | at io.grpc.netty.NettyServerHandler.onDataRead(NettyServerHandler.java:466)
app_1 | at io.grpc.netty.NettyServerHandler.access$800(NettyServerHandler.java:97)
app_1 | at io.grpc.netty.NettyServerHandler$FrameListener.onDataRead(NettyServerHandler.java:716)
app_1 | at io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder$FrameReadListener.onDataRead(DefaultHttp2ConnectionDecoder.java:240)
app_1 | at io.netty.handler.codec.http2.Http2InboundFrameLogger$1.onDataRead(Http2InboundFrameLogger.java:48)
app_1 | at io.netty.handler.codec.http2.DefaultHttp2FrameReader.readDataFrame(DefaultHttp2FrameReader.java:421)
app_1 | at io.netty.handler.codec.http2.DefaultHttp2FrameReader.processPayloadState(DefaultHttp2FrameReader.java:251)
app_1 | at io.netty.handler.codec.http2.DefaultHttp2FrameReader.readFrame(DefaultHttp2FrameReader.java:160)
app_1 | at io.netty.handler.codec.http2.Http2InboundFrameLogger.readFrame(Http2InboundFrameLogger.java:41)
app_1 | at io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder.decodeFrame(DefaultHttp2ConnectionDecoder.java:118)
app_1 | at io.netty.handler.codec.http2.Http2ConnectionHandler$FrameDecoder.decode(Http2ConnectionHandler.java:390)
app_1 | at io.netty.handler.codec.http2.Http2ConnectionHandler.decode(Http2ConnectionHandler.java:450)
app_1 | at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
app_1 | at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)
app_1 | at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
app_1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
app_1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
app_1 | at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
app_1 | at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1414)
app_1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
app_1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
app_1 | at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:945)
app_1 | at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:146)
app_1 | at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)
app_1 | at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:545)
app_1 | at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:499)
app_1 | at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)
app_1 | at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886)
app_1 | at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
app_1 | at java.base/java.lang.Thread.run(Thread.java:844)
app_1 | Caused by: java.lang.NullPointerException
app_1 | at io.grpc.netty.NettyServerHandler.onDataRead(NettyServerHandler.java:462)
app_1 | ... 29 more
app_1 |
app_1 | Jun 12, 2018 6:41:24 PM io.grpc.netty.NettyServerHandler onStreamError
app_1 | WARNING: Stream Error
app_1 | io.netty.handler.codec.http2.Http2Exception$StreamException: Stream closed before write could take place
app_1 | at io.netty.handler.codec.http2.Http2Exception.streamError(Http2Exception.java:149)
app_1 | at io.netty.handler.codec.http2.DefaultHttp2RemoteFlowController$FlowState.cancel(DefaultHttp2RemoteFlowController.java:480)
app_1 | at io.netty.handler.codec.http2.DefaultHttp2RemoteFlowController$1.onStreamClosed(DefaultHttp2RemoteFlowController.java:104)
app_1 | at io.netty.handler.codec.http2.DefaultHttp2Connection.notifyClosed(DefaultHttp2Connection.java:349)
app_1 | at io.netty.handler.codec.http2.DefaultHttp2Connection$ActiveStreams.removeFromActiveStreams(DefaultHttp2Connection.java:985)
app_1 | at io.netty.handler.codec.http2.DefaultHttp2Connection$ActiveStreams.deactivate(DefaultHttp2Connection.java:941)
app_1 | at io.netty.handler.codec.http2.DefaultHttp2Connection$DefaultStream.close(DefaultHttp2Connection.java:497)
app_1 | at io.netty.handler.codec.http2.DefaultHttp2Connection$DefaultStream.close(DefaultHttp2Connection.java:503)
app_1 | at io.netty.handler.codec.http2.Http2ConnectionHandler.closeStream(Http2ConnectionHandler.java:589)
app_1 | at io.netty.handler.codec.http2.Http2ConnectionHandler.processRstStreamWriteResult(Http2ConnectionHandler.java:870)
app_1 | at io.netty.handler.codec.http2.Http2ConnectionHandler.access$1000(Http2ConnectionHandler.java:66)
app_1 | at io.netty.handler.codec.http2.Http2ConnectionHandler$3.operationComplete(Http2ConnectionHandler.java:784)
app_1 | at io.netty.handler.codec.http2.Http2ConnectionHandler$3.operationComplete(Http2ConnectionHandler.java:781)
app_1 | at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:511)
app_1 | at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:485)
app_1 | at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:424)
app_1 | at io.netty.util.concurrent.DefaultPromise.trySuccess(DefaultPromise.java:103)
app_1 | at io.netty.util.internal.PromiseNotificationUtil.trySuccess(PromiseNotificationUtil.java:48)
app_1 | at io.netty.channel.ChannelOutboundBuffer.safeSuccess(ChannelOutboundBuffer.java:697)
app_1 | at io.netty.channel.ChannelOutboundBuffer.remove(ChannelOutboundBuffer.java:259)
app_1 | at io.netty.channel.ChannelOutboundBuffer.removeBytes(ChannelOutboundBuffer.java:339)
app_1 | at io.netty.channel.socket.nio.NioSocketChannel.doWrite(NioSocketChannel.java:426)
app_1 | at io.netty.channel.AbstractChannel$AbstractUnsafe.flush0(AbstractChannel.java:934)
app_1 | at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.flush0(AbstractNioChannel.java:360)
app_1 | at io.netty.channel.AbstractChannel$AbstractUnsafe.flush(AbstractChannel.java:901)
app_1 | at io.netty.channel.DefaultChannelPipeline$HeadContext.flush(DefaultChannelPipeline.java:1376)
app_1 | at io.netty.channel.AbstractChannelHandlerContext.invokeFlush0(AbstractChannelHandlerContext.java:776)
app_1 | at io.netty.channel.AbstractChannelHandlerContext.invokeFlush(AbstractChannelHandlerContext.java:768)
app_1 | at io.netty.channel.AbstractChannelHandlerContext.flush(AbstractChannelHandlerContext.java:749)
app_1 | at io.netty.handler.codec.http2.Http2ConnectionHandler.onError(Http2ConnectionHandler.java:619)
app_1 | at io.netty.handler.codec.http2.Http2ConnectionHandler$FrameDecoder.decode(Http2ConnectionHandler.java:392)
app_1 | at io.netty.handler.codec.http2.Http2ConnectionHandler.decode(Http2ConnectionHandler.java:450)
app_1 | at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
app_1 | at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)
app_1 | at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
app_1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
app_1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
app_1 | at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
app_1 | at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1414)
app_1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
app_1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
app_1 | at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:945)
app_1 | at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:146)
app_1 | at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)
app_1 | at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:545)
app_1 | at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:499)
app_1 | at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)
app_1 | at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886)
app_1 | at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
app_1 | at java.base/java.lang.Thread.run(Thread.java:844)
app_1 |
app_1 | Jun 12, 2018 6:41:24 PM io.grpc.netty.NettyServerHandler onStreamError
app_1 | WARNING: Stream Error
app_1 | io.netty.handler.codec.http2.Http2Exception$StreamException: Received DATA frame for an unknown stream 5
app_1 | at io.netty.handler.codec.http2.Http2Exception.streamError(Http2Exception.java:129)
app_1 | at io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder$FrameReadListener.shouldIgnoreHeadersOrDataFrame(DefaultHttp2ConnectionDecoder.java:535)
app_1 | at io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder$FrameReadListener.onDataRead(DefaultHttp2ConnectionDecoder.java:187)
app_1 | at io.netty.handler.codec.http2.Http2InboundFrameLogger$1.onDataRead(Http2InboundFrameLogger.java:48)
app_1 | at io.netty.handler.codec.http2.DefaultHttp2FrameReader.readDataFrame(DefaultHttp2FrameReader.java:421)
app_1 | at io.netty.handler.codec.http2.DefaultHttp2FrameReader.processPayloadState(DefaultHttp2FrameReader.java:251)
app_1 | at io.netty.handler.codec.http2.DefaultHttp2FrameReader.readFrame(DefaultHttp2FrameReader.java:160)
app_1 | at io.netty.handler.codec.http2.Http2InboundFrameLogger.readFrame(Http2InboundFrameLogger.java:41)
app_1 | at io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder.decodeFrame(DefaultHttp2ConnectionDecoder.java:118)
app_1 | at io.netty.handler.codec.http2.Http2ConnectionHandler$FrameDecoder.decode(Http2ConnectionHandler.java:390)
app_1 | at io.netty.handler.codec.http2.Http2ConnectionHandler.decode(Http2ConnectionHandler.java:450)
app_1 | at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
app_1 | at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)
app_1 | at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
app_1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
app_1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
app_1 | at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
app_1 | at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1414)
app_1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
app_1 | at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
app_1 | at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:945)
app_1 | at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:146)
app_1 | at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)
app_1 | at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:545)
app_1 | at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:499)
app_1 | at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)
app_1 | at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886)
app_1 | at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
app_1 | at java.base/java.lang.Thread.run(Thread.java:844)
app_1 |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment