Azure blob storage

Hello, I'm using T3 stack and want to send image (Buffer) to azure blob storage in back-end (await blockBlobClient.upload(...)). However, I get error:
"Code": "MissingRequiredHeader",
"Message": "An HTTP header that's mandatory for this request is not specified.\nRequestId:...",
"HeaderName": "x-ms-blob-type"

Does anyone know why? I tried to add header to response, but it didn't help. blockBlobClient.upload(...) should add header by default.

On a simple node program it uploads with no error, so the code must be fine
Solution
Update - managed to fix it. I had error before my file was in storage, thus blobHTTPHeaders was needed after the fix.
I use yarn as package manager and with it installed Azure blob storage. Turns out, problem was with packages (modules). I don't know if it didn't install all packages, they were old version or something else, but I had to:
1) Delete node_modules folder
2) Delete yarn.lock file
3) Run all packages install again (few times)

Thanks for the help and I hope this helps someone πŸ™‚
Was this page helpful?