-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
Strange module exception error #740
Comments
I cleaned up the error, it's here in case it makes it easier to debug: [
[
initial_call:
{:cowboy_stream_h, :request_process, [:Argument__1, :Argument__2, :Argument__3]},
pid: %PID{},
registered_name: [],
error_info:
{:exit,
{{{%IxiCenter.Plug.VerifyIxiDeviceRequest.UnauthorizedRequestError{
message: "iXi Device unauthorized",
plug_status: 403
},
[
{IxiCenter.Plug.VerifyIxiDeviceRequest, :verify_request!, 1,
[
file: ~c"lib/ixi_center/plug/verify_ixi_device_request.ex",
line: 46,
error_info: %{module: Exception}
]},
{IxiCenter.Plug.VerifyIxiDeviceRequest, :call, 2,
[file: ~c"lib/ixi_center/plug/verify_ixi_device_request.ex", line: 17]},
{IxiCenterWeb.Router, :api, 2, []},
{IxiCenterWeb.Router, :__pipe_through2__, 1,
[file: ~c"lib/ixi_center_web/router.ex", line: 1]},
{Phoenix.Router, :__call__, 5, [file: ~c"lib/phoenix/router.ex", line: 416]},
{IxiCenterWeb.Endpoint, :plug_builder_call, 2,
[file: ~c"lib/ixi_center_web/endpoint.ex", line: 1]},
{IxiCenterWeb.Endpoint, :"call (overridable 3)", 2,
[file: ~c"lib/ixi_center_web/endpoint.ex", line: 1]},
{IxiCenterWeb.Endpoint, :call, 2, [file: ~c"lib/ixi_center_web/endpoint.ex", line: 1]}
]},
{IxiCenterWeb.Endpoint, :call,
[
%Plug.Conn{
adapter: {Plug.Cowboy.Conn, :...},
assigns: %{},
body_params: %Plug.Conn.Unfetched{aspect: :body_params},
cookies: %Plug.Conn.Unfetched{aspect: :cookies},
halted: false,
host: "ixicenterprd.magicmotorsport.com",
method: "GET",
owner: %PID{},
params: %Plug.Conn.Unfetched{aspect: :params},
path_info: ["api", "ixi_devices", "000000CC9F6003E7", "tuning_sessions"],
path_params: %{},
port: 80,
private: %{},
query_params: %Plug.Conn.Unfetched{aspect: :query_params},
query_string: "",
remote_ip: {0, 0, 0, 0, 0, 65535, 49320, 2704},
req_cookies: %Plug.Conn.Unfetched{aspect: :cookies},
req_headers: [
{"accept-encoding", "gzip, deflate, br"},
{"authorization",
"Bearer eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJwcm9kdWN0cy5tYWdpY21vdG9yc3BvcnQuY29tIiwiZXhwIjoxNzE4ODMzMDc5LCJzbiI6IjAwMDAwMENDOUY2MDAzRTciLCJwaWQiOjI2NzA1MywidWlkIjo0MTU4NiwiYWlkIjoyLCJpcCI6IjE4NS4xNTcuMjMwLjEwOSIsImNycHQiOiJzZWVkIiwiZnAiOiIzTDN6SUVXNmN1NVVjY0ZMZXl2U0JNVWdtaE5CMndvTCJ9.oFgrfhTvDkjChNLTrjonwJ6lDjt3yPsLgdfviniujP4"},
{"content-type", "application/vnd.api+json"},
{"host", "ixicenterprd.magicmotorsport.com"},
{"postman-token", "13ebc2a3-3d6b-49fe-9058-04182b11c79a"},
{"user-agent", "PostmanRuntime/7.39.0"},
{"x-forwarded-for", "185.157.230.109, 192.168.10.104"},
{"x-forwarded-host", "ixicenterprd.magicmotorsport.com"},
{"x-forwarded-port", "443"},
{"x-forwarded-proto", "https"},
{"x-forwarded-server", "prd-client1"},
{"x-real-ip", "192.168.10.104"}
],
request_path: "/api/ixi_devices/000000CC9F6003E7/tuning_sessions",
resp_body: nil,
resp_cookies: %{},
resp_headers: [{"cache-control", "max-age=0, private, must-revalidate"}],
scheme: :http,
script_name: [],
secret_key_base: nil,
state: :unset,
status: nil
},
[]
]}}, []}, []},
ancestors: [%PID{}, %PID{}, %PID{}, IxiCenterWeb.Endpoint, IxiCenter.Supervisor, %PID{}],
message_queue_len: 0,
messages: [],
links: [%PID{}],
dictionary: [
rand_seed:
{%{bits: 58, jump: :fun, next: :fun, type: :exsss, uniform: :fun, uniform_n: :fun},
[98_198_537_292_401_754 | 12_076_600_170_047_340]},
"$logger_metadata$": %{
remote_ip: "185.157.230.109",
request_id: "F9qDZGoZxKBKhBMAAqrC",
sentry: %{
request: %{
cookies: %{},
data: %{},
env: %{
"REMOTE_ADDR" => "185.157.230.109",
"REMOTE_PORT" => 55654,
"REQUEST_ID" => "F9qDZGoA-Z1KhBMAAqqC",
"SERVER_NAME" => "ixicenterprd.magicmotorsport.com",
"SERVER_PORT" => 80
},
headers: %{
"accept-encoding" => "gzip, deflate, br",
"content-type" => "application/vnd.api+json",
"host" => "ixicenterprd.magicmotorsport.com",
"postman-token" => "13ebc2a3-3d6b-49fe-9058-04182b11c79a",
"user-agent" => "PostmanRuntime/7.39.0",
"x-forwarded-for" => "185.157.230.109, 192.168.10.104",
"x-forwarded-host" => "ixicenterprd.magicmotorsport.com",
"x-forwarded-port" => "443",
"x-forwarded-proto" => "https",
"x-forwarded-server" => "prd-client1",
"x-real-ip" => "192.168.10.104"
},
method: "GET",
query_string: "",
url:
"http://ixicenterprd.magicmotorsport.com/api/ixi_devices/000000CC9F6003E7/tuning_sessions"
}
}
},
sentry_last_event_id_and_source: {"efc3cb2d59be45c9892df7719e2f931b", :plug}
],
trap_exit: false,
status: :running,
heap_size: 4185,
stack_size: 28,
reductions: 57501
],
[]
] |
I’m a little stumped by this to be honest. I don't see cowboy logging anything on its own in In any case, could you share your Sentry config in case it might help debug this? Also, just putting it out there, do you have a way to consistently reproduce this? cc @ninenines in case this is obvious to you 😄 |
@whatyouhide this is the runtime configuration we have for sentry:
I will try to setup a minimal environment to reproduce this. In the meantime is it possibile to filter these errors out in order to:
Thanks a lot |
You can filter them out yourself in your |
@whatyouhide here is a repository that triggers the error: https://github.com/tommasop/elixir-boilerplate to make the error appear:
|
@whatyouhide we are migrating to OTP 27.0 and elixir 1.17.2 we have the dev env already migrated and the error is not present any longer. It is still present in prod with the old erlang/elixir versions. |
Environment
elixir 1.14.5
OTP 25.3.2.12
phoenix 1.17.0
Steps to Reproduce
We have a plug exception defined like this:
And have filtered < 500 errors in
before_send
like this:Expected Result
I expect not to see any error logged in Sentry
Actual Result
We have many of these errors recorded:
JSON payload
The text was updated successfully, but these errors were encountered: