AntDX316
01/25/2023, 12:29 AMjinsley8
01/25/2023, 1:24 AMrajamaka
01/25/2023, 4:46 AMEbubekir YÜCEL
01/25/2023, 6:12 AMjson
{
error: {
code: '42501',
details: null,
hint: null,
message: 'permission denied for function crypto_aead_det_decrypt'
},
data: null,
count: null,
status: 401,
statusText: 'Unauthorized'
}
tererun / てれるん
01/25/2023, 7:42 AM_Zaizen_
01/25/2023, 7:52 AMAmr
01/25/2023, 7:55 AMsupabase remote commit
then supabase db reset
, it copied the schema from the cloud , but I also wanted the data there, so I used pg_dump -d 'postgresql://postgres:xxx@db.xxx.supabase.co:5432/postgres' --no-comments -v > dump.sql
then created a new migration with supabase migration new dump < dump.sql
, but after running `supabase db reset`: I find this error:
Resetting database...
Initialising schema...
Applying migration 20230125074447_dump.sql...
Error: ERROR: schema "auth" already exists (SQLSTATE 42P06)
At statement 10: --
-- TOC entry 23 (class 2615 OID 26604)
-- Name: auth; Type: SCHEMA; Schema: -; Owner: supabase_admin
--
CREATE SCHEMA auth
Try rerunning the command with --debug to troubleshoot the error.
I'm aware of the -N
argument in pg_dump
that excludes a schema according to the given pattern, I don't want that because I want to clone everything from the cloud database including users?Niki2k1
01/25/2023, 8:43 AMsinggih
01/25/2023, 9:40 AMTypeError: B.setTimeout is not a function
at https://esm.sh/v104/braintree@3.13.0/X-ZHN2LzAuMTMyLjA/deno/braintree.js:2:11960
at new Promise (<anonymous>)
at Je.httpRequest (https://esm.sh/v104/braintree@3.13.0/X-ZHN2LzAuMTMyLjA/deno/braintree.js:2:11184)
at Je.<anonymous> (https://esm.sh/v104/@braintree/wrap-promise@2.1.0/X-ZHN2LzAuMTMyLjA/deno/wrap-promise.js:2:1479)
at Je.post (https://esm.sh/v104/braintree@3.13.0/X-ZHN2LzAuMTMyLjA/deno/braintree.js:2:10463)
at Je.<anonymous> (https://esm.sh/v104/@braintree/wrap-promise@2.1.0/X-ZHN2LzAuMTMyLjA/deno/wrap-promise.js:2:1479)
at Ur.create (https://esm.sh/v104/braintree@3.13.0/X-ZHN2LzAuMTMyLjA/deno/braintree.js:22:19972)
at Ur.<anonymous> (https://esm.sh/v104/@braintree/wrap-promise@2.1.0/X-ZHN2LzAuMTMyLjA/deno/wrap-promise.js:2:1479)
at Ur.sale (https://esm.sh/v104/braintree@3.13.0/X-ZHN2LzAuMTMyLjA/deno/braintree.js:22:20894)
at Ur.<anonymous> (https://esm.sh/v104/@braintree/wrap-promise@2.1.0/X-ZHN2LzAuMTMyLjA/deno/wrap-promise.js:2:1479)
and here it's my source code
import braintree from "https://esm.sh/braintree@3.13.0?target=deno&no-check";
export const gateway = new braintree.BraintreeGateway({
environment: braintree.Environment.Sandbox,
merchantId: Deno.env.get("BRAINTREE_MERCHANT_ID") ?? "",
publicKey: Deno.env.get("BRAINTREE_PUBLIC_KEY") ?? "",
privateKey: Deno.env.get("BRAINTREE_PRIVATE_KEY") ?? "",
});
const result = await gateway.transaction.sale({
amount: "10",
customer: {
id: user.id,
email: user.email ?? "",
},
paymentMethodNonce: nonce,
deviceData: deviceData,
});
Glop
01/25/2023, 9:59 AM#13 8.185 0: sql_migration_connector::flavour::postgres::connection::describe_schema
#13 8.185 with namespaces=None
#13 8.185 at migration-engine/connectors/sql-migration-connector/src/flavour/postgres/connection.rs:31
#13 8.185 1: migration_core::state::SchemaPush
#13 8.185 at migration-engine/core/src/state.rs:381
AntDX316
01/25/2023, 10:37 AMdelight
01/25/2023, 10:57 AMsql
-- drop function c_sequence;
create or replace function c_sequence(sequenceName_input text)
returns text
language plpgsql
as $$
BEGIN
CREATE SEQUENCE sequenceName_input;
return sequenceName_input || ' created';
END;
$$;
but it won't pick up the value of sequenceName_input. Instead it uses it as a literal string and creates a sequence Named 'sequenceName_input'AntDX316
01/25/2023, 11:04 AMImposer
01/25/2023, 11:07 AMjg247
01/25/2023, 12:54 PMpsql: error: server does not support SSL, but SSL was required
Looking at https://github.com/supabase/postgres/blob/develop/ansible/files/pgbouncer_config/pgbouncer.ini.j2 it looks like ssl is disabledMaxx
01/25/2023, 12:58 PMjaypinho
01/25/2023, 2:19 PMselect version()
in query editor, I'm still seeing:
PostgreSQL 15.1 on aarch64-unknown-linux-gnu, compiled by gcc (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0, 64-bit
And I'm also unable to order by fields in a foreign table, as is supposed to work per here: https://supabase.com/blog/postgrest-11-prerelease#order-by-related-tables.
Is there a way to force it to update?! Do you even Vim, bro?
01/25/2023, 4:25 PMmessage
table. Each message
row has an id
column set as int8
type. I am concerned that if the number of messages exceeds the limit for that data type, what will happen?streamerd
01/25/2023, 6:42 PMdextah
01/25/2023, 6:50 PMiinanc
01/25/2023, 6:54 PM! Do you even Vim, bro?
01/25/2023, 7:02 PMharshcut
01/25/2023, 7:09 PMchannel.track
function.
> Each client can use the channel's track method to store an object in shared state.
>
> https://supabase.com/docs/guides/realtime/quickstart#track-and-display-which-users-are-online
What type of data should be passed to it?! Do you even Vim, bro?
01/25/2023, 7:36 PMDatabase
type as stated here: https://supabase.com/docs/reference/javascript/select, should I get any IntelliSense when calling methods like from
or insert
or whatever at this point?Frah🔥
01/25/2023, 7:37 PMnickbryant.fyi
01/25/2023, 7:48 PMTrixrabbit
01/25/2023, 9:07 PM$lib/db
in our component, but we need to use the auth-helper getSupabase
when doing data fetching on the server. Why is that ? If my server load function passes the session + supabaseClient down to the client, isn't that already enough ?
I read and re-read the documentation :
https://supabase.com/docs/guides/auth/auth-helpers/sveltekit
and
https://supabase.com/docs/guides/getting-started/tutorials/with-sveltekit
multiple times and also read the auth-helper function code and I just don't quite get it (yet).
Another example is why the docs mention calling getServerSession(event)
in the layout.server.ts and getSupabase(event)
in the layout.ts to get the session, why call 2 different functions ? From Sveltekit docs, the client would have the session coming from the data of the server load function
Maybe I'm missing something obvious here, I tried to test if this structure was to make sure we invalidate properly, but couldn't really find any answers. This is my first app with supabase auth and I am trying to understand better.Kurdiez
01/25/2023, 9:09 PMts
const fileName = 'whatever.jpg';
const signedUrl = await this.supabase.storage.from("images").createSignedUrl(fileName, 60);
When I run this I get the error StorageApiError: The resource was not found
.
Why would it complain about resource not being found when I am trying to generate the signed URL to put the resource at that location? Of course it doesn't exist yet since I haven't done HTTP PUT
to the signed URL to upload the resource.atticoos
01/25/2023, 10:27 PMPostgresTransformBuilder.rollback()
work?
~~
Was reading through the PostgrestTransformBuilder
API and discovered it has a rollback()
method
https://github.com/supabase/postgrest-js/blob/933b4d622ac1ef12b7cb19a8c163a4db4a8721d4/src/PostgrestTransformBuilder.ts#L230-L242
Jumped over to the tests, and sure enough it looks like it'll rollback a mutation https://github.com/supabase/postgrest-js/blob/94db7098ef9d75766b8ca84b1e888f34a3eb759d/test/transforms.ts#L217-L271
But when I gave it a try, the record remained in the database and was not removed.
I haven't come across documentation on this method, but I did come across it exposed on the SupabaseClient
so it seems like it can be used -- but not sure how.
Anyone with success story on this one?cassi
01/25/2023, 11:37 PMuseSessionContext
and isLoading
does update.
I am using NextJS 13 (no app folder).
I am following along with this guide https://supabase.com/docs/guides/auth/auth-helpers/nextjs