You need to sign in or sign up before continuing.
API key in invalid format leads to crash
Example with empty API key:
Request: POST /api/my/pulses
** (exit) an exception was raised:
** (MatchError) no match of right hand side value: [""]
(code_stats) web/utils/auth_utils.ex:214: CodeStats.AuthUtils.split_token/1
(code_stats) web/utils/auth_utils.ex:164: CodeStats.AuthUtils.auth_user_api/2
(code_stats) web/plugs/api_auth_required.ex:21: CodeStats.APIAuthRequired.call/2
(code_stats) web/router.ex:21: CodeStats.Router.api_auth/2
(code_stats) web/router.ex:1: CodeStats.Router.match_route/4
(code_stats) web/router.ex:1: CodeStats.Router.do_call/2
(code_stats) lib/code_stats/endpoint.ex:1: CodeStats.Endpoint.phoenix_pipeline/1
(code_stats) lib/code_stats/endpoint.ex:1: CodeStats.Endpoint.call/2