Closed bjvoth closed 2 years ago
When running in production with release for some reason the Poison dependency was unavailable. Thats the error:
22:30:18.412 [error] #PID<0.4692.0> running Web.Endpoint (connection #PID<0.4666.0>, stream id 8) terminated
Server: myserver:80 (http)
Request: GET /exq/api/stats/all
** (exit) an exception was raised:
** (UndefinedFunctionError) function Poison.encode/1 is undefined (module Poison is not available)
Poison.encode(%{stat: %{busy: 0, dead: 0, enqueued: "0", failed: 0, id: "all", processed: 43, retrying: 0, scheduled: 0}})
(exq_ui 0.11.1) web/router.ex:59: anonymous fn/2 in ExqUi.RouterPlug.Router.do_match/4
(exq_ui 0.11.1) lib/plug/router.ex:280: anonymous fn/4 in ExqUi.RouterPlug.Router.dispatch/2
(telemetry 0.4.3) /app/deps/telemetry/src/telemetry.erl:272: :telemetry.span/3
(exq_ui 0.11.1) lib/plug/router.ex:276: ExqUi.RouterPlug.Router.dispatch/2
(exq_ui 0.11.1) web/router.ex:34: ExqUi.RouterPlug.Router.plug_builder_call/2
(trio_web 0.1.0) Web.Router.exq/2
(trio_web 0.1.0) lib/web/router.ex:1: Web.Router.__pipe_through3__/1
exq_ui doesn't depend on poison anymore
Fixes #83.