I tried couple of scenarios and not able to reproduce the issue. And from error it looks like the is id getting passed as unknown so double check the is passing and try with hardcoded id value.
If you are still facing issue with id value 0 then share the table details and database information. And possibly share a sample curl request or code without any dynamic part.
I don’t know what happened, but now read_table_record works flawless
However now I’ve got the same issue trying to update the given record (pk = 0)
record = self.read_table_record(pk)
if 'CreatedAt' in record:
del record['CreatedAt']
if 'UpdatedAt' in record:
del record['UpdatedAt']
if key == 'Primary Key':
raise ValueError("Primary Key is not overridable")
record[key] = value
res = self.update(record)
where
def update(self, data):
url = f"{self.host}/api/v2/tables/{self.tableid}/records"
res = self.session.patch(url, json=data).json()
return res