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

Interaction.ts in twitter client error after generating image in image-generation plugin callback. #1921

Closed
denizekiz opened this issue Jan 6, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@denizekiz
Copy link
Contributor

Describe the bug
Interaction.ts in twitter-client throw error after image-generation plugin creates generating image in callback.

To Reproduce
force agent to select generate image action.

Expected behavior
Throws the below error.
◎ LOGS
Image prompt received:

In a futuristic cityscape awash with vibrant neon hues, two silhouetted figures stand against a backdrop of towering skyscrapers under a kaleidoscopic night sky. The mysterious duo, bathed in the warm glow of street lamps, exchange cryptic words as they ponder what lies ahead in this dystopian yet exhilarating world.

◎ LOGS
Image settings:
{}

◎ LOGS
Generating image with prompt:

In a futuristic cityscape awash with vibrant neon hues, two silhouetted figures stand against a backdrop of towering skyscrapers under a kaleidoscopic night sky. The mysterious duo, bathed in the warm glow of street lamps, exchange cryptic words as they ponder what lies ahead in this dystopian yet exhilarating world.

ℹ INFORMATIONS
Generating image with options:
{"imageModelProvider":"dall-e-3"}

◎ LOGS
Image generation successful, number of images:
1

◎ LOGS
Processing image 1:
generated_1736166224120_0

◎ LOGS
Generated caption for image 1:
...

file:///root/workspace/elizavision/eliza/node_modules/agent-twitter-client/dist/node/esm/index.mjs:2334
throw new Error(await response.text());
^

Error: {"errors":[{"code":38,"message":"media parameter is missing."}]}
at uploadMedia (file:///root/workspace/elizavision/eliza/node_modules/agent-twitter-client/dist/node/esm/index.mjs:2334:13)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Promise.all (index 0)
at async createCreateTweetRequest (file:///root/workspace/elizavision/eliza/node_modules/agent-twitter-client/dist/node/esm/index.mjs:1975:22)
at async Scraper.sendTweet (file:///root/workspace/elizavision/eliza/node_modules/agent-twitter-client/dist/node/esm/index.mjs:3503:12)
at async file:///root/workspace/elizavision/eliza/packages/client-twitter/dist/index.js:14:36
at async RequestQueue.processQueue (file:///root/workspace/elizavision/eliza/packages/client-twitter/dist/index.js:32:17)

Node.js v23.3.0
/root/workspace/elizavision/eliza/agent:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @elizaos/[email protected] start: node --loader ts-node/esm src/index.ts "--isRoot" "--characters=./characters/racervision.character.json"
Exit status 1
 ELIFECYCLE  Command failed with exit code 1.
Screenshots
interact

Additional context

@denizekiz denizekiz added the bug Something isn't working label Jan 6, 2025
@tcm390
Copy link
Collaborator

tcm390 commented Jan 6, 2025

Hello @denizekiz, this is a duplicate of #1183. Let's continue the discussion there. In the meantime, you need to disable the Near plugin to make it work.

@tcm390 tcm390 closed this as completed Jan 6, 2025
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