Open malyalavenu opened 3 days ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage.
The error message is coming from the platform, not something the SDK is throwing:
I'm guessing it happens here: https://github.com/Azure/azure-sdk-for-js/blob/d133eaf30319a2bca14661c2a5bca2c995b6b9ef/sdk/core/core-client/src/urlHelpers.ts#L266
The URL you have provided doesn't appear to be invalid, at least not unless the invalid part is coming from one of the pieces you redacted. Does the URL constructor throw for you when you provide the full unredacted URL?
I am trying to do a multi-part upload to azure blob store from a ruby on rails app that uses
dropzone.js
,stimulus.js
andDirectUpload
from@rails/activestorage
. Below are the version and package/gem information. Active storage currently doesn't support multi-part upload for large files (>256 MB) to azure blob store. So I am trying to replace the@rails/activestorage
functionality with@azure/storage-blob
I have an import as below in my
dropzone_controller.js
Below is the code to do the multipart upload
The URL formed is as follows. I removed the sensitive information
https://<azure-storage-account-name>.blob.core.windows.net/<azure-container-name>/large_image1.jpg?sv=2018-11-09&sr=b&sp=rw&se=2024-07-05T06%3A41%3A23Z&st=2024-07-05T05%3A11%3A23Z&spr=https&sig=<sas_token_signature>
This is throwing an error of Invalid URL and I could trace it as per the console message in the following method
blockBlobClient.uploadData();
I was able to trace it, but not able to figure why this is happeningI am requesting help on two things: 1) Why is this error happening ? 2) Can there be a more descriptive error message, like invalid SAS token if it is, or as per the error
Gemfile
package.json
I am generating a
SAS token
using the following ruby controller codeHere is the
routes.rb
code forgenerate_sas_token