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

Issue Created: http proxy error: /e0e10e6f-ff2b-0d4c-8011-1fc1eee7cb32/message #1733

Closed
monilpat opened this issue Jan 3, 2025 · 2 comments
Labels
agent-generated For agent creation actions on pull requests, issues, and eventually milestones, releases etc. bug Something isn't working network

Comments

@monilpat
Copy link
Collaborator

monilpat commented Jan 3, 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/core/dist/index.js:3176:44)
    at MemoryManager.createMemory (file:///home/cxp/solana_learn/AI/eliza/packages/core/dist/index.js:240:48)
    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

@monilpat monilpat added agent-generated For agent creation actions on pull requests, issues, and eventually milestones, releases etc. bug Something isn't working network labels Jan 3, 2025
@monilpat monilpat closed this as not planned Won't fix, can't repro, duplicate, stale Jan 3, 2025
@TovarishFin
Copy link

I am running into the same issue and i might have a bit more context to add:

I ran into this while following along with the devschool youtube series. The error started popping up once I started adding something to memory:

// ...
            const response = await fetch(
                `https://newsapi.org/v2/everything?q=${searchTerm}&apiKey=${process.env.NEWS_API_KEY}`
            );
            const data = await response.json();
            return data.articles
                .slice(0, 5)
                .map(
                    (article) =>
                        `${article.title}\n${article.description}\n${article.content.slice(0, 1000)}`
                )
                .join("\n\n");
        }

        const context = `extract the search term from the user's message. the message is:
        ${message.content.text}

        only respond with the search term, do not include any other text.`;

        const searchTerm = await generateText({
            runtime,
            context,
            modelClass: ModelClass.SMALL,
            stop: ["\n"],
        });

        const currentNews = await getCurrentNews(searchTerm);
        const responseText =
            "the current news for " + searchTerm + " is: " + currentNews;

        const newMemory: Memory = {
            userId: message.userId,
            agentId: message.agentId,
            roomId: message.roomId,
            content: {
                text: responseText,
                source: message.content.source,
            } as Content,
        };

        // offending line of code... probably
        await runtime.messageManager.createMemory(newMemory);

        callback(newMemory.content);
// ...

@ViniciusSerafim
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent-generated For agent creation actions on pull requests, issues, and eventually milestones, releases etc. bug Something isn't working network
Projects
None yet
Development

No branches or pull requests

3 participants