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

Azurite HTTP Interface Impossible to Use from the Command Line. #2422

Open
jkempf42 opened this issue Jul 4, 2024 · 1 comment
Open

Azurite HTTP Interface Impossible to Use from the Command Line. #2422

jkempf42 opened this issue Jul 4, 2024 · 1 comment
Assignees
Labels
documentation question Further information is requested

Comments

@jkempf42
Copy link

jkempf42 commented Jul 4, 2024

Which service(blob, file, queue, table) does this issue concern?

All

Which version of the Azurite was used?

v3

Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)

DockerHub

What's the Node.js version?

NA

What problem was encountered?

Can't easily curl to Azurite

Steps to reproduce the issue?

I finally figured out how to do this after 2 days of searching online.

If possible, please provide the debug log using the -d parameter, replacing <pathtodebuglog> with an appropriate path for your OS, or review the instructions for docker containers:

-d "<pathtodebuglog>"

Please be sure to remove any PII or sensitive information before sharing!
The debug log will log raw request headers and bodies, so that we can replay these against Azurite using REST and create tests to validate resolution.

Have you found a mitigation/solution?

There is no blog or web page with an easily 'Getting started' that instructs you how to curl at Azurite. I finally figured it out after 2 days of trying. The Github README (here)[https://github.com/Azure/Azurite?tab=readme-ov-file] is filled with details, but there is no simple explanation about how to test using curl whether Azurite is running. There is an assumption that everyone is going to use a language SDK or Storage Explorer, which might not be true. Some folks will want to use the HTTP interface. You need a simple explanation of how a user can test the installation using the CLI after it is finished.

@blueww blueww self-assigned this Jul 8, 2024
@blueww blueww added question Further information is requested documentation labels Jul 8, 2024
@blueww
Copy link
Member

blueww commented Jul 8, 2024

@jkempf42

Thanks for raising this issue!

For using curl to send request to Azurite, it just like other command line tools to send rest API request to Azurite (or to product Azure Storage server).

If you know how to using curl on product Azure storage server, send request to Azurite is very similar, only the endpoint is different. And we have a section to description the endpoint https://github.com/Azure/Azurite?tab=readme-ov-file#ip-style-url

Please note, there are multiple tools to send rest API request, we can't add doc for each kind of tools. Since Azurite is an Azure Storage server emulator, Azurite doc will more focus on the difference usage on product Azure vs Azurite, instead of difference usage of each client tool (this is out of Azurite scope).

Thanks for your understanding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants