erik_flywheel
08/22/2021, 5:56 PMsilentworks
08/22/2021, 5:56 PMerik_flywheel
08/22/2021, 5:58 PMsilentworks
08/22/2021, 6:58 PMjon.m
08/22/2021, 9:16 PM"Could not find a relationship between posts and users in the schema cache
jon.m
08/22/2021, 9:17 PM.from("posts")
.select(
`id,
title,
userEmail: users (
email
)
`
)
jon.m
08/22/2021, 9:30 PMuser_id,
users (
email
)
Di
08/22/2021, 9:32 PMjon.m
08/22/2021, 9:33 PMjon.m
08/22/2021, 9:34 PMCAMOU
08/22/2021, 11:10 PMjs
import supabase from '$lib/db'
export async function post(request) {
let email = request.body.get('email')
let password = request.body.get('password')
let c_password = request.body.get('c_password')
if (password !== c_password) {
return {
status: 401,
body: 'Passwords are not matching'
}
}
const { session, error } = await supabase.auth.signUp({email, password})
if (error) {
return {
status: error.status,
body: error.message
}
}
return {
status: 200,
body: 'success',
headers: {
'set-cookie': `session=${session.user.id}; Path=/; HttpOnly; Secure; SameSite=Strict; Expires=${new Date(session.expires_at * 1000).toUTCString()};`
}
}
}
jon.m
08/22/2021, 11:13 PMCAMOU
08/22/2021, 11:14 PMCAMOU
08/22/2021, 11:14 PMjon.m
08/22/2021, 11:18 PMCAMOU
08/22/2021, 11:19 PMjon.m
08/22/2021, 11:31 PMCAMOU
08/22/2021, 11:32 PMsilentworks
08/23/2021, 12:03 AMCAMOU
08/23/2021, 12:03 AMsilentworks
08/23/2021, 12:04 AMPeanut
08/23/2021, 1:31 AM[rowid] "POST" "http://[myip]:5000/myendpoint" "{""x-api-key"": ""abc"", ""content-type"": ""application/json""}" "binary data" 1000 "2021-08-23 01:14:00.261631+00"
When I select all data from net._http_response
the table is empty
Btw made sure the IP works/ports are open (but that shouldn't matter - should still see a response in that table right?jon.m
08/23/2021, 1:50 AMHorseShoe
08/23/2021, 5:43 AMHorseShoe
08/23/2021, 5:43 AMHorseShoe
08/23/2021, 5:44 AMHorseShoe
08/23/2021, 5:44 AMHorseShoe
08/23/2021, 5:44 AMHorseShoe
08/23/2021, 5:45 AMHorseShoe
08/23/2021, 5:45 AM