Giter Club home page Giter Club logo

Comments (5)

rahul-0000-code avatar rahul-0000-code commented on July 17, 2024

Make sure that your Server folder has no gitignore file the gitignore file should be on the root folder..then it works..

didnt work

from project_openai_codex.

crocmons avatar crocmons commented on July 17, 2024

Make sure that your Server folder has no gitignore file the gitignore file should be on the root folder..then it works..

didnt work

@rahul-0000-code
at first sign up in the OPENAI website with your Email address and password ...do the phone verification ...that gives the free trial of $18 so that you can use your api key & it don't gives you the 401 error code will perfectly works...don't use your sign up with gmail for create an account..the issue is coming because you have no balance on your account to up & running your project.

from project_openai_codex.

kingqabil avatar kingqabil commented on July 17, 2024

Create another API Key and update it again it will work

from project_openai_codex.

piyush-mahajan avatar piyush-mahajan commented on July 17, 2024

Create another API Key and update it again it will work

i created another api key but still it is not working

from project_openai_codex.

willgoncdev avatar willgoncdev commented on July 17, 2024

@rahul-0000-code @piyush-mahajan, if you still getting the 401 error and you follow every step of the video, the issue could be that when he made a cut on the video at 51:59, he starts explaining how to upload to GitHub, so naturally you "git init" and then "git add ." , then at 52:15 he starts the process all over, but before "git init" he tells us to create the ".gitignore", and then "git init" again...

So because of that, Git is tracking ".env" already because of that "git init" and "git add ." at 51:59 of the video... I believe that was an error when he was editing... that could be causing your OpenAPI Key to "Rotate" and not be valid anymore for security reasons (because it's being exposed on GitHub), so if you replace the key and push your changes again the same is going to happen...

So one of the ways you can try to fix it is by running this on the root folder terminal

"git rm .env --cached"
"git commit -m "Stopped tracking .env File"

now delete the ".env" file, and push your changes again, so after that git would be stopping tracking that file, and follow the rules of ".gitignore"...
now you can create the ".env" file again with the new key and push the changes... (don't forget to replace the key on the server too)

I hope it helps!

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.