project_openai_codex icon indicating copy to clipboard operation
project_openai_codex copied to clipboard

Solution 401 & 429 Error

Open crocmons opened this issue 2 years ago • 9 comments

I solve the issue of 429 getting an HTTP Error & Solve the Render Deployment Issue.... 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.

401 Render deploy Issue Solved: Make sure that your Server folder has no gitignore file the gitignore file should be in the root folder.. then deploy the server to render.com and add also your environment key into the Environment variable Now Update your fetch URL on the client side by adding your back-end render deploy URL then open your terminal and do this thing -- git init git add . git commit -m "fetch URL or something you want" git push

That should be updated, your GitHub code . Now go to the vercel select your GitHub repo The root directory should be client then hit deploy that's all .. My code is perfectly working on the live deployment

crocmons avatar Dec 27 '22 10:12 crocmons

Excellent. Thanks for sharing that, @crocmons I'll give it a try now and will report back.

MackGrissom avatar Dec 27 '22 15:12 MackGrissom

Initially, I am getting the same error i.e. Error 429 but later on, optimizing my code the error changed to 401, tried to debug several times but still facing the same error, Any suggestions?

Here's the hosted link: https://codex-mauve-theta.vercel.app/

bhavesh1129 avatar Dec 27 '22 16:12 bhavesh1129

@MackGrissom @bhavesh1129 401 Issue Solved: Make sure that your Server folder has no gitignore file the gitignore file should be on the root folder.. then deploy the server to render.com and add also your environment key into the Environment Variable. Now Update your fetch URL on the client side by adding your back-end render deploy URL then open your terminal and do this thing -- git init git add . git commit -m "fetch URL or something you want" git push

That should be updated, your GitHub code . Now go to the vercel select your GitHub repo The root directory should be client then hit deploy that's all .. My code is perfectly working you can check it -- https://chatbot-nine-inky.vercel.app/

crocmons avatar Dec 27 '22 21:12 crocmons

@crocmons Thanks for responding but I did the same, still getting the same error.

bhavesh1129 avatar Dec 28 '22 08:12 bhavesh1129

@crocmons Thanks for responding but I did the same, still getting the same error.

@bhavesh1129 Make sure that your Server folder has no gitignore file the gitignore file should be on the root folder..

crocmons avatar Dec 28 '22 08:12 crocmons

if you get 401 error all you have to do is shut the server down and restart it. he had this same error in the video. thats it.

LifeCoachRay avatar Dec 30 '22 03:12 LifeCoachRay

"if you get 401 error all you have to do is shut the server down and restart it. he had this same error in the video. thats it."

How?

DamionD83 avatar Jan 04 '23 06:01 DamionD83

@crocmons I'm not able to deploy server side in render.com, It says running on localhost:5000 and after some time build fails

0xSaurabhx avatar Jan 04 '23 13:01 0xSaurabhx

make sure your backend and frontend server is running, when you fire up your app render will start its own server on it's own port. this is the localhost you pull up in the web browser.

LifeCoachRay avatar Jan 05 '23 05:01 LifeCoachRay