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

http proxy error: /e0e10e6f-ff2b-0d4c-8011-1fc1eee7cb32/message #1669

Open
cxp-13 opened this issue Jan 2, 2025 · 4 comments
Open

http proxy error: /e0e10e6f-ff2b-0d4c-8011-1fc1eee7cb32/message #1669

cxp-13 opened this issue Jan 2, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@cxp-13
Copy link

cxp-13 commented Jan 2, 2025

Describe the bug

I checkout in main branch and running on WSL2, I have set the WSL2 proxy and it can normally access google.com eg.,
I set the SERVER_PORT as my local proxy port 7897.

  1. execute pnpm start --character="characters/trump.character.json" and pnpm start:client
  2. input some text on dialogue.
    The pnpm start:client terminal show
9:04:17 AM [vite] http proxy error: /e0e10e6f-ff2b-0d4c-8011-1fc1eee7cb32/message
Error: socket hang up
    at Socket.socketOnEnd (node:_http_client:542:25)
    at Socket.emit (node:events:525:35)
    at endReadableNT (node:internal/streams/readable:1696:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)

The pnpm start --character="characters/trump.character.json terminal show

file:///home/cxp/solana_learn/AI/eliza/packages/adapter-sqlite/dist/index.js:308
        const memories = this.db.prepare(sql).all(...queryParams);
                                              ^
SqliteError: Error reading 1st vector: zero-length vectors are not supported.
    at SqliteDatabaseAdapter.searchMemoriesByEmbedding (file:///home/cxp/solana_learn/AI/eliza/packages/adapter-sqlite/dist/index.js:308:47)
    at SqliteDatabaseAdapter.createMemory (file:///home/cxp/solana_learn/AI/eliza/packages/adapter-sqlite/dist/index.js:240:48)
    at MemoryManager.createMemory (file:///home/cxp/solana_learn/AI/eliza/packages/core/dist/index.js:3176:44)
    at async file:///home/cxp/solana_learn/AI/eliza/packages/client-direct/dist/index.js:250:13 {
  code: 'SQLITE_ERROR'
}

Node.js v23.5.0
/home/cxp/solana_learn/AI/eliza/agent:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @elizaos/[email protected] start: `node --loader ts-node/esm src/index.ts "--isRoot" "--character=characters/trump.character.json"`
Exit status 1

To Reproduce

Expected behavior

Can normally access the openai service

Screenshots

Additional context

@cxp-13 cxp-13 added the bug Something isn't working label Jan 2, 2025
@AIFlowML
Copy link
Contributor

AIFlowML commented Jan 2, 2025

What is the version of ElizaOS you running ? Are you able to run without the proxy activated ?

@cxp-13
Copy link
Author

cxp-13 commented Jan 3, 2025

What is the version of ElizaOS you running ? Are you able to run without the proxy activated ?

  1. version of ElizaOS
cxp@R9000P:~/solana_learn/AI/eliza$ git log
commit 76d4f42e5763f638095d1179b2e88afc03fb8896 (HEAD -> main, origin/main, origin/HEAD)
Author: GitHub Action <[email protected]>
Date:   Sat Dec 28 12:20:16 2024 +0000

    chore: update changelog
  1. Yes, I once tried to start with the default proxy localhost:3000 on vite.confit.ts, but it still has mistakes as mentioned above

@jackoelv
Copy link

jackoelv commented Jan 3, 2025

I have meet the same problem with tag v0.1.7-alpha.2.
It`s working correctly with tag v0.1.7-alpha.1

@lukaskai
Copy link

lukaskai commented Jan 4, 2025

Issue is in your agent/src/index.ts that it tries to load old SQLITE Db, which is probably incompatible.
Changing

process.env.SQLITE_FILE ?? path.resolve(dataDir, "db.sqlite");

To

process.env.SQLITE_FILE ?? path.resolve(dataDir, "devdb.sqlite");

Solved it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants