Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18530

Camel box cannot authorize

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.14.6, 3.18.3, 3.19.0
    • camel-box
    • None
    • Unknown

    Description

      Box API changed and camel-box cannot parse the request token. See the error in box-api file attached. Tests in previous versions were working but now failed.

      2022-09-09 13:31:57,575 INFO  [org.apa.cam.imp.eng.AbstractCamelContext] (main) Apache Camel 3.18.1 (camel-1) is starting
      2022-09-09 13:31:58,452 ERROR [org.apa.cam.imp.eng.AbstractCamelContext] (main) Error starting CamelContext (camel-1) due to exception thrown: Failed to start component box because of Box API connection failed: Error authorizing application: Can not parse request token.: org.apache.camel.FailedToStartComponentException: Failed to start component box because of Box API connection failed: Error authorizing application: Can not parse request token.
      	at org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(AbstractCamelContext.java:3272)
      	at org.apache.camel.impl.engine.AbstractCamelContext.doStartContext(AbstractCamelContext.java:3033)
      	at org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCamelContext.java:2988)
      	at org.apache.camel.support.service.BaseService.start(BaseService.java:119)
      	at org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2649)
      	at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:262)
      	at org.apache.camel.quarkus.main.CamelMain.doStart(CamelMain.java:94)
      	at org.apache.camel.support.service.BaseService.start(BaseService.java:119)
      	at org.apache.camel.quarkus.main.CamelMain.startEngine(CamelMain.java:140)
      	at org.apache.camel.quarkus.main.CamelMainRuntime.start(CamelMainRuntime.java:49)
      	at org.apache.camel.quarkus.core.CamelBootstrapRecorder.start(CamelBootstrapRecorder.java:45)
      	at io.quarkus.deployment.steps.CamelBootstrapProcessor$boot173480958.deploy_0(Unknown Source)
      	at io.quarkus.deployment.steps.CamelBootstrapProcessor$boot173480958.deploy(Unknown Source)
      	at io.quarkus.runner.ApplicationImpl.doStart(Unknown Source)
      	at io.quarkus.runtime.Application.start(Application.java:101)
      	at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:110)
      	at io.quarkus.runtime.Quarkus.run(Quarkus.java:67)
      	at io.quarkus.runtime.Quarkus.run(Quarkus.java:41)
      	at io.quarkus.runtime.Quarkus.run(Quarkus.java:120)
      	at io.quarkus.runner.GeneratedMain.main(Unknown Source)
      Caused by: org.apache.camel.RuntimeCamelException: Box API connection failed: Error authorizing application: Can not parse request token.
      	at org.apache.camel.component.box.internal.BoxConnectionHelper.createStandardAuthenticatedConnection(BoxConnectionHelper.java:178)
      	at org.apache.camel.component.box.internal.BoxConnectionHelper.createConnection(BoxConnectionHelper.java:72)
      	at org.apache.camel.component.box.BoxComponent.doStart(BoxComponent.java:91)
      	at org.apache.camel.support.service.BaseService.start(BaseService.java:119)
      	at org.apache.camel.support.service.ServiceHelper.startService(ServiceHelper.java:113)
      	at org.apache.camel.impl.engine.AbstractCamelContext.startService(AbstractCamelContext.java:3667)
      	at org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(AbstractCamelContext.java:3270)
      	... 19 more
      Caused by: java.lang.IllegalArgumentException: Error authorizing application: Can not parse request token.
      	at org.apache.camel.component.box.internal.BoxConnectionHelper.createStandardAuthenticatedConnection(BoxConnectionHelper.java:150)
      	... 25 more
      

      Attachments

        1. box-api
          12 kB
          Tomas Veskrna

        Activity

          People

            Federico Mariani Federico Mariani
            tveskrna Tomas Veskrna
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: