lordlinus / Enterprise-ChatGPT

A sample app using Azure Cognitive Search for retrieval and Azure OpenAI models to power ChatGPT-style and Q&A experiences.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

meenaramcalfire opened this issue · comments

When i try to ask a particular question using chat option it gives the below error
SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

This issue is for a: (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

After 'azd up' tried running the static app link and it gives the following error when I ask a question in a chat.

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

likely the api response did not return a valid json.. i would double check if azure functions has all the settings needed for successful calls to other services