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 handling with OpenAI #318

Open
yellow1912 opened this issue May 2, 2024 · 4 comments
Open

Improve error handling with OpenAI #318

yellow1912 opened this issue May 2, 2024 · 4 comments

Comments

@yellow1912
Copy link

yellow1912 commented May 2, 2024

First of all, this is a very exciting project. Thank you for sharing.

I'm running into this issue when I try my first screenshot conversion:

ERROR: Exception in ASGI application

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1007)

(There are many error lines but I believe these are the most important)

Edit: this could be an issue with openai itself

https://status.openai.com/

image

@abi
Copy link
Owner

abi commented May 2, 2024

Can you post your full logs? Is this happening when you trying to connect to OpenAI?

@yellow1912
Copy link
Author

I'm sorry I dont have the log anymore. Yesterday openai was down for a few minutes and that was when I experienced the error (I only knew about that when I checked their website later). I think you can place a try catch when you attempt to connect to openai and returns an error message if the connection fails.

@abi abi changed the title Issue with SSL certificate Improve error handling with OpenAI May 2, 2024
@abi
Copy link
Owner

abi commented May 2, 2024

Nice, so it's working for you now?

@yellow1912
Copy link
Author

yes it is working perfectly, thank you for your effort. I'm quite happy with the result.

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