PostgrestError: called 'Result::unwrap()' on an 'Err' value: InvalidPosition
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:
- supabase db reset.
- Retrieve stripe.products via js SDK.
- Error occurred.
But in another way, it could be solved.
- supabase db reset.
- Retrieve stripe.products in the supabase studio
- Retrieve stripe.products via js SDK.
- Receive the correct data
For more information:
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.
https://github.com/supabase/wrappers/pull/289#issuecomment-2219551894 https://github.com/supabase/wrappers/pull/289#issuecomment-2219636490
cc @burggraf @imor
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.