Unable to fetch or modify records

Hi, I was following the quick start guide but I’m stuck at the fetching of records. Here is the error message I received in the console

datasync.js:301 Uncaught (in promise) Error: Row level security is required for accessing this table
CallStack (from HasCallStack):
  error, called at ./IHP/Prelude.hs:89:17 in ihp-0.19.0-2PpNJYQzcPcJ0msRsxaILh:IHP.Prelude while trying to subscribe to:
    "table": "tasks",
    "selectedColumns": {
        "tag": "SelectAll"
    "whereCondition": null,
    "orderByClause": [],
    "distinctOnColumn": null,
    "limit": null,
    "offset": null
    at DataSubscription.createOnServer (datasync.js:301:1)

I’m not quite sure what went wrong. For context, I am using create-react-app as the template.

Hi, thanks for the feedback :slight_smile: Does your table have a user_id column?

All tables are private by default unless a policy is created that grants access to that table for users meeting a specific condition specified in that policy. Thin automatically creates a policy when a user_id column is added to a table. Check Policies: Authorization with Thin - Thin Backend for more details