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

Using with Azure Storage Emulator #31

Closed
oscarlomas09 opened this issue Jul 19, 2018 · 0 comments
Closed

Using with Azure Storage Emulator #31

oscarlomas09 opened this issue Jul 19, 2018 · 0 comments

Comments

@oscarlomas09
Copy link

I am trying to use this module for development purposes before linking to a production account. For this reason I am using the storage emulator but I cannot seem to connect using fast-azure-storage. Here is what I've tried:

const blob = new azure.Blob({ accountId: "devstoreaccount1", accessKey: "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==" });

and

const blob = new azure.Blob({ accountId: "devstoreaccount1", accessKey: "Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==", sas: "sv=2018-03-28&si=uploads-164B532CC89&sr=c&sig=nZXR2hVmx81jRMhPpy4ZsKzKi2OLhTkziEj66O5fC7A%3D" });

and even
const blob = new azure.Blob({ accountId: "devstoreaccount1", sas: "sv=2018-03-28&si=uploads-164B532CC89&sr=c&sig=nZXR2hVmx81jRMhPpy4ZsKzKi2OLhTkziEj66O5fC7A%3D" });

I just keep getting the following error

Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature

I was using azure-storage with a connection string before as such:
azureStorage.createBlobService( "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;" );

is there an option to do the same with this module?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant