#SOLVED: 429 Error on free trial from first try onward (I have definitely not exceeded my limit)

6 messages · Page 1 of 1 (latest)

amber osprey
#

Hiya, would really appreciate some help, I'm trying to get this going for the first time and I don't know where else to turn. 🙏

When I run this basic 'hello world' script, I get a 429 error ("too many requests" - log attached). This happened on the first and every time, so I don't see how a 429 makes sense. Uptime seems to be fine, and I've tried it at different times of day, when US is asleep etc. I've I've Googled a bunch but nothing seems to explain it.

Does anyone know what I can do about this?

Eternal gratitude! ✨

const openai = new OpenAIApi(configuration);

openai
  .createChatCompletion({
    model: "gpt-3.5-turbo",
    messages: [{ role: "user", content: "Hello world" }],
  })
  .then((res) => {
    console.log(res.data.choices[0].message.content);
  })
  .catch((e) => {
    console.log(e);
  });
oblique moat
#

Same, I keep getting this a whole lot these days, even on my first try after not requesting anything for hours.

flat cobalt
#

Same problem encountering

#

I even have a payment method setup, my team which is using their own free credit based api key are not facing this issue but i am encountering this and I am the only one testing through my apiKey for testing and it gives me error, part of the response:
type: 'default',
url: 'https://api.openai.com/v1/completions',
status: 429,
statusText: 'Too Many Requests',
I searched on stackoverflow and it said that try to generate a new apiKey which I did but still facing the same isssue I was not placing in the headers organization id I started placing that as well but still same issue, after every 3rd request for my app I get the above error.

amber osprey
#

Solved, here's what worked for me:
I was having this issue on the free trial.

In OpenAI > Manage account > Usage, I noticed a prompt saying "In order to use the OpenAI API, you need to set up a paid account." which was surprising, because I hadn't yet used my free trial.

I found this community thread: https://community.openai.com/t/how-can-i-get-free-trial-credits/26742/27

which said that free trials are allocated per phone number.

Then looking at the help docs: https://help.openai.com/en/articles/6613520-phone-verification

It says "Only the first API account verified with a given phone number is granted free trial tokens."

I had been trying this on the second account using the same phone number.
When I switched back to the first account I created, my free trial was available.

200 OK 😁

Good luck out there everyone!

#

SOLVED: 429 Error on free trial from first try onward (I have definitely not exceeded my limit)