Giter Club home page Giter Club logo

Comments (16)

Alia2006 avatar Alia2006 commented on August 16, 2024

same to me, it worked local, but get server error after deploy.

from project_openai_codex.

teejaywurld avatar teejaywurld commented on August 16, 2024

@Tanimou I would advise you go through the tutorial again but carefully this time around and then watch out for your capital and small letters. They might have been mixed up somewhere. Like in my own case, i misspelled "apiKey" with a small letter "k" and my code was showing error until i figured it out.

I hope this helps

from project_openai_codex.

Tanimou avatar Tanimou commented on August 16, 2024

I already did that teejaywurld. Here's a screeshot of what I get:
image

I think the problem is on the client side

from project_openai_codex.

teejaywurld avatar teejaywurld commented on August 16, 2024

@Alia2006 Did you follow the tutorial to the end?

I believe this issue was addressed there towards the end of the tutorial

from project_openai_codex.

teejaywurld avatar teejaywurld commented on August 16, 2024

@Tanimou I would still advise you go over your code again and compare it to the tutorial you watched.

There must have been a mix up somewhere down the line while writing your code.

from project_openai_codex.

Alia2006 avatar Alia2006 commented on August 16, 2024

@Alia2006 Did you follow the tutorial to the end?

I believe this issue was addressed there towards the end of the tutorial

Yes, I have followed to the end. I guess you are saying the updtae server url part. the deployed server can response the text 'Hello from CodeX!' and when fectch in client code get repsonse with 401
image

from project_openai_codex.

Tanimou avatar Tanimou commented on August 16, 2024

Exactly same for me but with status code 429. It's really weird. Did you fix this Alia? After some research on that, they said that this error occurs because the client sends too many requests in a short time, so the server sends this error to kind of say: "woowooo calm down buddy, you too fast".

from project_openai_codex.

Tanimou avatar Tanimou commented on August 16, 2024

@teejaywurld I forked his repo to try on my side and I still have the same 429 code error. I think now maybe it's the region I don't know

from project_openai_codex.

crocmons avatar crocmons commented on August 16, 2024

@Alia2006 Did you follow the tutorial to the end?
I believe this issue was addressed there towards the end of the tutorial

Yes, I have followed to the end. I guess you are saying the updtae server url part. the deployed server can response the text 'Hello from CodeX!' and when fectch in client code get repsonse with 401 image

@Alia2006 I solve the issue of 429 getting an HTTP Error....
you have to sign up for OpenAI with your own email address (not sign up with google) and do phone verification then it will give you the free trial of $18 ..and then the code will perfectly work.

from project_openai_codex.

crocmons avatar crocmons commented on August 16, 2024

@teejaywurld I forked his repo to try on my side and I still have the same 429 code error. I think now maybe it's the region I don't know

@Tanimou I solve the issue of 429 getting an HTTP Error....
you have to sign up for OpenAI with your own email address (not sign up with google) and do phone verification then it will give you the free trial of $18 ..and then the code will perfectly work.

from project_openai_codex.

Tanimou avatar Tanimou commented on August 16, 2024

@crocmons I have to sign up where? 😅

from project_openai_codex.

TidbitsJS avatar TidbitsJS commented on August 16, 2024

@crocmons I have to sign up where? sweat_smile

Sign up here and get the secret/API key:
https://beta.openai.com/signup

from project_openai_codex.

RosaMoran avatar RosaMoran commented on August 16, 2024

@Tanimou if you look this screenshot you have to make a new key then add it to .env and also add it into render => Environment paste the new key and save it

Screenshot from 2022-12-27 13-40-32

you are going to get that error because on the openai site they check if you use your key as public then you are not going to be able to use their api, so you have to make a new one and use it where you have been using them.

In the tutorial there is a point where the gitignore doesn't work, I solved it by deleting the document from my repository and the env to make a push and then add it one more time inside the server with the env and the new key, make the push to add it and that's how it worked for me.

Screenshot from 2022-12-27 13-33-37

from project_openai_codex.

Tanimou avatar Tanimou commented on August 16, 2024

I finally managed to resolve the issue by effectively signing up with my email and also getting a new API key and replacing it in environment variable as well. Thanks @RosaMoran and @ @crocmons
image

from project_openai_codex.

crocmons avatar crocmons commented on August 16, 2024

@Tanimou My pleasure.

from project_openai_codex.

Tanimou avatar Tanimou commented on August 16, 2024

Thank also @teejaywurld and @TidbitsJS

from project_openai_codex.

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.