Giter Site home page Giter Site logo

Comments (11)

maxcell avatar maxcell commented on August 23, 2024 1

Oh interesting, this is super helpful!! Thank you so much @Dax911!

from kpop-stack.

maxcell avatar maxcell commented on August 23, 2024

Howdy @LukeXF! Oh dang that's a small set of stack trace, so it might take me a bit to figure out what it could be. Thank you for letting me know you put all the environment variables in. Just wanted to check, did you also make sure to perform the migrations to the Supabase database under https://github.com/netlify-templates/kpop-stack#database in the SQL Queries drop down

Here's the screenshot of the section from the README:
CleanShot 2022-07-18 at 13 27 08

from kpop-stack.

Dax911 avatar Dax911 commented on August 23, 2024

Also running into this. I'm fairly confident I did it correctly, I even deleted the whole database and followed the instructions step by step.

from kpop-stack.

maxcell avatar maxcell commented on August 23, 2024

@Dax911 Could you try to turn off the RLS policies and try again for me? It will say "Disable RLS" instead of where mine says "Enable RLS"
CleanShot 2022-10-18 at 11 26 27

from kpop-stack.

Dax911 avatar Dax911 commented on August 23, 2024

Standby.

from kpop-stack.

Dax911 avatar Dax911 commented on August 23, 2024

No same issue... just to confirm SUPABASE_ANON_KEY is anon public, and SESSION_SECRECT is JWT secret?

from kpop-stack.

maxcell avatar maxcell commented on August 23, 2024

The SUPABASE_ANON_KEY is the anon public yup! But the SESSION_SECRET is actually whatever you'd want it to be, but you can also use the JWT Secret if you'd want! The SESSION_SECRET is for the Remix app to essentially do a hashing for the session storage but not actually from Supabase.

I forgot to indicate to also update the profiles policies and make sure that it is also disabled, if that doesn't make it work then I will keep investigating!
CleanShot 2022-10-18 at 11 34 00

from kpop-stack.

Dax911 avatar Dax911 commented on August 23, 2024

OHHHHH should have prob read that part of the code... would have seen that huh... I am trying one more time w a new db. Standby.

from kpop-stack.

Dax911 avatar Dax911 commented on August 23, 2024

Ok I figured it out... If there is anything here from a previous db even if you overwrote it there are still migrations and schema information in the supabase tables. This is what is throwing the error it amounts to incompatibility. Just delete the supabase project and try again. Do not try and clean up an old project. The RLS stuff was a non issue upon starting the new new project.

from kpop-stack.

no-name-max avatar no-name-max commented on August 23, 2024

I ran into a similar error. If you go to your Netlify project select "Functions" and select "server" you should be able to see logs that include the failed requests. I posted a potential solution here: #101 (comment)

from kpop-stack.

storyworks avatar storyworks commented on August 23, 2024

I got the same issue as Dax911. No need to delete the entire supabase project, deleting the existing users was sufficient:

image

This is assuming you've correctly set the SUPABASE_URL, SUPABASE_ANON_KEY, SESSION_SECRET and have added the queries from the readme.

from kpop-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.