Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-15248

KameletBinding with Salesforce Kamelet as source produces invalid grant error

    XMLWordPrintable

Details

    • False
    • False
    • % %
    • build1
    • Undefined
    • Hide

      sf-kameletbinding.logOn OCP 4.5, with camel K operator #6 installed:

      kamel install --olm=false --operator-image=registry-proxy.engineering.redhat.com/rh-osbs/integration-tech-preview-camel-k-rhel8-operator:1.2.0-8 --maven-repository=http://nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse-all
      kamel install --olm-source=camel-k-source --maven-repository=http://nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse-all --force
      
      kamelet-binding-example2.yaml: 
      apiVersion: camel.apache.org/v1alpha1
      kind: KameletBinding
      metadata:
        name: kamelet-binding-example2
      spec:
        source:
          ref:
            kind: Kamelet
            apiVersion: camel.apache.org/v1alpha1
            name: salesforce-source
          properties:
            query: 'SELECT Id FROM Contact'
            topicName: 'kamelet-topic1'
            clientId: 'client_id'
            clientSecret: 'client_secret'
            userName: 'username'
            password: 'password'
        sink:
          ref:
            kind: InMemoryChannel
            apiVersion: messaging.knative.dev/v1beta1
            name: messages
      

      InMemory messages channel:
      https://github.com/apache/camel-k/blob/master/examples/kamelets/timer-source/messages-channel.yaml

      kubectl apply -f messages-channel.yaml
      oc apply -f kamelet-binding-example2.yaml
      kamel log kamelet-binding-example2
      
      Show
      sf-kameletbinding.log On OCP 4.5, with camel K operator #6 installed: kamel install --olm= false -- operator -image=registry-proxy.engineering.redhat.com/rh-osbs/integration-tech-preview-camel-k-rhel8- operator :1.2.0-8 --maven-repository=http: //nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse-all kamel install --olm-source=camel-k-source --maven-repository=http: //nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse-all --force kamelet-binding-example2.yaml: apiVersion: camel.apache.org/v1alpha1 kind: KameletBinding metadata: name: kamelet-binding-example2 spec: source: ref: kind: Kamelet apiVersion: camel.apache.org/v1alpha1 name: salesforce-source properties: query: 'SELECT Id FROM Contact' topicName: 'kamelet-topic1' clientId: 'client_id' clientSecret: 'client_secret' userName: 'username' password: 'password' sink: ref: kind: InMemoryChannel apiVersion: messaging.knative.dev/v1beta1 name: messages InMemory messages channel: https://github.com/apache/camel-k/blob/master/examples/kamelets/timer-source/messages-channel.yaml kubectl apply -f messages-channel.yaml oc apply -f kamelet-binding-example2.yaml kamel log kamelet-binding-example2

    Description

      Integration created from KameletBinding with source Salesforce Kamelet and sink InMemoryChannel produces following error:

       

      [1] 2020-11-03 10:04:39,849 INFO [org.apa.cam.com.sal.int.SalesforceSession] (main) Login at Salesforce loginUrl: https://login.salesforce.com/services/oauth2/token
       [1] 2020-11-03 10:04:40,207 ERROR [org.apa.cam.imp.eng.AbstractCamelContext] (main) Error starting CamelContext (camel-1) due to exception thrown: org.apache.camel.component.salesforce.api.SalesforceException: {errors:[
      {"errorCode":"invalid_grant","message":"Login error code:[invalid_grant] description:[authentication failure]","fields":null}
      ],statusCode:400}: org.apache.camel.RuntimeCamelException: org.apache.camel.component.salesforce.api.SalesforceException: {errors:[
      {"errorCode":"invalid_grant","message":"Login error code:[invalid_grant] description:[authentication failure]","fields":null}
      ],statusCode:400}
       [1] at org.apache.camel.RuntimeCamelException.wrapRuntimeException(RuntimeCamelException.java:66)
       [1] at org.apache.camel.support.service.BaseService.doFail(BaseService.java:409)
      

       

      Attachments

        Issue Links

          Activity

            People

              nicolaferraro Nicola Ferraro (Inactive)
              lfabriko@redhat.com Lucie Krejcirova
              Lucie Krejcirova Lucie Krejcirova
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: