-
-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No Events Show Up When Running Server #229
Comments
Thanks for opening this! Everything does look correct. Can you gist the endpoint or route? |
Thanks for your help. We don't have a router. We have a single |
@xanderdunn I'm not able to reproduce it locally from the gist. The config and code where you cause the error could help narrow it down as well. A full repo where I can test myself would be ideal, but I understand if that is difficult. I can be contacted directly in the Elixir Slack (@mitchellhenke) if that is easier 🙂 |
Hi @mitchellhenke, I'm having issues getting the Sentry error logger to send too. I've put together a repo reproducing our scenario: https://github.com/amencarini/sentry-test You can reproduce by doing:
Happens on elixir 1.5.1 and 1.6.0-dev. The |
If that helps, I tried to debug the situation a bit and it seems that this function head (
No |
@amencarini thank you for the repo! I will take a look. |
Got a bit delayed, but planning on looking into this tomorrow. |
Thanks for the update 😃 |
@amencarini apologies ahead of time as this is a part of Phoenix I'm not super knowledgable on. The Corsica plug being in the Endpoint instead of the Router means the error gets caught here: https://github.com/phoenixframework/phoenix/blob/8b8e11305079413fa8b3ace36d9871c0e4e63f7c/lib/phoenix/endpoint.ex#L691-L702 def call(conn, opts) do
conn = put_in conn.secret_key_base, config(:secret_key_base)
conn = put_in conn.script_name, script_name()
conn = Plug.Conn.put_private(conn, :phoenix_endpoint, __MODULE__)
try do
super(conn, opts)
catch
kind, reason ->
Phoenix.Endpoint.RenderErrors.__catch__(conn, kind, reason, @phoenix_render_errors)
end
end I will have to do some research on how we can handle this. |
I see. Thanks for trying that out! We'll see if we can handle the situation differently. |
It's definitely solvable, but may require some heavier configuration when adding Sentry.
I'll be exploring other options too, but hopefully your use case is solvable with that information for now. If you run into anything that could be helpful, I'd be happy to hear it 🙂 |
To follow up on this, I've opened phoenixframework/phoenix#2791 with things I've tried and a suggested solution if none exists currently. |
Environment
Description
Full diff of changes to add sentry to my project:
PUBLIC
,SECRET
, andPORT
are filled in with the correct values on my end and runningMIX_ENV=dev mix sentry.send_test_event
successfully causes an issue to show up in sentry.io. However, when I run my server withmix phx.server
and cause an error withraise "Sentry Test Error 12345"
in one of my endpoints, nothing appears on sentry.io. I'm doing all of this testing locally on my Mac in thedev
environment.The text was updated successfully, but these errors were encountered: