Giter VIP home page Giter VIP logo

blob-trigger-sample's Introduction

Overview

instruction to reproduce error connecting to Azurite on v3

Azurite V2 working

Note Azurite is installed as a dev dependency

  1. Shell 1
npm i
npm run azurite:v2  # start azurite
  1. Shell 2
npm i -g serverless
sls offline
  1. Shell 3
./run.sh   # upload file to local blob
  1. 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 ================

Azurite V3

  1. Update azurite to v3 in package.json
npm i -s azurite@latest
  1. Shell 1
npm i
npm run azurite:v3  # start azurite
  1. Shell 2
npm i -g serverless
sls offline
  1. Shell 3
./run.sh   # upload file to local blob
  1. 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.

blob-trigger-sample's People

Contributors

mydiemho avatar

Watchers

 avatar  avatar

Forkers

shenae

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.