Hal
06/20/2022, 3:24 AMxyz
06/20/2022, 5:40 AMflotTopz
06/20/2022, 7:24 AMVixy88
06/20/2022, 11:05 AM{supabase} from "../../utils/supabaseClient.js"
Then I get the following error:
error - ./utils/supabaseClient.js:1:0
Module not found: Can't resolve '@supabase/supabase.js'
> 1 | import { createClient } from "@supabase/supabase.js";
2 |
3 | const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL;
4 | const supabaseAnonKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY;
Import trace for requested module:
./pages/schedule.js
hko
06/20/2022, 11:44 AMError: Failed to create a new Function on the Supabase project: {"message":"Internal Server Error","errorEventId":"374791912db84ece8a38c5c85a65bc8d"}
The logs explorer doesn't seem to capture that error, and the error message doesn't quite let me hone in on what may be the cause.
Any pointers?
Thanks!kudziak
06/20/2022, 12:14 PMlet { data, error } = await supabase
.from("questions_answers")
.select("question_id, answers!inner(*)")
.in("question_id", questions_ids);
and i getting response like this:
[{
question_id: '11864b50-88a1-44dd-881d-1d63ad1d2067',
answers: {
answer_id: '7915fc01-35ee-4053-91ae-75f0e972a1eb',
answer_name: 'e',
answer_type: 'text_one',
answer_correct: true,
answer_addon: null,
answer_addon_src: ''
}
}]
and i want to achieve something like this:
[{
question_id: '11864b50-88a1-44dd-881d-1d63ad1d2067',
answer_id: '7915fc01-35ee-4053-91ae-75f0e972a1eb',
answer_name: 'e',
answer_type: 'text_one',
answer_correct: true,
answer_addon: null,
answer_addon_src: ''
}]
LinkPlay
06/20/2022, 12:59 PM➜ psql -h db.asdfasdfasdfasdf.supabase.co -p 5432 -d postgres -U postgres
psql: error: connection to server at "db.asdfasdfasdfasdf.supabase.co" (3.71.XYZ.ASD), port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?
I know the db is working since I can see it in the supabase frontend and in my application, but I can't connect anymore.
I think I inputed the wrong password once, but now I can't even try again? Is my IP blacklisted or something? Anyone got a clue what is going on and how to get unstuck?trebor
06/20/2022, 1:50 PMauth.someclaim() = mytable.somecolumn
but when I try to read a custom property of the custom JWT token in the RLS policy editor, I get this error. Any ideas?Denzo
06/20/2022, 1:52 PMRickert
06/20/2022, 6:17 PMcreate table Answer(
answer_id uuid default gen_random_uuid() not null,
question_id uuid not null,
enricher_id uuid not null,
answer text not null,
answer_timestamp timestamp default NOW() not null
)
edouard-harris
06/20/2022, 6:48 PMContent-Disposition
header to work correctly when using the REST API for storage.
Here's a prototypical example, using the Python requests
package. I'm trying to upload the image test-image.png
to the bucket my-bucket
, such that after it's been uploaded, navigating to the image URL will cause the browser to open the image in a preview (as opposed to downloading it):
requests.post(
'https://abcxyz.supabase.co/storage/v1/object/my-bucket/test-image.png',
headers={
'Content-Type': 'image/png',
'Authorization': 'Bearer abc123',
'Content-Disposition': 'inline'
},
data=imageFile.read()
)
The problem is that, on testing, the image behaves as though I'd set 'Content-Disposition': 'attachment'
, and downloads the image instead of opening it in a preview window. Any thoughts on how to fix this?
Thanks!!koakh
06/20/2022, 6:55 PM...
supabase-db | ls: cannot access '/docker-entrypoint-initdb.d/': Operation not permitted
...
supabase-realtime | 2022-06-20 18:45:10.029 [error] Postgrex.Protocol (#PID<0.235.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect (db:5432): non-existing domain - :nxdomain
...
and may other related problems
I tried two linux machines and same errors occurs
I trear down everything but no wayJulien
06/20/2022, 7:54 PMnahtnam
06/20/2022, 9:10 PMHello world #welcome #message #other
and store it. Later they should be able to quickly search by the hashtag. However the string is also editable and I can forsee it being edited multiple times in its lifetime. I was initially thinking of having a messages
table and a message_tags
table. However I realize that since the string can be edited and #welcome
can easily become #howdy
, keeping the message_tags
table in sync might be difficult. In this case am I better off just putting a tags
array column on the messages table and indexing it?jvocodes
06/20/2022, 11:06 PMJames Q Quick
06/21/2022, 2:16 AMupsert
with Supabase and am a bit confused. I would expect to pass in an array of items, some of which already exist (have an id/primary key) and some that don't. It works fine if I pass in items that already exist, but when I throw in a new item, the whole thing fails with Error: All object keys must match
. Should that be happening? Am I misunderstanding with my assumption that I can pass a combination of existing/non-existing records?AlanK
06/21/2022, 3:08 AM// src/routes/__layout.svelte
<script>
import { goto } from '$app/navigation';
import { session } from '$app/stores';
import { supabaseClient } from '$lib/db';
import { SupaAuthHelper } from '@supabase/auth-helpers-svelte';
const onUserUpdate = async (user) => {
if (user) await goto('/');
};
</script>
<SupaAuthHelper {supabaseClient} {session} {onUserUpdate}>
<slot />
</SupaAuthHelper>
would redirect to Home on a successful login, but nothing happens.exo
06/21/2022, 3:50 AMjson
{
"message":"The upstream server is timing out"
}
I couldn't find this endpoint in the main docs, so i'm wondering if this is the preferred way for implementing this feature.. I'm extremely open to alternatives if this isn't the best way..joshcowan25
06/21/2022, 4:36 AMnahtnam
06/21/2022, 5:35 AMnahtnam
06/21/2022, 6:06 AMomar
06/21/2022, 6:07 AMJakub
06/21/2022, 7:02 AMJakub
06/21/2022, 7:07 AMeshnil
06/21/2022, 9:15 AMManny1997
06/21/2022, 1:01 PMRickert
06/21/2022, 1:47 PMDembe
06/21/2022, 2:41 PMHero
06/21/2022, 4:12 PMPHANTOM KNIGHT
06/21/2022, 4:51 PMCompany
and Trucks
, A company can buy many trucks and I want to link each truck with that company, can someone tell me how to do that