When I'm trying to upload 100MB file to Azure blob storage, using createBlockBlobFromStream()
from azure node sdk, I receive this error:
error: { code: 'RequestBodyTooLarge',
message: 'The request body is too large and exceeds the maximum permissible limit.
maxlimit: '67108864' }
Any ideas? Max blob size seems to be 200GB, or 50.000 blocks. I checked constants, block size is set on 4MB which is maximal. SDK bug, or am I missing something?
The following is documented:
If you attempt to upload a block blob that is larger than 64 MB, or a page blob larger than 1 TB, the service returns status code 413 (Request Entity Too Large). The Blob service also returns additional information about the error in the response, including the maximum blob size permitted in bytes.
You may want to check createBlockBlobFromStream() to verify that it uses blocks of less than 4MB for uploads of files larger than 64MB. You can use Fiddler, for example, to verify the actual REST operation and that should show pretty quickly what operation is attempted by createBlockBlobFromStream().