Open okerivy opened 1 year ago
### when i run this command, it show : connect ETIMEDOUT 108.160.172.200:443
npm run embed
> paul-graham-gpt@0.1.0 embed
> tsx scripts/embed.ts
Loaded env from .env.local
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
<ref *1> Error: connect ETIMEDOUT 108.160.172.200:443
at __node_internal_captureLargerStackTrace (node:internal/errors:484:5)
at __node_internal_exceptionWithHostPort (node:internal/errors:662:12)
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1300:16) {
I experienced the same error message as @DevinLin01 , by any chance there are updates/fixes to it?
Just to provide an update here: It seems that the error I mentioned was caused by my vpn, once I switched to a different VPN setting it works now. I also read that switching it off should work too (it will not for my case, as openAI API is not accessible without VPN). Hope it helps.
I ran this command
npm run embed
and got the following error message.This line of code will result in an error.
const embeddingResponse = await openai.createEmbedding
It's probably caused by an emptyembeddingResponse.data = ''
I have configured .env.local.
I have already executed the four SQL commands in Supabase. There is a table called "pg" inside, do I need to set permissions for it?