You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Insert into non-existing table raises empty APIErrror
Description
If client.table("table_name") does not exist (e.g. typo), insert and upsert operations raise empty APIError.
To Reproduce
Create reference to non-existing table
Attempt to insert data
Raises empty error with no information provided.
def __init__(self, client: AsyncClient, user: AuthUser):
self.client = client
self.repository = self.client.table("not_existing_table")
self.user = user
try:
insert_response = await self.repository.upsert(
[mod.dict() for mod in db_models],
count=CountMethod.exact,
on_conflict="id",
default_to_null=False,
).execute()
except APIError as e:
logger.error(f"Failed to bulk insert", user=self.user.id, **e.__dict__)
# HERE the error is empty
Expected behavior
The error should contain information about the table not present in the scheme.
Screenshots
System information
OS: macOS
Version of supabase-py: ^2.6.0
The text was updated successfully, but these errors were encountered:
Insert into non-existing table raises empty APIErrror
Description
If
client.table("table_name")
does not exist (e.g. typo),insert
andupsert
operations raise empty APIError.To Reproduce
Expected behavior
The error should contain information about the table not present in the scheme.
Screenshots
System information
The text was updated successfully, but these errors were encountered: