Traceback (most recent call last):
File "[path-to-python]/site-packages/datasette/app.py", line 1033, in route_path
response = await view(request, send)
File "[path-to-python]/site-packages/datasette/views/base.py", line 146, in view
File "[path-to-python]/site-packages/datasette/views/base.py", line 118, in dispatch_request
return await handler(request, *args, **kwargs)
TypeError: object Response can't be used in 'await' expression
Making the options function in the DataView class async fixed it for me.
When I perform an OPTIONS request against a database or table datasette fails with an internal error.
All these tests result in the traceback below.
optionsfunction in the
DataViewclass async fixed it for me.
The text was updated successfully, but these errors were encountered: