You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error should contain clear information that the error is we are not able to verify certificate
Screenshots
If applicable, add screenshots to help explain your problem.
System information
OS: macOS
Browser (if applies): NextJS server component
Version of supabase-js: 2.25.0
Version of Node.js: 18.18.2
Additional context
After spending 2 hours digging through internal library I found out that the error is self signed certificate is not being verified properly (Self signed cert is added properly in container's /etc/ssl/certs/ca-certificates.crt path. That is also an issue but I will deal with it separately.)
The point is I found where exactly the problem is. It is in src/PostgrestBuilder.ts inside then function. res object's error contains another error named cause that contains more information about the error. Which is getting lost. Because it is not getting assigned in new error object.
The text was updated successfully, but these errors were encountered:
Bug report
Describe the bug
When fetch function inside
PostgrestBuilder
fails. The error does not contain proper information why the fetch failed.To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
The error should contain clear information that the error is we are not able to verify certificate
Screenshots
If applicable, add screenshots to help explain your problem.
System information
Additional context
After spending 2 hours digging through internal library I found out that the error is self signed certificate is not being verified properly (Self signed cert is added properly in container's
/etc/ssl/certs/ca-certificates.crt
path. That is also an issue but I will deal with it separately.)The point is I found where exactly the problem is. It is in
src/PostgrestBuilder.ts
insidethen
function.res
object's error contains another error namedcause
that contains more information about the error. Which is getting lost. Because it is not getting assigned in newerror
object.The text was updated successfully, but these errors were encountered: