wrappers icon indicating copy to clipboard operation
wrappers copied to clipboard

PostgrestError: called 'Result::unwrap()' on an 'Err' value: InvalidPosition

Open dohooo opened this issue 1 year ago • 2 comments

Bug report

  • [x] I confirm this is a bug with Supabase, not with my own application.
  • [x] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

A clear and concise description of what the bug is.

Related to https://github.com/supabase/wrappers/pull/289

To Reproduce

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

  1. supabase db reset.
  2. Retrieve stripe.products via js SDK.
  3. Error occurred.

But in another way, it could be solved.

  1. supabase db reset.
  2. Retrieve stripe.products in the supabase studio image
  3. Retrieve stripe.products via js SDK.
  4. Receive the correct data image

For more information: image

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

System information

  • OS: [e.g. macOS, Windows]
  • Browser (if applies) [e.g. chrome, safari]
  • Version of supabase-js: [e.g. 6.0.2]
  • Version of Node.js: [e.g. 10.10.0]

Additional context

Add any other context about the problem here.

dohooo avatar Jul 11 '24 04:07 dohooo

https://github.com/supabase/wrappers/pull/289#issuecomment-2219551894 https://github.com/supabase/wrappers/pull/289#issuecomment-2219636490

cc @burggraf @imor

dohooo avatar Jul 11 '24 04:07 dohooo

Thanks for reporting this issue. It is caused by initial writing metadata data to the stats table, it is fixed by #289 and Wrappers version >= '0.4.0' should not see this issue anymore.

burmecia avatar Jul 12 '24 09:07 burmecia