BoomDAO / ICP.NET

A library for .NET/C#/Unity to natively communicate with the Internet Computer (ICP)
MIT License
50 stars 3 forks source link

AssetCanisterApiClient.MAX_CHUNK_SIZE is too high #124

Closed stefan-adna closed 5 months ago

stefan-adna commented 5 months ago

Currently the MAX_CHUNK_SIZE is defined as follows

public const int MAX_INGRESS_MESSAGE_SIZE = 2 * 1024 * 1024; // 2MB
...
public const int MAX_CHUNK_SIZE = MAX_INGRESS_MESSAGE_SIZE - 200; // Just under 2MB

With this value I could not upload successfully a chunked file to the AssetCanister. The execution is stuck at

CreateChunkResult result = await this.CreateChunkAsync(createBatchResult.BatchId, chunkBytes);

If I put in a smaller value like

public const int MAX_CHUNK_SIZE = MAX_INGRESS_MESSAGE_SIZE - 500;

it works.

Gekctek commented 5 months ago

Fixed in 6.1.0

stefan-adna commented 4 months ago

Looks good 👍