Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with creating user, cannot read properties of null #50

Closed
maxcell opened this issue Jun 6, 2022 · 7 comments
Closed

Issue with creating user, cannot read properties of null #50

maxcell opened this issue Jun 6, 2022 · 7 comments

Comments

@maxcell
Copy link
Contributor

maxcell commented Jun 6, 2022

I can't make it work too. What am I missing here?

node --version: v18.1.0

Running: npm run dev

image

Getting this issue when creating a user:
image

Originally posted by @leofmoura in #49 (comment)

@maxcell maxcell mentioned this issue Jun 6, 2022
@maxcell
Copy link
Contributor Author

maxcell commented Jun 6, 2022

I notice here you've got a 500 error there which seems not so good! What was the UI feedback from Remix you received with the failed creation of the user?

@leofmoura
Copy link

Hi Maxcell. This is what I get when try to signup.
The user is created in supabase. But it doesn't look like it's completing the operation.
When trying to login I get a invalid user/pass.

image

image

When trying from deployed netlify site, I can't make it work too, but error is different:

image

looks like I have wrong configuration, but all I did was set variables copying from supabase settings.

Thanks

@maxcell
Copy link
Contributor Author

maxcell commented Jun 6, 2022

@leofmoura No worries at all! Happy to help out. Just one last check, did you perform the necessary SQL queries in the README under the Database section? https://github.com/netlify-templates/kpop-stack#database
CleanShot 2022-06-06 at 10 42 50

@leofmoura
Copy link

leofmoura commented Jun 6, 2022

Ok, that fixed my local env. I missed that, thanks.

About the netlify site:

I'm getting this error when creating an account:

{
  "errorType": "Runtime.UnhandledPromiseRejection",
  "errorMessage": "FetchError: invalid json response body at https://rktuocznllhvbarshwit.supabase.co/auth/v1/signup reason: Unexpected token M in JSON at position 0",
  "trace": [
    "Runtime.UnhandledPromiseRejection: FetchError: invalid json response body at https://rktuocznllhvbarshwit.supabase.co/auth/v1/signup reason: Unexpected token M in JSON at position 0",
    "    at process.<anonymous> (/var/runtime/index.js:35:15)",
    "    at process.emit (events.js:400:28)",
    "    at process.emit (/var/task/node_modules/source-map-support/source-map-support.js:516:21)",
    "    at processPromiseRejections (internal/process/promises.js:245:33)",
    "    at processTicksAndRejections (internal/process/task_queues.js:96:32)"
  ]
}

@maxcell
Copy link
Contributor Author

maxcell commented Jun 6, 2022

Let me know if that also fixed on the Netlify deploy as well, it should resolve well! Or is the error above still after making the migrations?

@leofmoura
Copy link

Yes, it fixed. I had a caching issue, but as soon I've re-deployed everything, it worked fine.
Nice to have you here!

@maxcell
Copy link
Contributor Author

maxcell commented Jun 6, 2022

Glad it is all working. Thank you so much for opening the report and working with me on this! Keep us posted on what's next for ya! 😄

@maxcell maxcell closed this as completed Jun 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants