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

TypeError while generating a message response #657

Closed
vvisigoth opened this issue Nov 28, 2024 · 1 comment
Closed

TypeError while generating a message response #657

vvisigoth opened this issue Nov 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@vvisigoth
Copy link

Describe the bug

Receive the following error when trying to chat after first boot:

(I put a printf before the error to try to see why it's throwing the error)


You: Hello
Response {
  status: 405,
  statusText: 'Method Not Allowed',
  headers: Headers {
    date: 'Thu, 28 Nov 2024 21:56:32 GMT',
    server: 'uvicorn',
    'content-length': '31',
    'content-type': 'application/json',
    'x-process-time': '0'
  },
  body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true },
  bodyUsed: false,
  ok: false,
  redirected: false,
  type: 'basic',
  url: 'http://localhost:3000/trump/message'
}
Error fetching response: TypeError: data.forEach is not a function
    at handleUserInput (file:///Users/redacted/se01/eliza/agent/src/index.ts:274:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async file:///Users/redacted/se01/eliza/agent/src/index.ts:234:13

To Reproduce

Happens after first chat message after first boot.

Expected behavior

Eliza produces a coherent response to the prompt.

Additional context

This is on v0.1.4-alpha3, macOS, node v23.3

I've tried this with an openai key and a xai key (trying to figure out if it was an API issue on that side) and the same error happens with both.

@vvisigoth vvisigoth added the bug Something isn't working label Nov 28, 2024
@vvisigoth
Copy link
Author

This was a problem on my box. Can someone close/delete?

@tcm390 tcm390 closed this as completed Dec 1, 2024
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

2 participants