lpil / pgo

🐘 Use PostgreSQL databases with PGO

Home Page:https://hexdocs.pm/gleam_pgo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

exception error: no function clause matching gleam_pgo_ffi:convert_errorr(none_available)

ffigiel opened this issue · comments

I couldn't get gleam_pgo to run any query, it would always crash with this error. You can reproduce it by running this project: https://github.com/megapctr/pgo_crash

Thank you for the reproduction, that's super useful 💜

the crash seems to occur when there is a connection problem (e.g. db is down). I also noticed that I can't get a password-protected connection to initialize properly

I pushed a password crash example to the reproduction sample repo

Fixed this with a new error variant, thank you.