Phoenix exceptions generating a CRASH REPORT

I’m currently having this bug where everytime there is a Phoenix exception that doesnt hit any route like NoRouteError or UnsupportedMediaTypeError, it causes a crash report to show even though the response is properly sent. I’ve tried updating most libs but with no success. A new project with the same deps versions doesn’t present this error so I’m quite confused.

erlang 24.3.4
elixir 1.13.4
phoenix 1.5.13

2023-03-29 10:32:28 =CRASH REPORT====
  crasher:
    initial call: cowboy_stream_h:request_process/3
    pid: <0.1153.0>
    registered_name: []
    exception exit: {{{#{'__exception__' => true,'__struct__' => 'Elixir.Phoenix.Router.NoRouteError',conn => #{'__struct__' => 'Elixir.Plug.Conn',adapter => {'Elixir.Plug.Cowboy.Conn',#{bindings => #{},body_length => 0,cert => undefined,has_body => false,headers => #{<<"accept">> => <<"*/*">>,<<"accept-encoding">> => <<"gzip, deflate, br">>,<<"connection">> => <<"keep-alive">>,<<"host">> => <<"localhost:4000">>,<<"user-agent">> => <<"PostmanRuntime/7.31.3">>,<<"x-merchant-key">> => <<"{{MerchantApiKey}}">>,<<"x-merchant-token">> => <<"{{MerchantApiToken}}">>},host => <<"localhost">>,host_info => undefined,method => <<"GET">>,path => <<"/">>,path_info => undefined,peer => {{127,0,0,1},51541},pid => <0.1152.0>,port => 4000,qs => <<>>,ref => 'Elixir.GatewayWeb.Endpoint.HTTP',scheme => <<"http">>,sock => {{127,0,0,1},4000},streamid => 1,version => 'HTTP/1.1'}},assigns => #{},body_params => #{},cookies => #{'__struct__' => 'Elixir.Plug.Conn.Unfetched',aspect => cookies},halted => false,host => <<"localhost">>,method => <<"GET">>,owner => <0.1153.0>,params => #{},path_info => [],path_params => #{},port => 4000,private => #{'Elixir.GatewayWeb.Router' => {[],#{}},before_send => [#Fun<Elixir.Plug.Telemetry.0.23023616>],phoenix_endpoint => 'Elixir.GatewayWeb.Endpoint',phoenix_router => 'Elixir.GatewayWeb.Router'},query_params => #{},query_string => <<>>,remote_ip => {127,0,0,1},req_cookies => #{'__struct__' => 'Elixir.Plug.Conn.Unfetched',aspect => cookies},req_headers => [{<<"accept">>,<<"*/*">>},{<<"accept-encoding">>,<<"gzip, deflate, br">>},{<<"connection">>,<<"keep-alive">>},{<<"host">>,<<"localhost:4000">>},{<<"user-agent">>,<<"PostmanRuntime/7.31.3">>},{<<"x-merchant-key">>,<<"{{MerchantApiKey}}">>},{<<"x-merchant-token">>,<<"{{MerchantApiToken}}">>}],request_path => <<"/">>,resp_body => nil,resp_cookies => #{},resp_headers => [{<<"cache-control">>,<<"max-age=0, private, must-revalidate">>}],scheme => http,script_name => [],secret_key_base => <<"LiZJ5yTe5VxXx8z43Ce0fMvpKQrkXT4IqsdpA5gizixGIxL5vzsdiV1leqvdy4d7">>,state => unset,status => nil},message => <<"no route found for GET / (GatewayWeb.Router)">>,plug_status => 404,router => 'Elixir.GatewayWeb.Router'},[{'Elixir.GatewayWeb.Router',call,2,[{file,"lib/phoenix/router.ex"},{line,402}]},{'Elixir.GatewayWeb.Endpoint',plug_builder_call,2,[{file,"lib/endpoint.ex"},{line,1}]},{'Elixir.GatewayWeb.Endpoint',call,2,[{file,"lib/endpoint.ex"},{line,1}]},{'Elixir.Phoenix.Endpoint.Cowboy2Handler',init,4,[{file,"lib/phoenix/endpoint/cowboy2_handler.ex"},{line,65}]},{cowboy_handler,execute,2,[{file,"/Users/gppereira/Work/ingresse/gateway/deps/cowboy/src/cowboy_handler.erl"},{line,37}]},{cowboy_stream_h,execute,3,[{file,"/Users/gppereira/Work/ingresse/gateway/deps/cowboy/src/cowboy_stream_h.erl"},{line,306}]},{cowboy_stream_h,request_process,3,[{file,"/Users/gppereira/Work/ingresse/gateway/deps/cowboy/src/cowboy_stream_h.erl"},{line,295}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]},{'Elixir.GatewayWeb.Endpoint',call,[#{'__struct__' => 'Elixir.Plug.Conn',adapter => {'Elixir.Plug.Cowboy.Conn',#{bindings => #{},body_length => 0,cert => undefined,has_body => false,headers => #{<<"accept">> => <<"*/*">>,<<"accept-encoding">> => <<"gzip, deflate, br">>,<<"connection">> => <<"keep-alive">>,<<"host">> => <<"localhost:4000">>,<<"user-agent">> => <<"PostmanRuntime/7.31.3">>,<<"x-merchant-key">> => <<"{{MerchantApiKey}}">>,<<"x-merchant-token">> => <<"{{MerchantApiToken}}">>},host => <<"localhost">>,host_info => undefined,method => <<"GET">>,path => <<"/">>,path_info => undefined,peer => {{127,0,0,1},51541},pid => <0.1152.0>,port => 4000,qs => <<>>,ref => 'Elixir.GatewayWeb.Endpoint.HTTP',scheme => <<"http">>,sock => {{127,0,0,1},4000},streamid => 1,version => 'HTTP/1.1'}},assigns => #{},body_params => #{'__struct__' => 'Elixir.Plug.Conn.Unfetched',aspect => body_params},cookies => #{'__struct__' => 'Elixir.Plug.Conn.Unfetched',aspect => cookies},halted => false,host => <<"localhost">>,method => <<"GET">>,owner => <0.1153.0>,params => #{'__struct__' => 'Elixir.Plug.Conn.Unfetched',aspect => params},path_info => [],path_params => #{},port => 4000,private => #{},query_params => #{'__struct__' => 'Elixir.Plug.Conn.Unfetched',aspect => query_params},query_string => <<>>,remote_ip => {127,0,0,1},req_cookies => #{'__struct__' => 'Elixir.Plug.Conn.Unfetched',aspect => cookies},req_headers => [{<<"accept">>,<<"*/*">>},{<<"accept-encoding">>,<<"gzip, deflate, br">>},{<<"connection">>,<<"keep-alive">>},{<<"host">>,<<"localhost:4000">>},{<<"user-agent">>,<<"PostmanRuntime/7.31.3">>},{<<"x-merchant-key">>,<<"{{MerchantApiKey}}">>},{<<"x-merchant-token">>,<<"{{MerchantApiToken}}">>}],request_path => <<"/">>,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: [<0.1152.0>,<0.1040.0>,<0.1039.0>,'Elixir.GatewayWeb.Endpoint','Elixir.GatewayWeb.Supervisor',<0.1035.0>]
    message_queue_len: 0
    messages: []
    links: [<0.1152.0>]
    dictionary: [{rand_seed,{#{bits => 58,jump => #Fun<rand.3.92093067>,next => #Fun<rand.0.92093067>,type => exsss,uniform => #Fun<rand.1.92093067>,uniform_n => #Fun<rand.2.92093067>},[75249469738529512|133895278720143330]}},{{otel_telemetry,'Elixir.OpentelemetryPhoenix'},[]},{'$__current_otel_ctx',#{{otel_tracer,span_ctx} => undefined}}]
    trap_exit: false
    status: running
    heap_size: 2586
    stack_size: 28
    reductions: 15898
  neighbours:
2023-03-29 10:32:28 =ERROR REPORT====
Ranch listener 'Elixir.GatewayWeb.Endpoint.HTTP', connection process <0.1152.0>, stream 1 had its request process <0.1153.0> exit with reason {{#{'__exception__' => true,'__struct__' => 'Elixir.Phoenix.Router.NoRouteError',conn => #{'__struct__' => 'Elixir.Plug.Conn',adapter => {'Elixir.Plug.Cowboy.Conn',#{bindings => #{},body_length => 0,cert => undefined,has_body => false,headers => #{<<"accept">> => <<"*/*">>,<<"accept-encoding">> => <<"gzip, deflate, br">>,<<"connection">> => <<"keep-alive">>,<<"host">> => <<"localhost:4000">>,<<"user-agent">> => <<"PostmanRuntime/7.31.3">>,<<"x-merchant-key">> => <<"{{MerchantApiKey}}">>,<<"x-merchant-token">> => <<"{{MerchantApiToken}}">>},host => <<"localhost">>,host_info => undefined,method => <<"GET">>,path => <<"/">>,path_info => undefined,peer => {{127,0,0,1},51541},pid => <0.1152.0>,port => 4000,qs => <<>>,ref => 'Elixir.GatewayWeb.Endpoint.HTTP',scheme => <<"http">>,sock => {{127,0,0,1},4000},streamid => 1,version => 'HTTP/1.1'}},assigns => #{},body_params => #{},cookies => #{'__struct__' => 'Elixir.Plug.Conn.Unfetched',aspect => cookies},halted => false,host => <<"localhost">>,method => <<"GET">>,owner => <0.1153.0>,params => #{},path_info => [],path_params => #{},port => 4000,private => #{'Elixir.GatewayWeb.Router' => {[],#{}},before_send => [#Fun<Elixir.Plug.Telemetry.0.23023616>],phoenix_endpoint => 'Elixir.GatewayWeb.Endpoint',phoenix_router => 'Elixir.GatewayWeb.Router'},query_params => #{},query_string => <<>>,remote_ip => {127,0,0,1},req_cookies => #{'__struct__' => 'Elixir.Plug.Conn.Unfetched',aspect => cookies},req_headers => [{<<"accept">>,<<"*/*">>},{<<"accept-encoding">>,<<"gzip, deflate, br">>},{<<"connection">>,<<"keep-alive">>},{<<"host">>,<<"localhost:4000">>},{<<"user-agent">>,<<"PostmanRuntime/7.31.3">>},{<<"x-merchant-key">>,<<"{{MerchantApiKey}}">>},{<<"x-merchant-token">>,<<"{{MerchantApiToken}}">>}],request_path => <<"/">>,resp_body => nil,resp_cookies => #{},resp_headers => [{<<"cache-control">>,<<"max-age=0, private, must-revalidate">>}],scheme => http,script_name => [],secret_key_base => <<"LiZJ5yTe5VxXx8z43Ce0fMvpKQrkXT4IqsdpA5gizixGIxL5vzsdiV1leqvdy4d7">>,state => unset,status => nil},message => <<"no route found for GET / (GatewayWeb.Router)">>,plug_status => 404,router => 'Elixir.GatewayWeb.Router'},[{'Elixir.GatewayWeb.Router',call,2,[{file,"lib/phoenix/router.ex"},{line,402}]},{'Elixir.GatewayWeb.Endpoint',plug_builder_call,2,[{file,"lib/endpoint.ex"},{line,1}]},{'Elixir.GatewayWeb.Endpoint',call,2,[{file,"lib/endpoint.ex"},{line,1}]},{'Elixir.Phoenix.Endpoint.Cowboy2Handler',init,4,[{file,"lib/phoenix/endpoint/cowboy2_handler.ex"},{line,65}]},{cowboy_handler,execute,2,[{file,"/Users/gppereira/Work/ingresse/gateway/deps/cowboy/src/cowboy_handler.erl"},{line,37}]},{cowboy_stream_h,execute,3,[{file,"/Users/gppereira/Work/ingresse/gateway/deps/cowboy/src/cowboy_stream_h.erl"},{line,306}]},{cowboy_stream_h,request_process,3,[{file,"/Users/gppereira/Work/ingresse/gateway/deps/cowboy/src/cowboy_stream_h.erl"},{line,295}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]},{'Elixir.GatewayWeb.Endpoint',call,[#{'__struct__' => 'Elixir.Plug.Conn',adapter => {'Elixir.Plug.Cowboy.Conn',#{bindings => #{},body_length => 0,cert => undefined,has_body => false,headers => #{<<"accept">> => <<"*/*">>,<<"accept-encoding">> => <<"gzip, deflate, br">>,<<"connection">> => <<"keep-alive">>,<<"host">> => <<"localhost:4000">>,<<"user-agent">> => <<"PostmanRuntime/7.31.3">>,<<"x-merchant-key">> => <<"{{MerchantApiKey}}">>,<<"x-merchant-token">> => <<"{{MerchantApiToken}}">>},host => <<"localhost">>,host_info => undefined,method => <<"GET">>,path => <<"/">>,path_info => undefined,peer => {{127,0,0,1},51541},pid => <0.1152.0>,port => 4000,qs => <<>>,ref => 'Elixir.GatewayWeb.Endpoint.HTTP',scheme => <<"http">>,sock => {{127,0,0,1},4000},streamid => 1,version => 'HTTP/1.1'}},assigns => #{},body_params => #{'__struct__' => 'Elixir.Plug.Conn.Unfetched',aspect => body_params},cookies => #{'__struct__' => 'Elixir.Plug.Conn.Unfetched',aspect => cookies},halted => false,host => <<"localhost">>,method => <<"GET">>,owner => <0.1153.0>,params => #{'__struct__' => 'Elixir.Plug.Conn.Unfetched',aspect => params},path_info => [],path_params => #{},port => 4000,private => #{},query_params => #{'__struct__' => 'Elixir.Plug.Conn.Unfetched',aspect => query_params},query_string => <<>>,remote_ip => {127,0,0,1},req_cookies => #{'__struct__' => 'Elixir.Plug.Conn.Unfetched',aspect => cookies},req_headers => [{<<"accept">>,<<"*/*">>},{<<"accept-encoding">>,<<"gzip, deflate, br">>},{<<"connection">>,<<"keep-alive">>},{<<"host">>,<<"localhost:4000">>},{<<"user-agent">>,<<"PostmanRuntime/7.31.3">>},{<<"x-merchant-key">>,<<"{{MerchantApiKey}}">>},{<<"x-merchant-token">>,<<"{{MerchantApiToken}}">>}],request_path => <<"/">>,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},[]]}} and stacktrace []