Code Monkey home page Code Monkey logo

Comments (5)

JohnOllhorn avatar JohnOllhorn commented on May 31, 2024

I have exactly the same problem.
it's my second function, the first one which is actually very similar runs error free.

I've also read this article here but I don't understand the solution...
#26

from of-watchdog.

alexellis avatar alexellis commented on May 31, 2024

Which template did you both use?

You need to use ones which end armhf - in fact you're best using the template store for this where you can filter the platform

faas-cli template store list --platform=armhf

NAME                    SOURCE             DESCRIPTION
go-armhf                openfaas           Official Golang armhf template
python-armhf            openfaas           Official Python 2.7 armhf template
python3-armhf           openfaas           Official Python 3.6 armhf template
node10-express-armhf    openfaas-incubator NodeJS 10 Express armhf template
python3-flask-armhf     openfaas-incubator Python 3.6 Flask armhf template
node8-express-armhf     openfaas-incubator NodeJS 8 Express armhf template
golang-http-armhf       openfaas-incubator Golang HTTP armhf template
golang-middleware-armhf openfaas-incubator Golang Middleware armhf template

from of-watchdog.

alexellis avatar alexellis commented on May 31, 2024

@JohnOllhorn that issue you referenced is unrelated.

from of-watchdog.

alexellis avatar alexellis commented on May 31, 2024

You should only need to type in:

faas template store pull node8-express-armhf
faas-cli new --lang node8-express-armhf --prefix=alexellis2 alex-node-armhf
faas-cli up -f alex-node-armhf.yml

From there edit the handler.js to change the result you return depending on your needs and add any npm modules you want to consume too.

from of-watchdog.

alexellis avatar alexellis commented on May 31, 2024

I have no issues at all accessing my new function on an RPi:

Forking - node [index.js]
2019/01/13 09:41:10 Started logging stdout from function.
2019/01/13 09:41:10 Started logging stderr from function.
2019/01/13 09:41:10 OperationalMode: http
2019/01/13 09:41:10 Writing lock-file to: /tmp/.lock
2019/01/13 09:41:12 stdout: OpenFaaS Node.js listening on port: 3000

2019/01/13 09:41:20 GET / - 200 OK - ContentLength: 25

It seems like the template is still working as designed, so I would suggest you both join the Slack community and send a message there with your GitHub repo so the community can help you.

https://docs.openfaas.com/community

from of-watchdog.

Related Issues (20)

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.