Giter Club home page Giter Club logo

Comments (7)

KalebKloppe avatar KalebKloppe commented on May 28, 2024 1

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

from nextjs-openai-doc-search.

thorwebdev avatar thorwebdev commented on May 28, 2024

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.

musashi-garami avatar musashi-garami commented on May 28, 2024

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.

thorwebdev avatar thorwebdev commented on May 28, 2024

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.

bajajerk avatar bajajerk commented on May 28, 2024

i am facing the similar issue on deploying

from nextjs-openai-doc-search.

cbtham avatar cbtham commented on May 28, 2024

I encountered this exact error and realized my role key and anon key is missing. Do this:-

  1. Run supabase start
  2. Run supabase status
  3. Copy the service role key and anon key into your env file.
  4. Run pnpm dev, it should work now

I am running a local version, not the cloud deploy

from nextjs-openai-doc-search.

thorwebdev avatar thorwebdev commented on May 28, 2024

Thanks for outlining the resolution steps. Closing this out.

from nextjs-openai-doc-search.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.