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

camel-box quickstart upload file error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • fuse-6.3-R16-GA
    • fuse-6.3-R14-GA
    • Camel
    • None
    • Fuse 7.5 Sprint 53 - Blockers

      When follow Readme in camel-box component. Camel route consume test file and upload into box.com. But in fuse log appears error can't parse response from box.com

      2019-08-23 12:26:54,032 | INFO  | //work/box/input | box-route                        | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630415 | Receiving file testFile.txt
      2019-08-23 12:26:54,032 | INFO  | //work/box/input | box-route                        | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630415 | Sending file testFile.txt to Box.com
      2019-08-23 12:26:54,033 | INFO  | ad #5 - CamelBox | SSLContextParameters             | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630415 | Available providers: SUN version 1.8.
      2019-08-23 12:26:55,237 | WARN  | ad #5 - CamelBox | GenericFileOnCompletion          | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630415 | Rollback file strategy: org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy@5f7dcb46 for file: GenericFile[testFile.txt]
      2019-08-23 12:26:55,238 | ERROR | ad #5 - CamelBox | DefaultErrorHandler              | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630415 | Failed delivery for (MessageId: ID-localhost-localdomain-35263-1566554889623-0-315 on ExchangeId: ID-localhost-localdomain-35263-1566554889623-0-316). Exhausted after delivery attempt: 1 caught: org.apache.camel.RuntimeCamelException: Error invoking uploadFile with {fileUploadRequest=com.box.restclientv2.requestsbase.BoxFileUploadRequestObject@30e97114}: Failed to parse response.
      

      After first unsuccessful attempt try upload file again and again ... Ends with error code 409 - uploaded file already exist.

      2019-08-23 12:44:03,952 | INFO  | //work/box/input | box-route                        | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630415 | Receiving file test.txt
      2019-08-23 12:44:03,952 | INFO  | //work/box/input | box-route                        | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630415 | Sending file test.txt to Box.com
      2019-08-23 12:44:03,953 | INFO  | ad #1 - CamelBox | SSLContextParameters             | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630415 | Available providers: SUN version 1.8.
      2019-08-23 12:44:04,579 | WARN  | ad #1 - CamelBox | GenericFileOnCompletion          | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630415 | Rollback file strategy: org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy@1ca17e38 for file: GenericFile[test.txt]
      2019-08-23 12:44:04,580 | ERROR | ad #1 - CamelBox | DefaultErrorHandler              | 232 - org.apache.camel.camel-core - 2.17.0.redhat-630415 | Failed delivery for (MessageId: ID-localhost-localdomain-44859-1566556974021-0-3 on ExchangeId: ID-localhost-localdomain-44859-1566556974021-0-4). Exhausted after delivery attempt: 1 caught: org.apache.camel.RuntimeCamelException: Error invoking uploadFile with {fileUploadRequest=com.box.restclientv2.requestsbase.BoxFileUploadRequestObject@67dd792a}: {"type":"error","status":409,"code":"item_name_in_use","context_info":{"conflicts":{"type":"file","id":"512450601196","file_version":{"type":"file_version","id":"542648403196","sha1":"a02db3919eebb2e02198c312492cb693fea5fe28"},"sequence_id":"0","etag":"0","sha1":"a02db3919eebb2e02198c312492cb693fea5fe28","name":"test.txt"}},"help_url":"http:\/\/developers.box.com\/docs\/#errors","message":"Item with the same name already exists","request_id":"41zralg69svuj77g"}
      

            acosenti Andrea Cosentino
            tveskrna Tomas Veskrna
            Tomas Veskrna Tomas Veskrna
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: