Skip to content

failed to start child: Cog.Adapters.Slack.Sup #392

@jason-riddle

Description

@jason-riddle

Getting the following stack trace when trying to run this with docker-compose.

cog_1      | =INFO REPORT==== 16-Mar-2016::18:52:06 ===
cog_1      |     application: logger
cog_1      |     exited: stopped
cog_1      |     type: temporary
cog_1      | ** (Mix) Could not start application cog: Cog.start(:normal, []) returned an error: shutdown: failed to start child: Cog.Adapters.Slack.Sup
cog_1      |     ** (EXIT) shutdown: failed to start child: Cog.Adapters.Slack.RTMConnector
cog_1      |         ** (EXIT) an exception was raised:
cog_1      |             ** (MatchError) no match of right hand side value: {:error, %HTTPoison.Error{id: nil, reason: :closed}}
cog_1      |                 (cog) lib/cog/adapters/slack/rtm_connector.ex:36: Cog.Adapters.Slack.RTMConnector.start_link/3
cog_1      |                 (stdlib) supervisor.erl:343: :supervisor.do_start_child/2
cog_1      |                 (stdlib) supervisor.erl:326: :supervisor.start_children/3
cog_1      |                 (stdlib) supervisor.erl:292: :supervisor.init_children/2
cog_1      |                 (stdlib) gen_server.erl:328: :gen_server.init_it/6
cog_1      |                 (stdlib) proc_lib.erl:240: :proc_lib.init_p_do_apply/3
cog_cog_1 exited with code 1

I've exported the following.

COG_ADAPTER="slack"
SLACK_API_TOKEN="<snipped>"
POSTGRES_USER="user"
POSTGRES_PASSWORD="password"

Not sure on how else to debug this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions