You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/03/02 23:50:33 UTC

[GitHub] [camel-k] sobkowiak edited a comment on issue #1315: Fix #1304: fix the saga example to use default ports

sobkowiak edited a comment on issue #1315: Fix #1304: fix the saga example to use default ports
URL: https://github.com/apache/camel-k/pull/1315#issuecomment-593660527
 
 
   I have following error in the saga integration
   
   ```
   [1] 2020-03-02 22:33:41.629 INFO  [default-workqueue-2] route1 - Executing saga #1                                                                                                                                                                                              
   [1] 2020-03-02 22:33:41.671 ERROR [XNIO-1 I/O-1] DefaultErrorHandler - Failed delivery for (MessageId: ID-saga-59465cb6c5-vc7tp-1583188421428-0-2 on ExchangeId: ID-saga-59465cb6c5-vc7tp-1583188421428-0-1). Exhausted after delivery attempt: 1 caught: org.apache.camel.http.
   common.HttpOperationFailedException: HTTP operation failed invoking http://train/api/train/buy/seat with statusCode: 404                                                                                                                                                        
   [1]                                                                                                                                                                                                                                                                             
   [1] Message History                                                 
   [1] ---------------------------------------------------------------------------------------------------------------------------------------                                                                                                                                     
   [1] RouteId              ProcessorId          Processor                                                                        Elapsed (ms)                                                                                                                                     
   [1] [route1            ] [route1            ] [from[timer://clock?period=5s]                                                 ] [       244]                                                                                                                                     
   [1] [route1            ] [output1           ] [saga                                                                          ] [         0]                                                                                                                                     
   [1] [route1            ] [setHeader1        ] [setHeader[id]                                                                 ] [         1]                                                                                                                                     
   [1] [route1            ] [setHeader2        ] [setHeader[CamelHttpMethod]                                                    ] [         0]                                                                                                                                     
   [1] [route1            ] [log1              ] [log                                                                           ] [         0]                                                                                                                                     
   [1] [route1            ] [to1               ] [undertow:http://train/api/train/buy/seat                                      ] [         0]                                                                                                                                     
   [1]                                                                 
   [1] Stacktrace                                                      
   [1] ---------------------------------------------------------------------------------------------------------------------------------------                                                                                                                                     
   [1] org.apache.camel.http.common.HttpOperationFailedException: HTTP operation failed invoking http://train/api/train/buy/seat with statusCode: 404                                                                                                                              
   [1]     at org.apache.camel.component.undertow.UndertowClientCallback.lambda$setupResponseListener$2(UndertowClientCallback.java:235) ~[org.apache.camel.camel-undertow-3.0.1.jar:3.0.1]
   [1]     at org.apache.camel.component.undertow.UndertowClientCallback$ErrorHandlingClientCallback.completed(UndertowClientCallback.java:85) [org.apache.camel.camel-undertow-3.0.1.jar:3.0.1]
   [1]     at io.undertow.client.http.HttpClientExchange.setResponse(HttpClientExchange.java:125) [io.undertow.undertow-core-2.0.28.Final.jar:2.0.28.Final]
   [1]     at io.undertow.client.http.HttpClientConnection$ClientReadListener.handleEvent(HttpClientConnection.java:650) [io.undertow.undertow-core-2.0.28.Final.jar:2.0.28.Final]
   [1]     at io.undertow.client.http.HttpClientConnection$ClientReadListener.handleEvent(HttpClientConnection.java:516) [io.undertow.undertow-core-2.0.28.Final.jar:2.0.28.Final]
   [1]     at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [org.jboss.xnio.xnio-api-3.3.8.Final.jar:3.3.8.Final]                                                                                                                                      
   [1]     at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66) [org.jboss.xnio.xnio-api-3.3.8.Final.jar:3.3.8.Final]
   [1]     at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:88) [org.jboss.xnio.xnio-nio-3.3.8.Final.jar:3.3.8.Final]                                                                                                                                            
   [1]     at org.xnio.nio.WorkerThread.run(WorkerThread.java:561) [org.jboss.xnio.xnio-nio-3.3.8.Final.jar:3.3.8.Final]                                                                                                                                                           
   [1] 2020-03-02 22:33:41.718 WARN  [default-workqueue-3] TimerConsumer - Error processing exchange. Exchange[ID-saga-59465cb6c5-vc7tp-1583188421428-0-1]. Caused by: [org.apache.camel.http.common.HttpOperationFailedException - HTTP operation failed invoking http://train/api
   /train/buy/seat with statusCode: 404]
   ```
   
   I think something can be wrong with the Istio `cluster-local-gateway`. The `train` service is an external name of the local gateway service. Saga can connect the service but it can't find the rest service. Maybe the local gateway doesn't pass through the request to the train pod. Trying to call the train service with curl from the saga pod end with 404 too.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services