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
I had been using 1.0a11 since it's required for datasette-write, but when I tried to make a particular query (below), I got a 500 in datasette code. Stacktrace excerpt:
File "/home/hugh/Development/github.com/hughrawlinson/eire-election-2024/.venv/lib/python3.12/site-packages/datasette/utils/__init__.py", line 1134, in derive_named_parameters
return [row["p4"].lstrip(":") for row in results if row["opcode"] == "Variable"]
^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'lstrip'
INFO: 127.0.0.1:47266 - "GET /election-2024?sql=select+*+from+candidates+full+join+returning_officer_data+on+upper%28candidates.name%29+%3D+upper%28returning_officer_data.full_name%29+where+candidates.constituency+%3D%7E+%3Aconstituency+or+returning_officer_data.constituency+%3D%7E+%3Aconstituency&constituency=Cork+South-Central HTTP/1.1" 500 Internal Server Error
Looks like it's failing to derive named parameters from the query. When I checked this code in the repo, I found that it had changed since the alpha I was on - I removed datasette-write and moved to mainline releases, and the issue is fixed. Time to cut a new alpha for 1.0 with that change in? I also saw a PR saying that the write api had been merged to main - does this mean that the datasette-write and datasette-write-ui repos ought to be updated to remove the requirement on the alpha?
I had been using 1.0a11 since it's required for datasette-write, but when I tried to make a particular query (below), I got a 500 in datasette code. Stacktrace excerpt:
Looks like it's failing to derive named parameters from the query. When I checked this code in the repo, I found that it had changed since the alpha I was on - I removed datasette-write and moved to mainline releases, and the issue is fixed. Time to cut a new alpha for 1.0 with that change in? I also saw a PR saying that the write api had been merged to main - does this mean that the
datasette-write
anddatasette-write-ui
repos ought to be updated to remove the requirement on the alpha?Query
The text was updated successfully, but these errors were encountered: