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: Cannot read properties of null (reading 'queueTextCompletion') #168

Closed
sirkitree opened this issue Nov 2, 2024 · 0 comments
Closed
Labels
bug Something isn't working Client: Discord

Comments

@sirkitree
Copy link
Collaborator

Describe the bug

After starting from scratch and starting my bot I am able to receive messages from discord, but then get the following error:

Message: {
  content: {
    text: 'hi <@1300173507702816888>',
    attachments: [],
    source: 'discord',
    url: 'https://discord.com/channels/1300170503234916418/1300170503234916421/1302276818853691413',
    inReplyTo: undefined
  },
  userId: '1efce0ea-0f8a-0f76-93d6-f422a3c0bf50',
  roomId: '11c9ce61-dc0f-05de-986d-2ef785d9327d'
}
Error in wallet provider: Wallet public key is not configured in settings
Not ignoring message: hi <@1300173507702816888>
Received a message from  sirkitree
hi <@1300173507702816888>
Checking if should respond
Responding
Error in generateText: TypeError: Cannot read properties of null (reading 'queueTextCompletion')
    at generateText (file:///C:/Users/sirki/repos/eliza/core/src/core/generation.ts:77:55)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async generateMessageResponse (file:///C:/Users/sirki/repos/eliza/core/src/core/generation.ts:296:30)
    at async MessageManager._generateResponse (file:///C:/Users/sirki/repos/eliza/core/src/clients/discord/messages.ts:469:26)
    at async MessageManager.handleMessage (file:///C:/Users/sirki/repos/eliza/core/src/clients/discord/messages.ts:182:37)
ERROR: TypeError: Cannot read properties of null (reading 'queueTextCompletion')
    at generateText (file:///C:/Users/sirki/repos/eliza/core/src/core/generation.ts:77:55)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async generateMessageResponse (file:///C:/Users/sirki/repos/eliza/core/src/core/generation.ts:296:30)
    at async MessageManager._generateResponse (file:///C:/Users/sirki/repos/eliza/core/src/clients/discord/messages.ts:469:26)
    at async MessageManager.handleMessage (file:///C:/Users/sirki/repos/eliza/core/src/clients/discord/messages.ts:182:37)
*** LOG: moriarty_Sat, 02 Nov 2024 14-23-09 GMT_discord_message_context

To Reproduce

  1. git pull origin main
  2. del any node_module directories
  3. pnpm install
  4. cd core
  5. node --loader ts-node/esm src/index.ts --characters="characters/moriarty.character.json" (or whatever character)

Expected behavior

I expect the bot to respond to me in Discord without error.

@sirkitree sirkitree added bug Something isn't working Client: Discord labels Nov 2, 2024
sirkitree added a commit that referenced this issue Nov 2, 2024
- adds some debug into generation regarding which module is in use

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

Successfully merging a pull request may close this issue.

1 participant