Problems with Supabase SDK, error 400 on DB Fetch.

I'm developing an app with Supabase, and trying to use the JS SDK to fetch some information from the DB.

When the app first run I got no problems at all, but when I refresh I always get FetchError: Request with GET/HEAD method cannot have body

My code:

 await DiscordMessage.select(baseCols, {
        count: 'exact',
      }).gte('created_at', (() => startOfToday().toISOString())());


I dont know why this is happening :/
Was this page helpful?