I've got a private bors instance on heroku, upgraded from 264fe462..HEAD (master today). I'm now getting errors when the github webhook tries to send data locally:
2020-03-06T18:42:53.893137+00:00 app[web.1]: 18:42:53.892 pid=<0.531.0> [info] REFUSED CONNECTION TO BorsNG.UserSocket in 443µs
2020-03-06T18:42:53.893151+00:00 app[web.1]: Transport: :websocket
2020-03-06T18:42:53.893152+00:00 app[web.1]: Serializer: Phoenix.Socket.V2.JSONSerializer
2020-03-06T18:42:53.893152+00:00 app[web.1]: Connect Info: %{}
I originally had a database error, where the database wasn't migrated; I manually did a ecto.migrate which resolved that; but now I'm also seeing intermittent:
2020-03-06T18:43:00.278823+00:00 app[web.1]: 18:43:00.278 request_id=41fe6054-db93-4c0b-95f0-2804b6adb309 pid=<0.536.0> [info] POST /webhook/github
2020-03-06T18:43:00.282555+00:00 app[web.1]: 18:43:00.281 request_id=41fe6054-db93-4c0b-95f0-2804b6adb309 pid=<0.536.0> [info] Sent 500 in 2ms
2020-03-06T18:43:00.282729+00:00 app[web.1]: 18:43:00.281 request_id=41fe6054-db93-4c0b-95f0-2804b6adb309 pid=<0.536.0> [info] Converted error {:case_clause, "neutral"} to 500 response
2020-03-06T18:43:00.283665+00:00 app[web.1]: 18:43:00.282 pid=<0.418.0> [error] #PID<0.536.0> running BorsNG.Endpoint (cowboy_protocol) terminated
2020-03-06T18:43:00.283666+00:00 app[web.1]: Server: ubors.herokuapp.com:80 (http)
2020-03-06T18:43:00.283667+00:00 app[web.1]: Request: POST /webhook/github
2020-03-06T18:43:00.283667+00:00 app[web.1]: ** (exit) an exception was raised:
2020-03-06T18:43:00.283668+00:00 app[web.1]: ** (CaseClauseError) no case clause matching: "neutral"
2020-03-06T18:43:00.283669+00:00 app[web.1]: (bors) lib/github/github.ex:297: BorsNG.GitHub.map_state_to_status/1
2020-03-06T18:43:00.283669+00:00 app[web.1]: (bors) lib/web/controllers/webhook_controller.ex:233: BorsNG.WebhookController.do_webhook/3
2020-03-06T18:43:00.283670+00:00 app[web.1]: (bors) lib/web/controllers/webhook_controller.ex:83: BorsNG.WebhookController.webhook/2
2020-03-06T18:43:00.283670+00:00 app[web.1]: (bors) lib/web/controllers/webhook_controller.ex:1: BorsNG.WebhookController.action/2
2020-03-06T18:43:00.283671+00:00 app[web.1]: (bors) lib/web/controllers/webhook_controller.ex:1: BorsNG.WebhookController.phoenix_controller_pipeline/2
2020-03-06T18:43:00.283671+00:00 app[web.1]: (phoenix) lib/phoenix/router.ex:288: Phoenix.Router.__call__/2
2020-03-06T18:43:00.283672+00:00 app[web.1]: (bors) lib/web/bors_ng/endpoint.ex:1: BorsNG.Endpoint.plug_builder_call/2
2020-03-06T18:43:00.283672+00:00 app[web.1]: (bors) lib/web/bors_ng/endpoint.ex:1: BorsNG.Endpoint.call/2
What can I do to debug/fix?