openai-chatbot
openai-chatbot copied to clipboard
AxiosError: Network Error
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)

Hi @sandyrs9421 , I'm also facing the same error do you have any idea to clear this error please help me @sandyrs9421
Your server probably needs cors to be configured.
@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