mukulpatnaik / researchgpt

A LLM based research assistant that allows you to have a conversation with a research paper
https://www.dara.chat
MIT License
3.55k stars 340 forks source link

[google cloud deployment] SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON #40

Closed joohayoung closed 1 year ago

joohayoung commented 1 year ago

It worked fine local, but the following error occurred after google cloud deployment.

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

I think... It seems to be a fetch and .then problem. JavaScript code expected to receive JSON but got something else instead (probably HTML in the form of a server-side error).

Thanks for any help.

mukulpatnaik commented 1 year ago

Hi @joohayoung my apologies I have moved off google cloud now as it was giving me a lot of issues. I have made a major refactor of the code, fixing many issues and moving from flask to fastapi, if you are still interested please consider running git fetch to update your code to the latest version and try following the steps in the README to run the app. Thanks for trying it!