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

[bug] Connection Timeout Error Leading to Service Crash When Using ai generate code Feature #217

Open
swk777 opened this issue Aug 26, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@swk777
Copy link
Contributor

swk777 commented Aug 26, 2024

Steps to Reproduce
1. click the "edit cell using ai" button
2. fill in the prompt.
3. click the "generate" button.

Screenshot 2024-08-26 at 15 49 57
@benjreinhart
Copy link
Contributor

I think we saw something similar when a user did not have access to the model. Is it possible your API key does not permit access to chatgpt-4o-latest? cc @nichochar who I think saw this before.

@nichochar
Copy link
Contributor

nichochar commented Aug 27, 2024

No, I have not seen timeouts like this before. What we saw in the past was a "This model is not available for your account" error.

This looks suspiciously like an issue on the openAI side, especially given what I see on https://status.openai.com:
CleanShot 2024-08-27 at 10 06 30

@swk777 can you try again, and maybe also try a different model (you can switch to gpt-4o for example in the settings), and confirm that this is still an issue?

@swk777
Copy link
Contributor Author

swk777 commented Aug 30, 2024

I suppose the issue isn’t related to the OpenAI side. The timeout occurs when accessing openai.com, and the exception is thrown from generateText due to this, as there’s no protection against it in the code snippet shown.
Screenshot 2024-08-30 at 13 40 58

@nichochar nichochar added the bug Something isn't working label Sep 4, 2024
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

5 participants
@benjreinhart @swk777 @nichochar and others