dnsimple / addon-heroku

Connect DNSimple domains to Heroku apps
1 stars 3 forks source link

Internal server errors #12

Closed sbastn closed 7 years ago

sbastn commented 7 years ago

This happens on the production version (and local version) when doing the following:

aeden commented 7 years ago
  1. What domain were you connecting?
  2. Were you trying to use an SSL certificate?
  3. If yes for 2, did you try to connect to a free dyno?
sbastn commented 7 years ago
  1. domain: voll.co (hosted)
  2. No
  3. It was connecting it to a free dyno. Even though there was no SSL certificate associated with it.
aeden commented 7 years ago

Could you please reproduce in production so I can tail the logs?

aeden commented 7 years ago
2017-01-05T14:48:09.368640+00:00 heroku[router]: at=info method=POST path="/connections" host=addon-heroku-connector.herokuapp.com request_id=05c50dd8-10b0-4312-9255-35b18e76e240 fwd="128.199.50.76" dyno=web.1 connect=1ms service=426ms status=500 bytes=435
2017-01-05T14:48:09.367562+00:00 app[web.1]: 14:48:09.367 request_id=05c50dd8-10b0-4312-9255-35b18e76e240 [info] Sent 500 in 424ms
2017-01-05T14:48:09.388720+00:00 app[web.1]: 14:48:09.388 [error] #PID<0.421.0> running HerokuConnector.Endpoint terminated
2017-01-05T14:48:09.388723+00:00 app[web.1]: Server: addon-heroku-connector.herokuapp.com:80 (http)
2017-01-05T14:48:09.388724+00:00 app[web.1]: Request: POST /connections
2017-01-05T14:48:09.388725+00:00 app[web.1]: ** (exit) an exception was raised:
2017-01-05T14:48:09.388726+00:00 app[web.1]:     ** (FunctionClauseError) no function clause matching in Kernel.=~/2
2017-01-05T14:48:09.388727+00:00 app[web.1]:         (elixir) lib/kernel.ex:1510: Kernel.=~(nil, ~r/heroku/)
2017-01-05T14:48:09.388728+00:00 app[web.1]:         (elixir) lib/enum.ex:787: anonymous fn/3 in Enum.filter/2
2017-01-05T14:48:09.388728+00:00 app[web.1]:         (elixir) lib/enum.ex:1623: Enum."-reduce/3-lists^foldl/2-0-"/3
2017-01-05T14:48:09.388729+00:00 app[web.1]:         (elixir) lib/enum.ex:787: Enum.filter/2
2017-01-05T14:48:09.388730+00:00 app[web.1]:         (heroku_connector) web/services/connection_service.ex:159: HerokuConnector.ConnectionService.connect_dnsimple/3
2017-01-05T14:48:09.388731+00:00 app[web.1]:         (heroku_connector) web/services/connection_service.ex:30: HerokuConnector.ConnectionService.connect_without_certificate/3
2017-01-05T14:48:09.388732+00:00 app[web.1]:         (heroku_connector) web/controllers/connection_controller.ex:48: HerokuConnector.ConnectionController.connect/2
2017-01-05T14:48:09.388733+00:00 app[web.1]:         (heroku_connector) web/controllers/connection_controller.ex:1: HerokuConnector.ConnectionController.action/2
aeden commented 7 years ago

Found the problem: between the time I first wrote the logic and today service.short_name was changed to service.sid.