After webhook FILE.UPLOADED, error while download file "unsupported compression method"

Hello,

We are a platform that allow user setup a webhook and download file automatically from Box to our platform on behalf of user via their app credentials.

We have an issue as bellow:

  • We received webhook event from Box FILE.UPLOADED
  • We started downloading the file. But sometime we got error “The archive entry was compressed using an unsupported compression method”
  • After 10 minutes we retried and we can successfully download

Please help us know why the error occurred in the first time. Thanks

Here is detail log (time in UTC)

[2023-12-05 01:16:38.217] 0HMVA8NTOJJO1:00000002 [HookedByBox] data:
{
    "type": "webhook_event",
    "id": "cc23f5d1-74c3-40ee-8083-2f98dd94c227",
    "created_at": "2023-12-04T17:16:36-08:00",
    "trigger": "FILE.UPLOADED",
    "webhook": {
        "id": "1850240637",
        "type": "webhook"
    },
    "created_by": {...
    },
    "source": {
        "id": "1379611876151",
        "type": "file",
        "file_version": {
            "type": "file_version",
            "id": "1511344487351",
            "sha1": "6652ae330379c05f31a6377a06df6170e0a77b11"
        },
        "sequence_id": "0",
        "etag": "0",
        "sha1": "6652ae330379c05f31a6377a06df6170e0a77b11",
        "name": "60293480_448_1.psd",
        "description": "",
        "size": 180064941,
        "path_collection": {....
        },
        "created_at": "2023-12-04T17:16:36-08:00",
        "modified_at": "2023-12-04T17:16:36-08:00",
        "trashed_at": null,
        "purged_at": null,
        "content_created_at": "2023-12-04T17:16:36-08:00",
        "content_modified_at": "2023-12-04T17:16:36-08:00",
        "created_by": {...
        },
        "modified_by": {...
        },
        "owned_by": {...
        },
        "shared_link": null,
        "parent": {
            "type": "folder",
            "id": "221206550157",
            "sequence_id": "0",
            "etag": "0",
            "name": "OUT"
        },
        "item_status": "active"
    },
    "additional_info": []
}


[2023-12-05 01:16:44.630] 6P9L7SHNKkKnNAZFA/HrVg== BOX Receive ObjectId-1379611876151  
Cannot Download 1379611876151System.IO.InvalidDataException: The archive entry was compressed using an unsupported compression method.
   at System.IO.Compression.Inflater.Inflate(FlushCode flushCode)
   at System.IO.Compression.Inflater.ReadInflateOutput(Byte* bufPtr, Int32 length, FlushCode flushCode, Int32& bytesRead)
   at System.IO.Compression.Inflater.ReadOutput(Byte* bufPtr, Int32 length, Int32& bytesRead)
   at System.IO.Compression.Inflater.InflateVerified(Byte* bufPtr, Int32 length)
   at System.IO.Compression.DeflateStream.CopyToStream.WriteAsyncCore(ReadOnlyMemory`1 buffer, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnection.ChunkedEncodingReadStream.CopyToAsyncCore(Stream destination, CancellationToken cancellationToken)
   at System.IO.Compression.DeflateStream.CopyToStream.CopyFromSourceToDestinationAsync()
   

[2023-12-05 01:25:09.185] qasYzbRDPUWreIR1TdIzlQ== Downloaded successfully

Hi @datboxenterprise , welcome to the forum.

I don’t have access to the logs in order to help you, but perhaps support can.

I’ll convert your post to a support case.

Either way if it works 10 minutes after, it means the code on your side is correct. Let see if support can dig this one up.

Cheers