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
Hi,
I ran into 500 errors when visiting the pages of my vercel deployment, and it only happened every time I deploy the app with --setting flags that accept boolean in it (e.g. allow_download, allow_facet).
Here's the command that I used to deploy my app:
datasette publish vercel database.db --project=blah-blah --install=datasette-vega --setting allow_download off
And here's the error that I observed in vercel's logs:
module initialization error: name 'false' is not defined
module initialization error
name 'false' is not defined
If I may take an educated guess, the error is caused by the use of json.dumps on the settings dictionary here.
I can confirm that the generated source code in the vercel has the lowercase false boolean set as the value of the dictionary. It was neither a "false" string nor python's False boolean, whichever it is you meant to set.
The text was updated successfully, but these errors were encountered:
Hi,
I ran into 500 errors when visiting the pages of my vercel deployment, and it only happened every time I deploy the app with
--setting
flags that accept boolean in it (e.g.allow_download
,allow_facet
).Here's the command that I used to deploy my app:
And here's the error that I observed in vercel's logs:
If I may take an educated guess, the error is caused by the use of
json.dumps
on the settings dictionary here.I can confirm that the generated source code in the vercel has the lowercase
false
boolean set as the value of the dictionary. It was neither a"false"
string nor python'sFalse
boolean, whichever it is you meant to set.The text was updated successfully, but these errors were encountered: