lordlinus / Enterprise-ChatGPT

A sample app using Azure Cognitive Search for retrieval and Azure OpenAI models to power ChatGPT-style and Q&A experiences.
MIT License
62 stars 44 forks source link

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

Open meenaramcalfire opened 1 year ago

meenaramcalfire commented 1 year ago

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.

lordlinus commented 1 year ago

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