Closed tfwright closed 6 years ago
I fixed this by added {:jason, "~> 1.0"}
to my deps.
How are you depending on Rollbax? Jason is a Rollbax dependency so it should be fetched when you fetch Rollbax 🤔
I added {:rollbax, "~> 0.9.0"},
to the deps
function in mix.exs
. I thought I ran mix deps.get
right after that, but maybe I didn't? But the error made it seem as if the Rollbax module had been loaded but not Jason...
Yeah the issue definitely says that. Is there any chance you could quickly throw a repo together that reproduces this error in isolation? I'll investigate :)
Ping @tfwright :)
Yes I'm a bit busy atm but when I have a chance I can do that
I suspect this is just a problem of dependencies not being fetched correctly or something like that. If the error persists even if you remove the :jason
direct dependency, run rm -rf _build && mix deps.clean --all && mix deps.get
, then please comment here as soon as you have an app that reproduces this and I'll be happy to take a look :) Thanks! 💟
Definitely seems to have been user error. I removed jason from deps and ran the commands you specified and rollbax worked fine. Sorry for the noise!
Hi,
Thanks for creating this. I am trying to use it in Phoenix app. I added the config, and following the instructions here I added
use Plug.ErrorHandler
and the following function tolib/myapp_web/router.ex
:To test, I added a raise in a controller action and when I access that action I see the "Internal server error" message. However the error does not get reported to rollbar. I see this in the server logs:
Any guidance would be appreciated. Thanks.