anand
05/08/2022, 6:00 PMpy
supabase.postgrest.session.timeout = x
where supabase
is defined as you had shown in the earlier snippetben
05/08/2022, 6:00 PMben
05/08/2022, 6:00 PManand
05/08/2022, 6:01 PMben
05/09/2022, 8:05 PManand
05/10/2022, 3:08 AManand
05/10/2022, 3:31 AManand
05/10/2022, 3:31 AMnitehawk
05/29/2022, 7:05 PMmansueli
05/30/2022, 12:23 PMzachtsk
06/07/2022, 1:44 PMmansueli
06/07/2022, 4:45 PMProtoFeather
06/11/2022, 5:38 PMzachtsk
06/11/2022, 6:47 PMak4zh
06/19/2022, 7:19 AMsupabase.table('vehicles').select('id').is('deleted', None).execute()
python library does not seem to support the .is
like in subabase-jsmansueli
06/20/2022, 1:19 PMzavbala
07/01/2022, 4:17 PMZomg
07/08/2022, 12:06 PMpy
supabase = supabase.create_client(url, key)
data = supabase.table("lengths").select("*").execute()
print(data.data)
output: []
looking at the api logs, the requests are successful, it's just not giving any datagaryaustin
07/08/2022, 3:21 PMZomg
07/08/2022, 3:25 PMgaryaustin
07/08/2022, 3:30 PMZomg
07/08/2022, 3:31 PMgaryaustin
07/08/2022, 3:42 PMZomg
07/08/2022, 3:46 PMpedrodiaz
07/12/2022, 5:33 PMpedrodiaz
07/12/2022, 5:33 PMChubbyman
07/21/2022, 2:24 AMstorage3.utils.StorageException: {'statusCode': 400, 'error': 'Key is not present in table "buckets".', 'message': 'insert or update on table "objects" violates foreign key constraint "objects_bucketId_fkey"'}
I made sure to create all the necessary object policies to allow for insertion, as well as make the bucket itself public. Here is my code:
py
from supabase import create_client
from dotenv import load_dotenv
import os
load_dotenv()
url = os.environ.get("DEPLOY_URL")
key = os.environ.get("DEPLOY_KEY")
supabase = create_client(url, key)
file = "test.txt"
# data = supabase.storage().from_("public/training-data").download("test.txt")
# print(data)
supabase.storage().from_("public/training-data").upload("test.txt", file)
If anyone has any suggestions, please let me know.Chubbyman
07/21/2022, 2:26 AMFestiveLlama
07/27/2022, 10:10 AMsilentworks
07/27/2022, 4:22 PM