ey52fpv opened a new issue #3444:
URL: https://github.com/apache/camel-quarkus/issues/3444


   I have exposed a quarkus camel API which my react UI consumes. This API 
internally calls another API to get the information required for UI. 
   
   React UI -> quarkus camel API 0> internal API.
   
   Camel API after making API call is not able to parse JSON response and hence 
returns unreadable characters(question marks) in the response and hence UI 
fails reading the data
   
   ![Screen Shot 2022-01-07 at 
12](https://user-images.githubusercontent.com/62077618/148598174-b32c2b08-62cd-4e39-8262-9ecd4050399d.png)
   
   Sample code:
   from("rest:get:/api/tasks")
           .log("Get tasks list [START]")
           .setHeader(Exchange.HTTP_METHOD, constant("GET"))
           .setHeader(Exchange.CONTENT_TYPE, constant("application/json"))
           .setHeader("Accept",constant("application/json"))
           .to(enrollmentHostUrl + 
"/enrollment/api/tasks?programId=${header.programId}&bridgeEndpoint=true")
           .log("Get tasks list [END]")
           .endRest();
   
   Any help would highly appreciated


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to