Closed Tomboyo closed 5 years ago
Hi @Tomboyo - thank you for your kind words, about our project. I see you're using the older version of bolt_sips
. Would it be possible, for your project, to use the latest version? Regardless, I don't believe the driver is initialized properly, before you run the scripts, but I could be wrong. Can you give us more details? Also, make sure that bolt_sips
is started before your script starts doing its intended work i.e. by calling: Application.ensure_all_started(:bolt_sips)
- HTH
Hi @florinpatrascu! I didn't realize there was a newer version (doh!), I will switch over to that first thing. I think you're right--I'm definitely doing something wrong with the configuration specifically in my escript artifact (probably a misunderstanding on my part of Elixir configuration). I will do more playing around with the latest version and come back with what I find.
Thanks!
Huzzah, that did the trick. I did run into a bit of a hiccup with the TZData dependency, because by default it was expecting to find some files in the priv/ folder, but my script wasn't necessarily running in a mix-like directory structure. I've overridden the default configuration and called it a day.
Thanks for the help. :) Working like a charm now.
Ahoy!
I'm able to use Bolt.Sips.conn in my test cases and interactively in iex, but an escript I've compiled is misbehaving. I'm sure this is something wrong with my configuration, but Bolt.Sips.conn returns a bare
:error
symbol, which causes Bolt.Sips.query to fail rather loudly. It looks like the:error
is coming from:poolboy's
transaction logic (In the v0.4.12 branch at Connection.ex pool_server/3, line 94).I thought I'd raise this up in case this isn't an intentional hand-off. Normally I would expect to receive
{ :ok, conn }
from Sips.conn if getting an error was possible, since that would force me to match and coincidentally root out:error
s early in the stack; that might be a worthwhile change to the Bolt.Sips.conn api.Thanks for Bolt.Sips! It's been fantastic to work with so far. I'll go see if I can get some logging out of poolboy. :D
Stacktrace if you want it: