Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimized server code + added comments #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sanukjoseph
Copy link

Added server code optimization + added comments to each server functions + changed key event from 37 to "enter"

@yitbe22
Copy link

yitbe22 commented Dec 24, 2022

The website is not working

@RosaMoran
Copy link

after deployment the code was working good but then i got a status 401 and I do not why, I checked everything

@MathewzVk
Copy link

Error: Request failed with status code 429, please help..

@crocmons
Copy link

crocmons commented Dec 28, 2022

Error: Request failed with status code 429, please help..
@MathewzVk

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 Issue Solved/ Render deploy Issue:
Make sure that your localhost is closed that is not up & running while deploying because it conflicts with your API key with the locally deployed API key.
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 the client
then hit deploy
that's all ..
My code is perfectly working on live deployment.

@R0LEX7
Copy link

R0LEX7 commented Jan 20, 2023

Error: Request failed with status code 429, please help..
@MathewzVk

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 Issue Solved/ Render deploy Issue: Make sure that your localhost is closed that is not up & running while deploying because it conflicts with your API key with the locally deployed API key. 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 the client then hit deploy that's all .. My code is perfectly working on live deployment.

i got error " error 401 request failed with status code" is your steps work ??

@bisen-del
Copy link

after deployment the code was working good but then i got a status 401 and I do not why, I checked everything

In server code, you have to use your OpenAPI key .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants