https://supabase.com/ logo
Join Discord
Powered by
# off-topic
  • e

    EK

    12/12/2022, 3:09 AM
    Since the problem has resolved BY no one doing nothing new, I deleted all conversation but you felt the need to dig it up again and post the same thing and bashed me one more time.
  • e

    EK

    12/12/2022, 3:12 AM
    The real question is "why I used a v2.13 supabase.js and got a v1 response? NOT seeking help and just curious" .
  • g

    garyaustin

    12/12/2022, 3:15 AM
    @EK You somehow had to have something mixed up. It does not come back from the server but is set in the javascript client code right before it returns to you.... v2:
    Copy code
    return { data: { user, session }, error: null }
    https://github.com/supabase/gotrue-js/blob/master/src/GoTrueClient.ts#L275
  • e

    EK

    12/12/2022, 3:24 AM
    again I upgraded to v2 the day before, checked the package.json, deleted the node_module and re-install again.
  • g

    garyaustin

    12/12/2022, 3:25 AM
    Could have been cached in your browser? Not sure. But v2 code could not return without the data structure. It has been that way for months.
  • e

    EK

    12/12/2022, 3:25 AM
    GoTrue was also up-to-date.
  • e

    EK

    12/12/2022, 3:27 AM
    It gave me a type Error when it returned so I console.logged the whole thing to find out it was not nested in data.
  • e

    EK

    12/12/2022, 3:28 AM
    Again. let us end this conversation. It was an odd case. I was not seeking help and that was the reason I did not use help.
  • e

    EK

    12/12/2022, 3:30 AM
    It was just some weird stuff. By the night, the returned data was v2 and properly nested.
  • g

    garyaustin

    12/12/2022, 3:31 AM
    I'll just say for the future, make sure you understand if any of the files could be cached in your environment. This sounds like the case. But I can't prove it. I've had that happen before in different dev environments.
  • e

    EK

    12/12/2022, 3:33 AM
    how can it be if I was able to open gotrue and see the v2 AuthResponse ?
  • e

    EK

    12/12/2022, 3:33 AM
    anyway, have a great one
  • l

    Luv

    12/12/2022, 5:13 AM
    i don't recall mentioning you.
  • d

    drilkmops

    12/12/2022, 5:48 AM
    trying to use nextauth with supabase and when my email gets sent, it looks like it's trying to create a user automatically with id, name, email and image. Though it looks like it's trying to set an id with a null value? Anyone run into this? Error im getting:
    Copy code
    https://next-auth.js.org/errors#adapter_error_createuser null value in column "id" of relation "users" violates not-null constraint {
      code: '23502',
      details: 'Failing row contains (null, null, email@gmail.com, null, 2022-12-12 05:44:22.93).',
      hint: null,
      message: 'null value in column "id" of relation "users" violates not-null constraint'
    }
  • e

    EK

    12/12/2022, 7:15 AM
    lol. whatever.
  • q

    Quentin

    12/12/2022, 9:47 AM
    Hi everyone, is there a place on the dashboard where we can see the pg constraints?
    s
    • 2
    • 2
  • p

    PlayWolf

    12/12/2022, 10:35 AM
    heyo could someone look at my help post if they have some time? Im kinda stuck since a few weeks and would really love to get this out of the way lmao Nothing too urgent, it just annoys me that i cant seem to find my way around it haha https://discord.com/channels/839993398554656828/1051803124291088415
  • s

    silentworks

    12/12/2022, 11:22 AM
    This is literally a help question. Also deleting messages doesn't help anyone because context is lost now. If this was posted as a thread in #1006358244786196510 then someone else hitting the same issue would be able to find it and know exactly what may have caused the issue and how to fix it.
  • s

    silentworks

    12/12/2022, 11:25 AM
    Hi everyone is there a place on the
  • a

    AdvitSingh5

    12/12/2022, 12:44 PM
    Hi there.
  • e

    EK

    12/12/2022, 1:09 PM
    It is a help question only if I want help. I wanted post it in a bug section and could not find it.
  • e

    EK

    12/12/2022, 1:10 PM
    why are you love to pile on? I wanted to end the topic a while ago.
  • s

    silentworks

    12/12/2022, 1:10 PM
    There are no bug sections on here, there was also no bugs reported. You generally report bugs on the GitHub repo, not in a community run platform.
  • e

    EK

    12/12/2022, 1:11 PM
    I DID report it as a bug and closed it as the issue resolved somehow.
  • e

    EK

    12/12/2022, 1:13 PM
    Again, clearly I was using v2 and got a v1 response. I overrode the v2 AuthResponse that morning. By the night, the response was back to V2 nested in data.
  • e

    EK

    12/12/2022, 1:15 PM
    Four dudes kept saying the response SHOULD be typed as AuthResponse v2. That was precisely the problem. It WAS NOT a v2 AuthResponse.
  • e

    EK

    12/12/2022, 1:23 PM
    I tried multiple times to end this conversation but you all feel the needs to pile on. But at least try to explain why it happened instead of stating "it should work, it worked for me" @silentworks @Luv
  • s

    silentworks

    12/12/2022, 1:24 PM
    Post the correct channel or it will be deleted in the future, I hope this makes it clear to you.
  • e

    EK

    12/12/2022, 1:28 PM
    I deleted the converstaion after the first dude to "point out" it should be in help. What is the reason you all feel the needs to keep bringing it up. The answers I got were all the same "it should work". none of them tried to find out why it happened.
  • s

    silentworks

    12/12/2022, 1:28 PM
    This channel's description is very clear, follow the rules or we will have to enforce them.
1...313314315...392Latest