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

image generation bug. No work image generation #2583

Open
nikita17-py opened this issue Jan 17, 2025 · 2 comments
Open

image generation bug. No work image generation #2583

nikita17-py opened this issue Jan 17, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@nikita17-py
Copy link

❌ Error when generating an image: Response 502: Bad gateway

everything worked fine before but stopped 2 days ago. AI model fluх I am from Kazakhstan

@nikita17-py nikita17-py added the bug Something isn't working label Jan 17, 2025
@clarin-ebtio800090
Copy link

Hello, we tried to solve the issue.

This is what we did:

To address the 502 Bad Gateway error when generating images using the PollinationsAI provider, we'll add error handling and retry logic to the _generate_image method. This will help mitigate temporary server issues and improve reliability for users in different regions, including Kazakhstan.

You can review changes in this commit: clarin-ebtio800090@380222a.

Caution

Disclaimer: The concept of solution was created by AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.


Latta AI seeks to solve problems in open source projects as part of its mission to support developers around the world. Learn more about our mission at https://latta.ai/ourmission . If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.

@nikita17-py
Copy link
Author

Hello, we tried to solve the issue.

This is what we did:

To address the 502 Bad Gateway error when generating images using the PollinationsAI provider, we'll add error handling and retry logic to the _generate_image method. This will help mitigate temporary server issues and improve reliability for users in different regions, including Kazakhstan.

You can review changes in this commit: clarin-ebtio800090@380222a.

Caution

Disclaimer: The concept of solution was created by AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.

Latta AI seeks to solve problems in open source projects as part of its mission to support developers around the world. Learn more about our mission at https://latta.ai/ourmission . If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.

Sorry dude but I need AI Flux and not another one. Flux generated pictures very well. Unfortunately one morning a user of my telegram bot wrote to me in tech support and asked what error 502 I reviewed the entire code and in the end I didn't find a problem there I came to this decision there is some problem with the provider or the AI model or in the library

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

3 participants