-
Notifications
You must be signed in to change notification settings - Fork 13.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: main is not JSON serializable from REST api #1264
Comments
Unfortunately this still occurs in version 0.11. |
This is still an issue in 0.12, I'd like to be able to help but I'm failing to see the main variable being defined in TableModelView. |
Still occurs in 17.6, I'm guessing that nobody actually uses the REST api for this sort of thing. I guess I'll see what my other options are to automate creating tables. |
I'm opting to write to the sqllite database directly. |
I also encountered this error
stack:
|
I've found that to make the free REST api usable in FAB, we often have to create an alternate ModelView for it. For example, for the Dashboard model, we create a ModelView for the CRUD here: Then we create another ModelView for the REST API that exposes a different set of columns: I don't think that the REST api we get for free out of FAB is super mature and I think we've only used it for read operations. Note that the URL mini-language (for filtering and sorting) isn't documented but is easy to reverse-engineer in the CRUD UI. By setting filters and sorting the table, you can look at the URL and copy paste that into your |
@mistercrunch some of the api does actually work fine for read, however |
I'm trying to see if I can create my tables using the REST api discussed in #279 however when I access the
/tablemodelview/api/read
endpoint I get the following exception.Any ideas what the problem might be?
The text was updated successfully, but these errors were encountered: