Closed simonw closed 11 months ago
Table schema:
CREATE TABLE chatgpt_conversation (
id text primary key,
title text,
create_time float,
moderation_results text,
current_node text,
plugin_ids text
);
Stack trace:
TypeError: 'NoneType' object is not subscriptable
File "datasette/app.py", line 1545, in route_path
response = await view(request, send)
File "datasette/app.py", line 1727, in async_view_fn
response = await async_call_with_supported_arguments(
File "datasette/utils/__init__.py", line 1014, in async_call_with_supported_arguments
return await fn(*call_with)
File "__init__.py", line 85, in edit_row_details
value = row[column["name"]]
And more detail from Sentry:
What must have happened is that SQL query returned 0 results, so results.first()
returned None
.
I believe the problem here was datasette-write-ui
not handling text primary key
columns, since it always defaulted to rowid = ?
.
The 963c73c should fix this, and was released in 0.0.1a3 . Gonna verify before closing here
Verified fixed in chat 👍
Got this error on
/-/datasette-write-ui/edit-row-details?db=data&table=chatgpt_conversation&primaryKeys=0133a0e7-2cd8-41c7-914d-e3eb0dd17aeb
: