supabase / wrappers

Postgres Foreign Data Wrapper development framework in Rust.
http://fdw.dev
Apache License 2.0
565 stars 56 forks source link

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

Open dohooo opened 4 months ago

dohooo commented 4 months ago

Bug report

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

Additional context

Add any other context about the problem here.

dohooo commented 4 months ago

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

cc @burggraf @imor

burmecia commented 4 months ago

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.