ansonbenny / ChatGPT

ChatGPT clone developed using MERN stack
https://chatgpt-8z57.onrender.com
MIT License
46 stars 17 forks source link

AxiosError request failed with 500 #7

Open sw9919108601 opened 7 months ago

sw9919108601 commented 7 months ago

IMG_20240312_224556

IMG_20240312_224550

ansonbenny commented 7 months ago

images are not showing/working

sw9919108601 commented 7 months ago

Help me if possible i dont know what wrong am I doing

ansonbenny commented 7 months ago

check in the back end openAi library is still working or not, server/routes/chat.js (91 & 141 line)

sw9919108601 commented 7 months ago

No sir i have checked backend openAi is not working I think there is no error in line 91 and 141 in chat.js

sw9919108601 commented 7 months ago

What could be the issue now I am getting AxiosError again and again..... Help me

sw9919108601 commented 7 months ago

IMG_20240313_152848 IMG_20240313_152916

Sir now I am getting error in this line I have checked all the possibilities and file imports everything is fine now what is wrong here....

ansonbenny commented 7 months ago

you should share exact error, console back end and share back end error

sw9919108601 commented 7 months ago

IMG_20240313_154617 IMG_20240313_154634 IMG_20240313_154625

Here are all code and files no error I got in backend I have consoled it also now what wrong am I doing I have exact code you have...

sw9919108601 commented 7 months ago

Hai sir I have uploadd the codes here what should be the changes here

sw9919108601 commented 7 months ago

Hai sir will you tell me what wrong am I doing....

sw9919108601 commented 7 months ago

I have uploaded all the codes you given and followed all the steps written in readme

sw9919108601 commented 7 months ago

Please help me

ansonbenny commented 7 months ago

I think the openAi library method is not working maybe they changed method or property of openAi method

On Wed, Mar 13, 2024, 7:16 PM sw9919108601 @.***> wrote:

I have uploaded all the codes you given and followed all the steps written in readme

— Reply to this email directly, view it on GitHub https://github.com/ansonbenny/ChatGPT/issues/7#issuecomment-1994445181, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWNWLFA3BRNVYIA5LHHAKJDYYBKETAVCNFSM6AAAAABESVGESSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJUGQ2DKMJYGE . You are receiving this because you commented.Message ID: @.***>

ansonbenny commented 7 months ago

Check openAi npm package documentation

On Wed, Mar 13, 2024, 7:18 PM Anson Benny @.***> wrote:

I think the openAi library method is not working maybe they changed method or property of openAi method

On Wed, Mar 13, 2024, 7:16 PM sw9919108601 @.***> wrote:

I have uploaded all the codes you given and followed all the steps written in readme

— Reply to this email directly, view it on GitHub https://github.com/ansonbenny/ChatGPT/issues/7#issuecomment-1994445181, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWNWLFA3BRNVYIA5LHHAKJDYYBKETAVCNFSM6AAAAABESVGESSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJUGQ2DKMJYGE . You are receiving this because you commented.Message ID: @.***>

sw9919108601 commented 7 months ago

I have gone through it I have already fired npm i openai in server terminal

I have been through the codes there every thing is fine I matched

If new tell me how will I do this...

sw9919108601 commented 7 months ago

IMG_20240313_193402 Sir error is here in src/page/chat.jsx:148

What is wrong here with code

I have copied your code if possible check the code you uploaded and help me what is new to update there please.....

ansonbenny commented 7 months ago

The error returning from back end

On Wed, Mar 13, 2024, 7:35 PM sw9919108601 @.***> wrote:

IMG_20240313_193402.jpg (view on web) https://github.com/ansonbenny/ChatGPT/assets/134361687/5ed14c77-e51e-40d5-a8a2-e6ccde8a419d Sir error is here in src/page/chat.jsx:148

What is wrong here with code

— Reply to this email directly, view it on GitHub https://github.com/ansonbenny/ChatGPT/issues/7#issuecomment-1994485738, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWNWLFFXL6H4V5UWBFJ5NMDYYBMKDAVCNFSM6AAAAABESVGESSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJUGQ4DKNZTHA . You are receiving this because you commented.Message ID: @.***>

ansonbenny commented 7 months ago

The error from openAi library prompt call

On Wed, Mar 13, 2024, 7:55 PM Anson Benny @.***> wrote:

The error returning from back end

On Wed, Mar 13, 2024, 7:35 PM sw9919108601 @.***> wrote:

IMG_20240313_193402.jpg (view on web) https://github.com/ansonbenny/ChatGPT/assets/134361687/5ed14c77-e51e-40d5-a8a2-e6ccde8a419d Sir error is here in src/page/chat.jsx:148

What is wrong here with code

— Reply to this email directly, view it on GitHub https://github.com/ansonbenny/ChatGPT/issues/7#issuecomment-1994485738, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWNWLFFXL6H4V5UWBFJ5NMDYYBMKDAVCNFSM6AAAAABESVGESSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJUGQ4DKNZTHA . You are receiving this because you commented.Message ID: @.***>