Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No REST API backend #3702

Open
lqkhanh195 opened this issue Feb 27, 2025 · 3 comments
Open

No REST API backend #3702

lqkhanh195 opened this issue Feb 27, 2025 · 3 comments

Comments

@lqkhanh195
Copy link

Description:
I followed all the steps in the quickstart tutorial, but can interact with agent.

Steps to Reproduce:

git clone https://github.com/elizaos/eliza.git
cd eliza
git checkout $(git describe --tags --abbrev=0)
git submodule update --init
cp .env.example .env

Then setup .env file, provide OPENAPI key, set use_openapi_embedding to True

pnpm install --no-frozen-lockfile
pnpm build
pnpm start --characters="eliza/characters/eternalai.character.json"
pnpm start:client

I cant see vscode show the port that I expect REST API will bound to
Here is the log after I run pnpm start --characters="eliza/characters/eternalai.character.json"
 WARN  Unsupported engine: wanted: {"node":"23.3.0"} (current: {"node":"v23.6.0","pnpm":"9.12.3"})

eliza@ start /home/khanh/aidenlabs/eliza
pnpm --filter "@elizaos/agent" start --isRoot "--characters=eliza/characters/eternalai.character.json"

. |  WARN  Unsupported engine: wanted: {"node":"23.3.0"} (current: {"node":"v23.6.0","pnpm":"9.15.0"})
docs |  WARN  Unsupported engine: wanted: {"node":"23.3.0"} (current: {"node":"v23.6.0","pnpm":"9.15.0"})

@elizaos/[email protected] start /home/khanh/aidenlabs/eliza/agent
node --loader ts-node/esm src/index.ts "--isRoot" "--characters=eliza/characters/eternalai.character.json"

(node:2679015) ExperimentalWarning: --experimental-loader may be removed in the future; instead use register():
--import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("ts-node/esm", pathToFileURL("./"));'
(Use node --trace-warnings ... to show where the warning was created)
(node:2679015) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use node --trace-deprecation ... to show where the warning was created)
[2025-02-27 08:45:26] INFO: Loading embedding settings:
USE_OPENAI_EMBEDDING: "TRUE"
USE_OLLAMA_EMBEDDING: ""
OLLAMA_EMBEDDING_MODEL: "mxbai-embed-large"
(node:2679015) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
[2025-02-27 08:45:26] INFO: Loading character settings:
ARGV: [
"/home/khanh/.nvm/versions/node/v23.6.0/bin/node",
"/home/khanh/aidenlabs/eliza/agent/src/index.ts",
"--isRoot",
"--characters=eliza/characters/eternalai.character.json"
]
CWD: "/home/khanh/aidenlabs/eliza/agent"
[2025-02-27 08:45:26] INFO: Parsed settings:
USE_OPENAI_EMBEDDING: "TRUE"
USE_OPENAI_EMBEDDING_TYPE: "string"
USE_OLLAMA_EMBEDDING: ""
USE_OLLAMA_EMBEDDING_TYPE: "string"
OLLAMA_EMBEDDING_MODEL: "mxbai-embed-large"
[2025-02-27 08:45:26] INFO: Trying paths:
0: {
"path": "eliza/characters/eternalai.character.json",
"exists": false
}
1: {
"path": "/home/khanh/aidenlabs/eliza/agent/eliza/characters/eternalai.character.json",
"exists": false
}
2: {
"path": "/home/khanh/aidenlabs/eliza/agent/agent/eliza/characters/eternalai.character.json",
"exists": false
}
3: {
"path": "/home/khanh/aidenlabs/eliza/agent/src/eliza/characters/eternalai.character.json",
"exists": false
}
4: {
"path": "/home/khanh/aidenlabs/eliza/agent/src/characters/eternalai.character.json",
"exists": false
}
5: {
"path": "/home/khanh/aidenlabs/eliza/agent/characters/eternalai.character.json",
"exists": false
}
6: {
"path": "/home/khanh/aidenlabs/eliza/characters/eternalai.character.json",
"exists": true
}
[2025-02-27 08:45:26] INFO: Successfully loaded character from: /home/khanh/aidenlabs/eliza/characters/eternalai.character.json
[2025-02-27 08:45:26] INFO: TrollDetective.Exe(025e0996-69d7-0dce-8189-390e354fd1c1) - Initializing AgentRuntime with options:
character: "TrollDetective.Exe"
modelProvider: "openai"
characterModelProvider: "openai"
[2025-02-27 08:45:26] INFO: TrollDetective.Exe(025e0996-69d7-0dce-8189-390e354fd1c1) - Setting Model Provider:
characterModelProvider: "openai"
optsModelProvider: "openai"
finalSelection: "openai"
[2025-02-27 08:45:26] INFO: TrollDetective.Exe(025e0996-69d7-0dce-8189-390e354fd1c1) - Selected model provider: openai
[2025-02-27 08:45:26] INFO: TrollDetective.Exe(025e0996-69d7-0dce-8189-390e354fd1c1) - Selected image model provider: openai
[2025-02-27 08:45:26] INFO: TrollDetective.Exe(025e0996-69d7-0dce-8189-390e354fd1c1) - Selected image vision model provider: openai
[2025-02-27 08:45:26] INFO: Initializing SQLite database at /home/khanh/aidenlabs/eliza/agent/data/db.sqlite...
[2025-02-27 08:45:26] INFO: Using Database Cache...
[2025-02-27 08:45:26] INFO: Run pnpm start:client to start the client and visit the outputted URL (http://localhost:5173) to chat with your agents. When running multiple agents, use client with different port SERVER_PORT=3001 pnpm start:client

No line show that rest API is working
Please help

Copy link
Contributor

Hello @lqkhanh195! Welcome to the elizaOS community. Thank you for opening your first issue; we appreciate your contribution. You are now an elizaOS contributor!

@mohsinn3
Copy link

@lqkhanh195 Hey I'm having the same issue, please let me know here if you figure it out

@lqkhanh195
Copy link
Author

@lqkhanh195 Hey I'm having the same issue, please let me know here if you figure it out

Solved. You can use v0.1.9 to solve this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants