Code Monkey home page Code Monkey logo

Comments (10)

privatenumber avatar privatenumber commented on May 31, 2024 1

Duplicate of #5

The latest release should log the specific error from OpenAI

from aicommits.

Nutlope avatar Nutlope commented on May 31, 2024

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.

madebyfabian avatar madebyfabian commented on May 31, 2024

@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.

Nutlope avatar Nutlope commented on May 31, 2024

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.

madebyfabian avatar madebyfabian commented on May 31, 2024

@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.

Nutlope avatar Nutlope commented on May 31, 2024

@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.

nelodev avatar nelodev commented on May 31, 2024

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.

image

from aicommits.

yusefren avatar yusefren commented on May 31, 2024

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.

yusefren avatar yusefren commented on May 31, 2024

Further reference
Devs are experiencing the outage often

https://community.openai.com/t/continuous-gpt3-api-500-error-the-server-had-an-error-while-processing-your-request-sorry-about-that/42239/9

Same as #5

from aicommits.

dilraj-vidyard avatar dilraj-vidyard commented on May 31, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.