Skip to content

Errors on Vercel hosted version #11

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

Open
neilk17 opened this issue Mar 19, 2025 · 1 comment
Open

Errors on Vercel hosted version #11

neilk17 opened this issue Mar 19, 2025 · 1 comment

Comments

@neilk17
Copy link

neilk17 commented Mar 19, 2025

Description of the bug:

Keep getting this error with version hosted on vercel:

Error generating image: TypeError: Cannot read properties of undefined (reading 'parts')
at ee (.next/server/app/api/image/route.js:1:20210)

On the website the error is: "Failed to generate image"

Actual vs expected behavior:

No response

Any other information you'd like to share?

No response

@Shifat7
Copy link

Shifat7 commented Apr 21, 2025

It could be either:

  1. A typo with the model name or check if the API Keys are configured correctly
  2. If you call generateContent with both Text and Image modalities on an experimental image model, the API might return only one modality at a time—leaving content.parts undefined if it returns image-only data.

Let me know if these fix your problem @neilk17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants