Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssetCanisterApiClient.MAX_CHUNK_SIZE is too high #124

Closed
stefan-adna opened this issue Apr 15, 2024 · 2 comments
Closed

AssetCanisterApiClient.MAX_CHUNK_SIZE is too high #124

stefan-adna opened this issue Apr 15, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@stefan-adna
Copy link

stefan-adna commented Apr 15, 2024

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 Gekctek self-assigned this Apr 15, 2024
@Gekctek Gekctek added the bug Something isn't working label Apr 15, 2024
@Gekctek
Copy link
Collaborator

Gekctek commented Apr 15, 2024

Fixed in 6.1.0

@Gekctek Gekctek closed this as completed Apr 15, 2024
@stefan-adna
Copy link
Author

Looks good 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants