openai-chatbot icon indicating copy to clipboard operation
openai-chatbot copied to clipboard

AxiosError: Network Error

Open sandyrs9421 opened this issue 2 years ago • 3 comments

Getting the below error . When i hit the local host on browser -

Unhandled Runtime Error AxiosError: Network Error

Call Stack XMLHttpRequest.handleError node_modules\axios\lib\adapters\xhr.js (154:0) image

sandyrs9421 avatar Mar 03 '23 14:03 sandyrs9421

Hi @sandyrs9421 , I'm also facing the same error do you have any idea to clear this error please help me @sandyrs9421

dinesh-dot-com avatar Mar 24 '23 09:03 dinesh-dot-com

Your server probably needs cors to be configured.

robinvriens avatar Apr 13 '23 09:04 robinvriens

@dinesh-dot-com - you need to configure server by running initial commands on server side. Run following commands and try it again .

commands - yarn init

yarn add koa @koa/router @koa/cors koa-bodyparser dotenv openai

yarn add nodemon --dev

and finally run yarn dev command to host it local

sandyrs9421 avatar Apr 13 '23 17:04 sandyrs9421