project_openai_codex icon indicating copy to clipboard operation
project_openai_codex copied to clipboard

POST http://localhost:5000/ 500 (Internal Server Error)

Open Priyanshu88 opened this issue 2 years ago • 29 comments

image Screenshot 2023-01-03 140614 image image I have signed up through my mail and password and have done phone verification for api key but the issue is same and it pops up as: image image

Priyanshu88 avatar Jan 03 '23 08:01 Priyanshu88

I have the same issue

DamionD83 avatar Jan 03 '23 15:01 DamionD83

Same issue with me , Did anyone know the solution please mention

Spoorthi-M-spoo avatar Jan 05 '23 18:01 Spoorthi-M-spoo

I didn't get

On Fri, 6 Jan 2023, 2:42 pm Abhishek Kumar, @.***> wrote:

try changing model name in "createCompletion" function that worked for me

— Reply to this email directly, view it on GitHub https://github.com/adrianhajdin/project_openai_codex/issues/16#issuecomment-1373377941, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASW2H3OYG2O5AVZBHYT4GTLWQ7OYLANCNFSM6AAAAAATPOR7AU . You are receiving this because you commented.Message ID: @.***>

Spoorthi-M-spoo avatar Jan 06 '23 16:01 Spoorthi-M-spoo

Hello guys I got the solution Just move .env file into the Server folder , I repeat just move .env file into server folder because , In the video he made .env file Outside to server file and thats why in the server.js it was not able to fetch OPENAI_API_KEY

aditimahabole avatar Jan 07 '23 11:01 aditimahabole

Same issue with me , Did anyone know the solution please mention

I have mentioned it

aditimahabole avatar Jan 07 '23 11:01 aditimahabole

image Screenshot 2023-01-03 140614 image image I have signed up through my mail and password and have done phone verification for api key but the issue is same and it pops up as: image image

I have solved the issue please check comment section here

aditimahabole avatar Jan 07 '23 11:01 aditimahabole

Thank you very much @aditimahabole . I have signed up through my mail and password and have done phone verification for api key but the issue is same for 429 and it pops up as: image

Priyanshu88 avatar Jan 07 '23 11:01 Priyanshu88

Thank you very much @aditimahabole . I have signed up through my mail and password and have done phone verification for api key but the issue is same for 429 and it pops up as: image

still having problem or is it solved?

aditimahabole avatar Jan 07 '23 14:01 aditimahabole

Hello guys I got the solution Just move .env file into the Server folder , I repeat just move .env file into server folder because , In the video he made .env file Outside to server file and thats why in the server.js it was not able to fetch OPENAI_API_KEY

i also followed the following steps the too an error occuered image

HarshTambade avatar Jan 08 '23 07:01 HarshTambade

Screenshot (47)

Im getting this

Spoorthi-M-spoo avatar Jan 08 '23 13:01 Spoorthi-M-spoo

Same

DamionD83 avatar Jan 08 '23 13:01 DamionD83

Screenshot (48)

now I am getting proper response for some and for others have an issue as above

Spoorthi-M-spoo avatar Jan 08 '23 15:01 Spoorthi-M-spoo

What did you have to do?

DamionD83 avatar Jan 08 '23 19:01 DamionD83

Codex_ControlQuestionMark3

DamionD83 avatar Jan 08 '23 19:01 DamionD83

I posted this on another thread: Do NOT use ports 5000 or 7000 on MacOS boxes. They are used by the system for over a year now. I use 7070, and it works great. Solution found for me.

https://developer.apple.com/forums/thread/682332

KevinEverywhere avatar Jan 08 '23 23:01 KevinEverywhere

@aditimahabole I am still getting 429 error.

Priyanshu88 avatar Jan 11 '23 15:01 Priyanshu88

change the secret key ,make a new secret key from OPEN AI ->VIEW APIS and then paste it in env file and use another port number

aditimahabole avatar Jan 12 '23 05:01 aditimahabole

I changed the key and the port number too but still having the same error. https://a-t-a-i-s.vercel.app/ this is your deployed one right?

Priyanshu88 avatar Jan 12 '23 06:01 Priyanshu88

no this is not mine

On Thu, Jan 12, 2023 at 11:39 AM PRIYANSHU PANDEY @.***> wrote:

https://a-t-a-i-s.vercel.app/ this is your deployed one right?

— Reply to this email directly, view it on GitHub https://github.com/adrianhajdin/project_openai_codex/issues/16#issuecomment-1379859574, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASY2UVXTJ2QHIOJ3P5T5QI3WR6NY7ANCNFSM6AAAAAATPOR7AU . You are receiving this because you were mentioned.Message ID: @.***>

aditimahabole avatar Jan 12 '23 06:01 aditimahabole

Can i see your project repository and test the deployed site?

Priyanshu88 avatar Jan 12 '23 06:01 Priyanshu88

i haven't deployed it because same error was showing up as you but it worked perfectly wgen we strarted from VS code .so i m sorry i wont be able to solve this problem because even if your server is running properly then also that error pops up

aditimahabole avatar Jan 12 '23 15:01 aditimahabole

https://github.com/aditimahabole/A.T.A.I.S the repo @Priyanshu88

aditimahabole avatar Jan 12 '23 15:01 aditimahabole

@aditimahabole It's okay. I guess this is the problem with most of the people here. Although, I had already checked out your repository and yours contributor repository too and tested the deployed version of him and the error is there too. Let me know if you find any solution further. Thanks:)

Priyanshu88 avatar Jan 13 '23 06:01 Priyanshu88

I also got the same problem but i Solved the issue by doing these things: i) Move the .env file to server folder ii) Please check if the name of api key given in .env file is same as you have declared in server.js.

i checked the above two things and my code started working

hardiii13 avatar Jan 16 '23 06:01 hardiii13

I have checked both the error is same.

Priyanshu88 avatar Jan 19 '23 08:01 Priyanshu88

Can you show the snippet of code where you are getting errors.

hardiii13 avatar Jan 19 '23 08:01 hardiii13

I've moved the .env in the server , my API keys are matching , the app is working locally but when I want to deploy it I have the following error. Codex - Your Coding AI - Google Chrome 2_1_2023 12_33_34 AM

alexandra0606 avatar Jan 31 '23 22:01 alexandra0606

It's the problem with your API calling . You can try creating new api key and adding it

hardiii13 avatar Feb 02 '23 06:02 hardiii13

I don't think the api is available for free. that's why code 401 exists

haile17 avatar Apr 04 '23 06:04 haile17