Comments (10)
Duplicate of #5
The latest release should log the specific error from OpenAI
from aicommits.
Hey @madebyfabian, thanks for opening this issue! This error typically happens when you don't have the correct value for the OpenAI env variable. I recommend you do a printenv OPENAI_API_KEY
to see what value you have it set to and verify that it matches an API key that's on your OpenAI API dashboard. The API key should have no whitespaces and should be in the shape of sk-xxxxxxxxxxxxxxx
.
Could you verify you have the correct value for the env variable, open a brand new terminal, and try it out again?
from aicommits.
@Nutlope Thanks for your quick answer? The printenv
does return a value in this shape sk-xxxxxxxxxxxxxxxL0ku
. the Dashboard also shows this key and tells me it was last used today.
from aicommits.
Hmm, weird. I have no idea what's going on unfortunately. I may try to add a debugging flag to the CLI soon that shows detailed console messages so folks can debug in situations like this.
In the meantime, can I ask what operating system you're using @madebyfabian?
from aicommits.
@Nutlope Sure, using MacOS Ventura 13.0.1 (22A400).
Yeah maybe it would be great to catch that error before, so that when the key is not in a certain shape/undefined, it fails. Or maybe an API call to check if the key is valid.
from aicommits.
@madebyfabian Hmm that OS should definitely work. I agree that it'd be good to add better error handling for that, great idea.
Mind trying one more thing for me? I have a feeling it may be extra whitespace so could you do a unset OPENAI_API_KEY
to remove the env var, go directly to your .zshrc
by going to your root cd ~
then code .zshrc
to open it up, and add export OPENAI_API_KEY="sk---"
to the .zshrc
somewhere.
After all of that, open up a fresh terminal and try it one more time. If it works, then it was whitespace and I should just trim extra whitespace.
from aicommits.
To give more context, the same thing happens to me in random situations. Sometimes it works and sometimes it doesn't. It should be related to Open AI response time or something like that. A better error handling and a flag to debug if something is not working would do the work imho.
from aicommits.
I can confirm it is an Open AI issue
aicommits
▲ Welcome to AICommits!
▲ Generating your AI commit message...
{
error: {
message: 'The server had an error while processing your request. Sorry about that!',
type: 'server_error',
param: null,
code: null
}
}
from aicommits.
Further reference
Devs are experiencing the outage often
Same as #5
from aicommits.
Yeah, I am getting this too. I will report back this week if I am still having the issue.
Other info:
- MacOS Version: 13.2 (22D49)
- Node Version: v16.17.1
from aicommits.
Related Issues (20)
- Rate limit error when not limited HOT 1
- Local Setup Guide for Development and Testing HOT 4
- Pre-Commit Hook Not Working with Husky HOT 1
- Take into account previous commit messages HOT 5
- Add an option to accept whatever the suggestion is HOT 3
- Generate a commit message from an existing commit HOT 3
- Socket connection timeout
- AI commits crash when generating commit message
- aicommits uses first the envVar instead of the env in .aicommits file HOT 1
- Include Past commits HOT 1
- Prompt shouldn't include Character limit
- Generate Message Body
- aicommits hides the output of husky HOT 1
- Option to skip precommit checks HOT 1
- Error: Too many requests HOT 1
- Extract issue name from branch and append to commit message HOT 2
- Message sanitization should not always remove newlines
- Feature: Ollama integration HOT 6
- self-signed certificate in certificate chain
- Unable to Set OpenAI API Key HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aicommits.