Giter Site home page Giter Site logo

nodejs-afterburn's People

Contributors

alexellis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nodejs-afterburn's Issues

Following readme sample results in non-working 502

faas-cli template pull https://github.com/openfaas/nodejs-afterburn
faas-cli new --lang node-afterburn burner

faas-cli build -f burner.yml
faas-cli deploy -f burner.yml
echo test | faas-cli invoke burner

I've got other sample functions running such as nodeinfo, but this one will not run on command line or via the console. The invoke button remains greyed out.

This is my first day with OpenFaas and it would be less confusing for this template to work out of the box.

It is unclear to me if this is related to the other open issue about a GET request, but as-is I'm not following how to alter it to make it work or why the invoke button appears disabled.

Transpiling as part of the build process

Is there a recommended way to hook into the build process to transpile code prior to the faas-cli build, or should I transpile on my own, copy yml/package.json resources to a build dir then faas-cli build from that working directory?

GET request fails

POST is supported but GET fails and causes the code to exit. The workaround is to only POST but we should fix this. CC @austinfrey

Buffer

On how we're parsing incoming data.

  • This will receive a series of HTTP requests, each with a set of headers and a payload.
  • The header will indicate the but length of the payload
  • We need to create a buffer for the body, and only dispatch it to the handler when the appropriate number of bytes are received.

Also - handling errors.

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.