Comments (7)
Using the supabase keys from supabase status
in the .env
I am seeing the same errors.
:3000/api/vector-search:1
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
client.js:1
{
"isTrusted": false,
"data": "{\"error\":\"There was an error processing your request\"}",
"source": {...},
"payload": "{\"query\":\"what are embeddings?\"}",
"method": "POST",
"withCredentials": false,
"FIELD_SEPARATOR": ":",
"listeners": {...},
"xhr": null,
"readyState": 2,
"progress": 0,
"chunk": ""
}
}
[TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))]
<w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (1673kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
[TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))]
Edit: The issue was the OpenAI.
Despite having given them my payment info and generated an API key, I needed to enable the api by
- visiting https://platform.openai.com/account,
- going to
Billing > Overview
- clicking the
Set up paid account
button - re-entering my billing info
from nextjs-openai-doc-search.
This seems to be an error within the vercel edge function. Can you check the logs in your vercel Dashboard please?
from nextjs-openai-doc-search.
Yeah I'm getting same behaviour on the 'Deploy direct to vercel starter version' and definitely getting some errors with the edge function "/api/vector-search"
TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
at (vc/edge/function:50126:3123)
at (vc/edge/function:120:10949)
from nextjs-openai-doc-search.
Can you try running the project locally and see if that renders any more helpful error messages?
If you need some help with the local development steps, can follow the video guide: https://www.youtube.com/watch?v=xmfNUCjszh4
from nextjs-openai-doc-search.
i am facing the similar issue on deploying
from nextjs-openai-doc-search.
I encountered this exact error and realized my role key and anon key is missing. Do this:-
- Run supabase start
- Run supabase status
- Copy the service role key and anon key into your env file.
- Run pnpm dev, it should work now
I am running a local version, not the cloud deploy
from nextjs-openai-doc-search.
Thanks for outlining the resolution steps. Closing this out.
from nextjs-openai-doc-search.
Related Issues (20)
- Add native login capabilities HOT 1
- Chat list is not up to date / not working
- list of users do not appear in order
- Usage of gpt-3.5-turbo model HOT 15
- Add `vector-search` Vercel Edge Function
- I embedded a document that says: Hello, you are an actor. A very good actor. You can also speak Chinese. But there was no response when I asked. HOT 4
- 经常出现Sorry, I don't know how to help with that. HOT 1
- Sorry, I don't know how to help with that. HOT 2
- Reply with images HOT 4
- Error: Cannot find module 'openai' HOT 4
- Anway to ask it what it knows? HOT 1
- Error: `Failed to match page sections: {"code":"PGRST301","details":null,"hint":null,"message":"JWSError JWSInvalidSignature"}` HOT 2
- Long replies breaks the app HOT 3
- Modify code to implement streaming (for serverless)
- Cannot generate embeddings HOT 12
- Page *page-name* or one/multiple of its page sections failed to store properly. Page has been marked with null checksum to indicate that it needs to be re-generated.
- Addressing Runtime Error on Initial Project Setup HOT 1
- New user of supabase, how can I add datas and files STEP BY STEP into supabase and let them connect with my website? HOT 7
- Deployment Fails When Trying to Deploy Template From Vercel.ai Page HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nextjs-openai-doc-search.