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

Tried to create image for twitter but got this error #1935

Closed
sonatonagems opened this issue Jan 7, 2025 · 4 comments
Closed

Tried to create image for twitter but got this error #1935

sonatonagems opened this issue Jan 7, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@sonatonagems
Copy link

As mentioned in the title. My agent was running and has been replying and tweeting just fine, but then it generated an image prompt by itself and attempted to tweet it but i got the error below:

Can anybody explain to me what the issue was?

["ℹ "]

["ℹ "]

◎ LOGS
Image generation successful, number of images:
1

◎ LOGS
Processing image 1:
generated_1736201450409_0

◎ LOGS
Generated caption for image 1:
...

file:///home/sonat/eliza/node_modules/agent-twitter-client/dist/node/esm/index.mjs:2327
throw new Error(await response.text());
^

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

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

tcm390 commented Jan 7, 2025

duplicated: #1183

you need to disable the near plugin for it to work.

@tcm390 tcm390 closed this as completed Jan 7, 2025
@sonatonagems
Copy link
Author

@tcm390 how do i do that? thank you

@tcm390
Copy link
Collaborator

tcm390 commented Jan 7, 2025

Hello

remove this line:

import { nearPlugin } from "@elizaos/plugin-near";

and 538 to 542:

(getSecret(character, "NEAR_ADDRESS") ||

@sonatonagems
Copy link
Author

@tcm390 thank you for your help!

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