Git Product home page Git Product logo

Comments (1)

marcocapozzoli avatar marcocapozzoli commented on August 14, 2024

You're facing this issue for 2 reasons

  1. You haven't started a local Faas (or if you did, it didn't work very well). You can do it like this:

das-cli faas start

You'll see this:

image

Did you see that the function is running on port 8080 and version (1.12.11) ?

So, when you try to connect the function and receive an error about version mismatch

image

you can fix this with this command:

das-cli faas update-version

For more details run: das-cli faas update-version --help

  1. You are using the Api in the wrong way. You should do this:

das = DistributedAtomSpace(query_engine='remote', host=host, port=port)

with query_engine='remote' not query_engine='local'

The way you instantiated a DAS, you made a local Das with backend in RAM.

It's the same this:

das = DistributedAtomSpace()

The correct concept is this

Local DAS is a DAS that has a backend in RAM or RedisMongo

# Ram
das = DistributedAtomSpace()

# RedisMongo
das = DistributedAtomSpace(
    atomdb='redis_mongo',
    mongo_hostname='...',
    mongo_port=...,
    mongo_username=...,
    mongo_password=...,
    redis_hostname=...,
    redis_port=...
)

And Remote Das is a Das that connects to a server via OpenFaas (this is your case)

das = DistributedAtomSpace(query_engine='remote', host=host, port=port)

from das.

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.