Kjell
01/24/2023, 8:13 AMKjell
01/24/2023, 9:01 AMATorres
01/24/2023, 9:17 AMiWeeti
01/24/2023, 9:37 AMZacBytes
01/24/2023, 10:22 AMpy
supabase.storage().from_('avatars').upload(filepath, filepath, file_options={"upsert":"true", "contentType":"image/jpeg"})
However, the file is still being uploaded as a plain/text file and does not overwrite existing files.wiesson
01/24/2023, 10:34 AMH3
01/24/2023, 11:05 AMbash
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x8 pc=0x104c32bdc]
Dbugger
01/24/2023, 11:35 AMTonting Kaloy
01/24/2023, 12:25 PMtopperspal
01/24/2023, 12:48 PMbitnock
01/24/2023, 1:32 PMts
export const supabase = createClient(supabaseUrl, supabaseAnonKey, {
global: {
headers: {
Authorization: `Bearer ${test_token}`,
},
},
})
firebase version```js
signInWithCustomToken(auth, token)
my payload
```json
{
"sub": "e6870286-5378-4cc5-8641-af2b60051b56",
"exp": 1674570524,
"role": "anon",
"iat": 1674566924
}
Idicious
01/24/2023, 1:48 PMH3
01/24/2023, 1:58 PMsupabase link --project-ref ********************
Results in:
bash
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x8 pc=0x104bdabdc]
goroutine 1 [running]:
github.com/jackc/pgx/v4.(*Conn).Config(0x1054ff2b8?)
/home/runner/go/pkg/mod/github.com/jackc/pgx/v4@v4.17.2/conn.go:382 +0x1c
github.com/supabase/cli/internal/utils.ConnectRemotePostgres({0x105506720, 0x140006a88c0}, {0x1050bd92b, 0x8}, {0x14000350010, 0x10}, {0x1050bd92b, 0x8}, {0x14000432810, 0x23}, ...)
/home/runner/work/cli/cli/internal/utils/connect.go:39 +0x234
github.com/supabase/cli/internal/link.linkDatabase({0x105506720, 0x140006a88c0}, {0x1050bd92b?, 0x14?}, {0x14000350010?, 0x10545ae60?}, {0x1050bd92b?, 0x10478ac28?}, {0x14000432810?, 0x1050a170c?}, ...)
/home/runner/work/cli/cli/internal/link/link.go:123 +0x48
github.com/supabase/cli/internal/link.Run({0x105506720, 0x140006a88c0}, {0x16b71f7dc, 0x14}, {0x1050bd92b, 0x8}, {0x14000350010, 0x10}, {0x1050bd92b, 0x8}, ...)
/home/runner/work/cli/cli/internal/link/link.go:43 +0xac
github.com/supabase/cli/cmd.glob..func29(0x105b6a880?, {0x1050a9a1d?, 0x2?, 0x2?})
/home/runner/work/cli/cli/cmd/link.go:32 +0x10c
github.com/spf13/cobra.(*Command).execute(0x105b6a880, {0x14000880540, 0x2, 0x2})
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:916 +0x5f4
github.com/spf13/cobra.(*Command).ExecuteC(0x105b6e200)
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1044 +0x35c
github.com/spf13/cobra.(*Command).Execute(...)
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:968
github.com/supabase/cli/cmd.Execute()
/home/runner/work/cli/cli/cmd/root.go:67 +0x2c
main.main()
/home/runner/work/cli/cli/main.go:8 +0x20
goldyman
01/24/2023, 2:00 PMdart
final response = await _supabaseClient
.from('gifts')
.select<List<Map<String, dynamic>>>('*, users:owner(*)')
.neq(
'owner',
_supabaseClient.auth.currentUser?.id,
)
.order('created_at', ascending: false);
and then dart response.map(SupabaseGift.fromJson).toList();
then when using json_serializer i can parse individual fields with specific parsing logic.
So I think users in the result will be a list. But I don't want a list of users, I want one user in my gift object. Is there a way to define this in the supabase query? Or this is done automatically? btw owner is a uuid foreign key in the gifts table pointing to users table.pickwickian
01/24/2023, 5:11 PMKemiteSoul
01/24/2023, 5:26 PMjcurbelo
01/24/2023, 5:39 PMconst [channel, setChannel] = React.useState<RealtimeChannel>();
React.useEffect(() => {
if (channel) {
return;
}
setChannel(
supabase
.channel('collections-db-changes')
.on(
REALTIME_LISTEN_TYPES.POSTGRES_CHANGES,
{
event: REALTIME_POSTGRES_CHANGES_LISTEN_EVENT.ALL,
schema: 'public',
table: 'Collection',
filter: `owner=eq.${uid}`,
},
(payload) => {
console.log({ payload });
fetchCollections();
}
)
.subscribe()
);
return () => {
if (channel) {
supabase.removeChannel(channel);
setChannel(undefined);
}
};
}, [channel, fetchCollections, uid]);
But im not getting any events, even all ws messages seems to be working fine:
{
"event": "system",
"payload": {
"channel": "collections-db-changes",
"extension": "postgres_changes",
"message": "Subscribed to PostgreSQL",
"status": "ok"
},
"ref": null,
"topic": "realtime:collections-db-changes"
}
Am i missing something?eloahsam
01/24/2023, 6:41 PMChris.
01/24/2023, 7:07 PMluke90275
01/24/2023, 7:24 PMDomcario
01/24/2023, 7:28 PM{ data, error}
when inserting or updating a rowMotivator0732
01/24/2023, 7:48 PMrchrdnsh
01/24/2023, 7:56 PMbash
Error: The "host" request header is not available
at isSecureEnvironment (/Users/rchrdnsh/Code/Svelte/RYKR-kit/node_modules/@supabase/auth-helpers-shared/dist/index.js:226:11)
at Object.setItem (/Users/rchrdnsh/Code/Svelte/RYKR-kit/node_modules/@supabase/auth-helpers-shared/dist/index.js:404:47)
at /Users/rchrdnsh/Code/Svelte/RYKR-kit/node_modules/@supabase/gotrue-js/dist/main/lib/helpers.js:89:19
at Generator.next (<anonymous>)
at /Users/rchrdnsh/Code/Svelte/RYKR-kit/node_modules/@supabase/gotrue-js/dist/main/lib/helpers.js:31:71
at new Promise (<anonymous>)
at __awaiter (/Users/rchrdnsh/Code/Svelte/RYKR-kit/node_modules/@supabase/gotrue-js/dist/main/lib/helpers.js:27:12)
at setItemAsync (/Users/rchrdnsh/Code/Svelte/RYKR-kit/node_modules/@supabase/gotrue-js/dist/main/lib/helpers.js:88:46)
at SupabaseAuthClient._persistSession (/Users/rchrdnsh/Code/Svelte/RYKR-kit/node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.js:894:43)
at SupabaseAuthClient.<anonymous> (/Users/rchrdnsh/Code/Svelte/RYKR-kit/node_modules/@supabase/gotrue-js/dist/main/GoTrueClient.js:889:28)
...any thoughts as to why this is happening?
Thanks XDAntDX316
01/24/2023, 8:36 PMmohnish
01/24/2023, 8:47 PMnot('columnName', 'in', '(values)')
 to perform a not in
 query, however, I haven't been able to do so using the python client. I know that we can perform an in
 query using in_
, but I would love to be able to perform a not in query too so that our users can query more easily. Any ideas?karankartikeya07
01/24/2023, 9:12 PMroga
01/24/2023, 9:18 PMredirectTo
options property ahead of the auth request. Anyone have any ideas on how to build this into one function?TaylorFinklea
01/24/2023, 10:07 PMA-PRYME
01/24/2023, 10:38 PMNanoBit
01/24/2023, 11:43 PM