bhaskar
10/24/2022, 12:10 AMdraco
10/24/2022, 12:46 AMsmahs
10/24/2022, 12:53 AMpromo_waitlist
, but when querying it, I get the error: relation "promo_waitlist" does not exist
.
I can, however, query the users
table that existed before promo_waitlist
was created.AlanK
10/24/2022, 2:38 AMcurl --request POST \
--url https://api.sendgrid.com/v3/mail/send \
--header "Authorization: Bearer <somekey>" \
--header 'Content-Type: application/json' \
--data '{"personalizations": [{"to": [{"email": "address@email.com.au"}]}],"from": {"email": "address@outlook.com"},"subject": "Sending with SendGrid is Fun","content": [{"type": "text/plain", "value": "and easy to do anywhere, even with cURL"}]}'
and am now trying to translate this into SQL. Can anyone give me some pointers on how to restructure this to use in a SQL http request?
So far I ahave this
SELECT content::json
FROM http((
'POST',
'https://api.sendgrid.com/v3/mail/send',
ARRAY[http_header('Authorization','Bearer <somekey>'), http_header('Content-Type: application/json')],
NULL,
NULL
)::http_request)
londonparis
10/24/2022, 3:54 AMAustin
10/24/2022, 5:19 AMrobh
10/24/2022, 5:23 AMomar
10/24/2022, 6:31 AMlondonparis
10/24/2022, 6:51 AMjaypinho
10/24/2022, 7:50 AMjaynguyens
10/24/2022, 8:08 AMNED
10/24/2022, 8:26 AMor
operator.
Example
.or(created_by.eq.${ authorisedUserId },visibility.cs.{${ ['all'] }})
Where authorisedUserId can contain any characters.TARS
10/24/2022, 9:40 AMCREATE POLICY "Enable CRUD for authenticated users only" ON "public"."hosts"
AS PERMISSIVE FOR ALL
TO authenticated
WITH CHECK (true)
But it's not working, I can't fetch any data when I am logged in as a user.
Please point me in the right direction.Highgate
10/24/2022, 11:33 AMhttp://supabase_kong_Projects:8000
. Obviously I want to set this to my account so I can get actual data.
It works fine when deployed to supabase.Captain
10/24/2022, 1:41 PMgaryaustin
10/24/2022, 2:49 PMjaf
10/24/2022, 2:19 PMjavascript
AuthApiError: User already registered
at /home/.../node_modules/@supabase/gotrue-js/dist/main/lib/fetch.js:41:20
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
__isAuthError: true,
status: 400
}
BenzelWashington
10/24/2022, 2:46 PMjaf
10/24/2022, 2:50 PMfloyare
10/24/2022, 2:56 PM1.35.7
to 2.0.4
and after trying to get user data by getUser()
I receive error message with value of "AuthApiError Internal server error". I looked up to auth logs in supabase dashboard and found this error log:
{
"component": "api",
"error": "invalid claim: subject missing",
"level": "error",
"method": "GET",
"msg": "Unhandled server error: invalid claim: subject missing",
"path": "/user",
"referer": "http://localhost:3000/",
"remote_addr": "MY_IP",
"time": "2022-10-24T14:52:21Z",
"timestamp": "2022-10-24T14:52:21Z"
}
.
Anybody have an idea how to fix it?avalanche
10/24/2022, 3:58 PMdrewbie
10/24/2022, 4:37 PMCory
10/24/2022, 5:20 PMfernandops26
10/24/2022, 6:05 PMVWL Tobias Hassebrock
10/24/2022, 6:18 PMsupabase_migrations.schema_migrations table conflicts with the contents of supabase/migrations.;
. Something like supabase db remote reset?niyogi
10/24/2022, 9:13 PMLukas V
10/24/2022, 10:48 PMproducts
collection, but the return type is:
const data: any[] | null
instead of the type that I gave in my Database
type, why is that?
here is the code:
import type { Database } from 'types_db';
export const supabase = createBrowserSupabaseClient<Database>();
export const getActiveProductsWithPrices = async (): Promise<
ProductWithPrice[]
> => {
const { data, error } = await supabase
.from('products')
.select('*, prices(*)')
Can someone please confirm, that this is a bug?GemCollector — Never DMs You
10/25/2022, 12:43 AMCory
10/25/2022, 12:56 AMAustin
10/25/2022, 1:03 AMexport async function getServerSideProps() {
const { data: bills } = await supabase
.from('bills')
.select(`name, amount`)
.eq('paid', false)
return {
props: {
bills,
},
};
}
I get an empty array back each time.