I have a phoenix application that was running fine until a few days ago when some modules (mostly deps like Ecto, Poison and Timex) are raising some errors for being unavailable at runtime. I even entered the server via console and checked that the modules were there. This error doesn’t happen on all requests but its getting on my nerves because i can figure it out.
Here are some examples
Elixir.UndefinedFunctionError: function Poison.Encoder.encode/2 is undefined (module Poison.Encoder is not available)
Elixir.UndefinedFunctionError: function Ecto.Queryable.to_query/1 is undefined (module Ecto.Queryable is not available)
All of them look something like this. Im pretty sure these modules are actually available at runtime, since this only occurs in a few (apparently random) requests