-
Notifications
You must be signed in to change notification settings - Fork 341
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
VS Code "azurite.blobHost" config doesn't seem to work #2400
Comments
In my testing, listen on "localhost" or "127.0.0.1" in blobHost both works when client send request to localhost Uri with https. I would suggest you using the default value "127.0.0.1". Please note, the cert need be aligned with the client request Uri, so if your client send request to "localhost" Uri with https, please make sure you start Azurite with cert signed for "localhost". (If the request send to "127.0.0.1" Uri with https, the cert need be signed for "127.0.0.1") |
@blueww I followed the readme instructions which says to use localhost if you use dotnet tool dev-certs
I also followed the readme to configure the cert
Is the readme no longer accurate? |
@juliusl Cert gen with: Connection string: DefaultEndpointsProtocol=https;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=https://localhost:10000/devstoreaccount1;QueueEndpoint=https://localhost:10001/devstoreaccount1; Not sure why you meet the error. This should not related with blobhost setting (in my testing both "localhost" and default "127.0.0.1" works fine). Could you please check, if you just start Azurite with no cert (so only support http), can the http request send from client on same machine be received by Azurite? If not, it might be related with some of your client network/proxy setting. Do you run client/Azurite on same machine? Or is there any setting on your machine can block request send to 127.0.0.1:10000 be received? |
Which service(blob, file, queue, table) does this issue concern?
blob
Which version of the Azurite was used?
3.30 (VS Code)
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
VS Code
What's the Node.js version?
What problem was encountered?
Tried setting 'azurite.blobHost' to 'localhost' instead of 127.0.0.1 so that TLS works.
Steps to reproduce the issue?
VS Code Settings
Logs
Error on Client side:
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:
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?
No
The text was updated successfully, but these errors were encountered: