Coder Social home page Coder Social logo

Comments (9)

rphlmr avatar rphlmr commented on May 19, 2024 1

I hope it's fine for you ;)

Feel free to reopen if you still have an issue.

from supa-fly-stack.

rphlmr avatar rphlmr commented on May 19, 2024

Any chance you already have a user with email [email protected] in auth dashboard? (maybe you already try to seed and try again?)

Something goes wrong in the script and it hides supabase error 😅. will try to test asap ;)

from supa-fly-stack.

jkohlin avatar jkohlin commented on May 19, 2024

nope, no users at all, either in public/users or auth/users
However, I see a ts error in seed.server.ts:
Module '"@prisma/client"' has no exported member 'PrismaClient'.

from supa-fly-stack.

rphlmr avatar rphlmr commented on May 19, 2024

I’m far from my computer, but you can try to add a .catch(console.error) line 31 of https://github.com/rphlmr/supa-fly-stack/blob/main/app/database/seed.server.ts
Should tell you what happen.
Or, stil in line 31, next to data, you can destruct "error" and log it.

from supa-fly-stack.

jkohlin avatar jkohlin commented on May 19, 2024

const newUserId... returns 'fetch failed'

AuthRetryableFetchError: fetch failed
    at /Users/kojo/kod/Egna/YouWish/youwish_app/node_modules/@supabase/gotrue-js/src/lib/fetch.ts:33:12
    at Generator.next (<anonymous>)
    at /Users/kojo/kod/Egna/YouWish/youwish_app/node_modules/@supabase/gotrue-js/dist/main/lib/fetch.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/Users/kojo/kod/Egna/YouWish/youwish_app/node_modules/@supabase/gotrue-js/dist/main/lib/fetch.js:4:12)
    at handleError (/Users/kojo/kod/Egna/YouWish/youwish_app/node_modules/@supabase/gotrue-js/src/lib/fetch.ts:30:78)
    at /Users/kojo/kod/Egna/YouWish/youwish_app/node_modules/@supabase/gotrue-js/src/lib/fetch.ts:121:25
    at processTicksAndRejections (node:internal/process/task_queues:95:5) {
  __isAuthError: true,
  status: 0
}

from supa-fly-stack.

rphlmr avatar rphlmr commented on May 19, 2024

I have push a better error handling in seed script.

Shadow DB is no more required if you just have created a Supabase project, so I have also remove this part.

The error you linked says that fetch failed (the Supabase SDK internal fetch). Could be a temporary issue from Supabase?

  • Status "0" seems related to a network issue :s

PS : I can't reproduce from a fresh install :/

from supa-fly-stack.

jkohlin avatar jkohlin commented on May 19, 2024

from supa-fly-stack.

rphlmr avatar rphlmr commented on May 19, 2024

If it's just a new project, easiest is to delete it and recreate 😅

Or keep it and just remove the env in the prisma file like the commit i did.

from supa-fly-stack.

jkohlin avatar jkohlin commented on May 19, 2024

Alright, thanks!

from supa-fly-stack.

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.