While using the application created with npx create-llama@latest --pro with FastAPI, frontend, and Pinecone integration, we encountered multiple errors affecting both frontend JSON parsing and backend API connections.
Frontend Error
An unhandled runtime error occurs in the frontend when the application attempts to parse an error message that is not valid JSON.
Error Message:
Unhandled Runtime Error
SyntaxError: Unexpected token 'e', "network error" is not valid JSON
Description
While using the application created with
npx create-llama@latest --pro
with FastAPI, frontend, and Pinecone integration, we encountered multiple errors affecting both frontend JSON parsing and backend API connections.Frontend Error
An unhandled runtime error occurs in the frontend when the application attempts to parse an error message that is not valid JSON.
Error Message:
Source:
Backend Error
In addition, a backend error occurs, likely due to connectivity issues when making requests to the OpenAI API, resulting in an
APIConnectionError
.Backend Error Traceback:
Steps to Reproduce
npx create-llama@latest --pro
template with FastAPI backend and frontend.Expected Behavior
SyntaxError
.Environment
npx create-llama@latest --pro
, FastAPI, Pinecone, OpenAI API