-
-
Notifications
You must be signed in to change notification settings - Fork 772
Closed
Description
While visiting this example page (linked from Datasette documentation), manually clicking on the link ("This data as .json") to the json data results in an error 500 data() got an unexpected keyword argument 'as_format'
The JSON page linked to from the documentation however is correct (the page address ends in .json
rather than using a query string ?format=json
)
This particular datasette demo page is now a few versions behind, but I was able to reproduce the issue using v0.29.2 and a downloaded copy of the demo database (and also with the current HEAD).
Here is a stack trace:
Traceback (most recent call last):
File "/home/romain/miniconda3/envs/dsbug/lib/python3.7/site-packages/datasette/utils/asgi.py", line 101, in __call__
return await view(new_scope, receive, send)
File "/home/romain/miniconda3/envs/dsbug/lib/python3.7/site-packages/datasette/utils/asgi.py", line 173, in view
request, **scope["url_route"]["kwargs"]
File "/home/romain/miniconda3/envs/dsbug/lib/python3.7/site-packages/datasette/views/base.py", line 267, in get
request, database, hash, correct_hash_provided, **kwargs
File "/home/romain/miniconda3/envs/dsbug/lib/python3.7/site-packages/datasette/views/base.py", line 399, in view_get
request, database, hash, **kwargs
TypeError: data() got an unexpected keyword argument 'as_format'
Metadata
Metadata
Assignees
Labels
No labels