instruction to reproduce error connecting to Azurite on v3
Note Azurite is installed as a dev dependency
- Shell 1
npm i
npm run azurite:v2 # start azurite
- Shell 2
npm i -g serverless
sls offline
- Shell 3
./run.sh # upload file to local blob
- Monitor
Shell 2
for output
[9/3/19 8:23:42 PM] Executing 'Functions.storageBlob' (Reason='New blob detected: blob-sample/sample-2019-09-03.json', Id=a5859f8b-b807-4fa7-a70b-31a116450ed2)
[9/3/19 8:21:54 PM] ================= MESSAGE START =================
[9/3/19 8:21:54 PM] Blob name: sample-2019-09-03.json
[9/3/19 8:21:54 PM] Blob length: 26 bytes
[9/3/19 8:21:54 PM] Blob content: {
[9/3/19 8:21:54 PM] "data": "I'm a blob"
[9/3/19 8:21:54 PM] }
[9/3/19 8:21:54 PM] ================= MESSAGE END ================
- Update azurite to v3 in
package.json
npm i -s azurite@latest
- Shell 1
npm i
npm run azurite:v3 # start azurite
- Shell 2
npm i -g serverless
sls offline
- Shell 3
./run.sh # upload file to local blob
- Monitor
Shell 2
for error
[8/16/19 5:33:20 PM] An unhandled exception has occurred. Host is shutting down.
[8/16/19 5:33:20 PM] Microsoft.WindowsAzure.Storage: Connection refused. System.Net.Http: Connection refused. System.Private.CoreLib: Connection refused.