supabase / storage-js

JS Client library to interact with Supabase Storage
Apache License 2.0
127 stars 37 forks source link

explain() always returns error: None of these media types are available #185

Closed mozeryansky closed 10 months ago

mozeryansky commented 10 months ago

Bug report

When I use .explain() on any of my queries I get this error:

{
  error: {
    code: 'PGRST107',
    details: null,
    hint: null,
    message: 'None of these media types are available: application/vnd.pgrst.plan+text; for="undefined"; options=analyze'
  },
  data: null,
  count: null,
  status: 415,
  statusText: 'Unsupported Media Type'
}

I also tried .explain({ analyze: true }), and I tried it on a few different queries.

Describe the bug

.explain() isn't working

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

await supabase
    .from('table')
    .select('*')
    .explain({ analyze: true })

Expected behavior

Explain works

System information

mozeryansky commented 10 months ago

Closing, wrong repo. Refiled on supabase/supabase.