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 2022/03/18 16:22:01 UTC

[GitHub] [camel-kafka-connector-examples] makampf edited a comment on issue #335: FHIR Source Connector config fails ro resolve endpoint

makampf edited a comment on issue #335:
URL: https://github.com/apache/camel-kafka-connector-examples/issues/335#issuecomment-1072571987


   Thank you very much, that pointed me in the right direction. I have to learn more about REST and Operation syntax.
   
   With the following connector config:
   ```json
   {
     "name": "my-fhir-source-connector",
     "config": {
       "connector.class": "org.apache.camel.kafkaconnector.fhir.CamelFhirSourceConnector",
       "tasks.max": 1,
       "topic": "fhir.input",
       "camel.source.path.apiName": "OPERATION",
       "camel.source.path.methodName": "onServer?name=$customOperation&useHttpGet=false&extraParameters=domain=testDomain",
       "camel.source.endpoint.serverUrl": "https://url-of-fhir-api-com/fhir",
       "camel.source.endpoint.delay": 60000,
       "camel.source.endpoint.password": "password",
       "camel.source.endpoint.username": "user",
       "camel.component.fhir.fhirVersion": "R4"
     }
   }
   ```
   
   I receive the following error:
   ```sh
   Caused by: [org.apache.camel.RuntimeCamelException - Error invoking onServer with {name=$customOperation, useHttpGet=false, extraParameters={}}: theParameters can not be null] (org.apache.camel.component.fhir.FhirConsumer)
   
   org.apache.camel.RuntimeCamelException: Error invoking onServer with {name=$customOperation, useHttpGet=false, extraParameters={}}: theParameters can not be null
   
   at org.apache.camel.support.component.ApiMethodHelper.invokeMethod(ApiMethodHelper.java:530)
   ```
   
   I tried different variants to pass the required `domain` paramater, e.g. with `parameters` instead of `extraParameters`, or different kinds of brackets, but it doesnt help. Maybe you can help me on how to pass the domain parameter correctly? (_domain=testDomain_)
   
   Thanks in advance


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org