pcnfernando opened a new issue #589: Restful sample does not work
URL: https://github.com/apache/camel-k/issues/589
 
 
   I'm trying to deploy below restful sample.
   
   `// ****************
   //
   // Setup
   //
   // ****************
   
   l = components.get('log')
   l.exchangeFormatter = function(e) {
       return "log - body=" + e.in.body + ", headers=" + e.in.headers
   }
   
   c = restConfiguration()
   c.component = 'undertow'
   c.port = 8080
   
   // ****************
   //
   // Functions
   //
   // ****************
   
   function proc(e) {
       e.getIn().setHeader('RandomValue', Math.floor((Math.random() * 100) + 1))
   }
   
   // ****************
   //
   // Route
   //
   // ****************
   
   rest()
       .path('/say/hello')
       .produces("text/plain")
       .get().route()
           .transform().constant("Hello World");
   
   from('timer:js?period=1s')
       .routeId('js')
       .setBody()
           .constant('Hello Camel K')
       .process(proc)
       .to('log:info')` 
   
   
   And running it by executing the below command.
   `kamel run --name=withrest --dependency=camel-undertow 
examples/routes-rest.js`
   
   The sample is not getting started.
   
![image](https://user-images.githubusercontent.com/15815199/55620665-0f5f9780-57b9-11e9-8705-b1c9a20c79fc.png)
   
   
   Below are my current pods in the minishift cluster.
   
![image](https://user-images.githubusercontent.com/15815199/55620703-21d9d100-57b9-11e9-8837-133d51a0a88c.png)
   
   When I try to get the logs, it hangs without returning.
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to