Plug.Parsers.UnsupportedMediaTypeError: unsupported media type application/x-www-form-urlencoded
sentry-io opened this issue · 4 comments
sentry-io commented
Sentry Issue: ELIXIR-OMG-5X
Plug.Parsers.UnsupportedMediaTypeError: unsupported media type application/x-www-form-urlencoded
File "lib/plug/parsers.ex", line 331, in Plug.Parsers.reduce/8
File "lib/web/endpoint.ex", line 15, in OMG.WatcherRPC.Web.Endpoint.plug_builder_call/2
File "lib/web/endpoint.ex", line 15, in OMG.WatcherRPC.Web.Endpoint."call (overridable 3)"/2
File "lib/web/endpoint.ex", line 15, in OMG.WatcherRPC.Web.Endpoint.call/2
File "lib/plug/cowboy/handler.ex", line 18, in Plug.Adapters.Cowboy.Handler.upgrade/4
...
(1 additional frame(s) were not displayed)
(Plug.Parsers.UnsupportedMediaTypeError) unsupported media type application/x-www-form-urlencoded
unnawut commented
Similar issue: https://sentry.io/organizations/omisego/issues/1938626254
Plug.Parsers.UnsupportedMediaTypeError: unsupported media type application/octet-stream
File "lib/plug/parsers.ex", line 331, in Plug.Parsers.reduce/8
File "lib/web/endpoint.ex", line 15, in OMG.WatcherRPC.Web.Endpoint.plug_builder_call/2
File "lib/web/endpoint.ex", line 15, in OMG.WatcherRPC.Web.Endpoint."call (overridable 3)"/2
File "lib/web/endpoint.ex", line 15, in OMG.WatcherRPC.Web.Endpoint.call/2
File "lib/phoenix/endpoint/cowboy2_handler.ex", line 65, in Phoenix.Endpoint.Cowboy2Handler.init/4
File "/app/deps_docker/cowboy/src/cowboy_handler.erl", line 37, in :cowboy_handler.execute/2
File "/app/deps_docker/cowboy/src/cowboy_stream_h.erl", line 300, in :cowboy_stream_h.execute/3
File "/app/deps_docker/cowboy/src/cowboy_stream_h.erl", line 291, in :cowboy_stream_h.request_process/3
boolafish commented
So the action item for this one is to gracefully handle it to not throw error
sentry-io commented
Sentry issue: ELIXIR-OMG-7G
DanielaIvanova commented
PR #1783