404 Error api/database/3/schema

We are getting 404 error for api/database/3/schema

The use case is we are trying to define variables and when changing the variable type to Field, instead of listing all the tables in the schema, it shows no database / no tables found error

We have migrated db to mysql

Please post diagnostic info