Azure-Samples / azure-search-openai-javascript

A TypeScript sample app for the Retrieval Augmented Generation pattern running on Azure, using Azure AI Search for retrieval and Azure OpenAI and LangChain large language models (LLMs) to power ChatGPT-style and Q&A experiences.
MIT License
237 stars 121 forks source link

Fail to run locally #213

Open jianingwang123 opened 1 month ago

jianingwang123 commented 1 month ago

Describe the issue: When run locally according to the README , the error is as follows: image

image

Repro Steps:

  1. Create a new folder and switch to it in the terminal
  2. Run azd auth login
  3. Run azd init -t azure-search-openai-javascript
  4. Run azd up
  5. Run azd env get-values > .env to get the environment variables for the app
  6. Run az login
  7. Run npm start or run the "VS Code Task: Start App" to start the project locally.
  8. navigate to http://127.0.0.1:5173 and ask a question

Environment:

Expected behavior: Success to run locally.

@jongio and @sinedied for notification.

sinedied commented 1 month ago

Could you try opening the URL in a private browser window?

Seems like the error you're having is due to having too large cookies being sent to the server, but we don't use cookies. So it's likely to be caused by either browser extensions or other apps that were run on localhost.

jianingwang123 commented 1 month ago

@sinedied I opened the URL in a private browser window and the issue still reappeared: image image