Code Monkey home page Code Monkey logo

Comments (4)

alexellis avatar alexellis commented on June 7, 2024 1

The address gateway.openfaas.svc.cluster.local is incorrect. This only works on Kubernetes.

You will not find that in the Ebook, are you sure that you have a copy?

The only reason I can think of for a function to go to not ready is because you have an unhandled exception and it crashed the function. See the notes in the troubleshooting chapter to get the logs from journalctl for specific functions. No need to copy the input commands here, but have a good look over it.

This is a really well supported use-case, and there's no reason it shouldn't work as described, but you need to get your code right.

Did you say you had a separate issue with vendoring? Do you want to raise an issue so we can support you separately, without crossing streams?

https://github.com/openfaas/golang-http-template

Alex

from faasd.

DanielLee343 avatar DanielLee343 commented on June 7, 2024

No, the gateway address is not from the ebook but here. The ebook does have a link in chapter 10 leading me there so I assumed it worked for faasd. Anyway, I'll look into nats-connector as alternative.

Regarding the Not Ready error, it's because I have a log.Fatal("2", err) inside error handling, which causes the function to exit with status 1. Removing this solves the problem.

from faasd.

alexellis avatar alexellis commented on June 7, 2024

Glad you figured out what was going wrong with your function.

We'll get this closed. Feel free to attend our weekly call if you'd like to say hello or get more support.

https://docs.openfaas.com/community/

from faasd.

alexellis avatar alexellis commented on June 7, 2024

/lock: support question resolved

from faasd.

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.