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

Improve error when OPENAI_API_KEY is not specified/backend is misconfigured #54

Open
tomusher opened this issue Jan 19, 2024 · 1 comment

Comments

@tomusher
Copy link
Member

When an OPENAI_API_KEY is not provided, or there are other configuration failures in the AI backend, triggering a rich text integration will crash the editor with no useful error messages.

These should be handled gracefully with a clearer error.

@dostogircse171
Copy link

Hi @tomusher I want to work on this issue. Any details for me?
I checked the issue and found where it's coming from. What I can see is that the issue is coming from def process(request): function of views.py we need a try-except block here before processing the request.

I will do a PR soon and if you have more information for me feel free to provide.

Thanks
-Golam

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