developersdigest / llm-answer-engine

Build a Perplexity-Inspired Answer Engine Using Next.js, Groq, Llama-3, Langchain, OpenAI, Upstash, Brave & Serper
https://developersdigest.tech
MIT License
4.68k stars 744 forks source link

UPSTASH_VECTOR_REST_TOKEN is missing Error #52

Closed usa3234 closed 5 months ago

usa3234 commented 5 months ago

I am encountering an error related to the UPSTASH_VECTOR_REST_TOKEN environment variable when trying to run the server. The error log is as follows:

⨯ Error: UPSTASH_VECTOR_REST_TOKEN is missing! at eval (./app/action.tsx:65:19) at (rsc)/./app/action.tsx (/data/perplexica/llm-answer-engine/.next/server/app/page.js:4778:1) at webpack_require (/data/perplexica/llm-answer-engine/.next/server/edge-runtime-webpack.js:37:33) at fn (/data/perplexica/llm-answer-engine/.next/server/edge-runtime-webpack.js:318:21) at eval (./app/layout.tsx:14:65) at (rsc)/./app/layout.tsx (/data/perplexica/llm-answer-engine/.next/server/app/page.js:4822:1) at webpack_require (/data/perplexica/llm-answer-engine/.next/server/edge-runtime-webpack.js:37:33) at Function.fn (/data/perplexica/llm-answer-engine/.next/server/edge-runtime-webpack.js:318:21) ⨯ Error: UPSTASH_VECTOR_REST_TOKEN is missing! at eval (./app/action.tsx:65:19) at (rsc)/./app/action.tsx (/data/perplexica/llm-answer-engine/.next/server/app/page.js:4778:1) at webpack_require (/data/perplexica/llm-answer-engine/.next/server/edge-runtime-webpack.js:37:33) at fn (/data/perplexica/llm-answer-engine/.next/server/edge-runtime-webpack.js:318:21) at eval (./app/layout.tsx:14:65) at (rsc)/./app/layout.tsx (/data/perplexica/llm-answer-engine/.next/server/app/page.js:4822:1) at webpack_require (/data/perplexica/llm-answer-engine/.next/server/edge-runtime-webpack.js:37:33) at Function.fn (/data/perplexica/llm-answer-engine/.next/server/edge-runtime-webpack.js:318:21) digest: "1947390288" ⨯ Error: UPSTASH_VECTOR_REST_TOKEN is missing! at eval (./app/action.tsx:65:19) at (rsc)/./app/action.tsx (/data/perplexica/llm-answer-engine/.next/server/app/page.js:4778:1) at webpack_require (/data/perplexica/llm-answer-engine/.next/server/edge-runtime-webpack.js:37:33) at fn (/data/perplexica/llm-answer-engine/.next/server/edge-runtime-webpack.js:318:21) at eval (./app/layout.tsx:14:65) at (rsc)/./app/layout.tsx (/data/perplexica/llm-answer-engine/.next/server/app/page.js:4822:1) at webpack_require (/data/perplexica/llm-answer-engine/.next/server/edge-runtime-webpack.js:37:33) at Function.fn (/data/perplexica/llm-answer-engine/.next/server/edge-runtime-webpack.js:318:21) [Error: UPSTASH_VECTOR_REST_TOKEN is missing!] { digest: '552280776' } ⨯ [Error: UPSTASH_VECTOR_REST_TOKEN is missing!] { digest: '552280776' } ⨯ [TypeError: Cannot read properties of null (reading 'default')]

The server fails to start with the error UPSTASH_VECTOR_REST_TOKEN is missing! despite this token being optional as per the documentation. I only intend to use the following API keys: OPENAI_API_KEY, GROQ_API_KEY, BRAVE_SEARCH_API_KEY, and SERPER_API.

The server should start without requiring UPSTASH_VECTOR_REST_TOKEN since it is optional. please help me.

developersdigest commented 5 months ago

Hello, thank you

In the app/config.tsx, ensure the following value is set to false;

useSemanticCache: false

Cheers