wooga / eredis

Erlang Redis client
MIT License
628 stars 280 forks source link

{error,{unexpected_data,{error,closed}}} - during Authentication #114

Open RajuC opened 6 years ago

RajuC commented 6 years ago

I am passing the Eredis password param in the start_link, Previously my password param was empty, now we have added a authentication to our redis server. When i try to pass the password param "xcvvcnbmn", i am seeing the below crash Please do the needful I am able to connect through redis-cli

 =SUPERVISOR REPORT==== 28-Aug-2018::16:31:16 ===
 Supervisor: {<0.268.0>,eredis_sup}
 Context:    start_error
 Reason:     {'EXIT',
                 {{badmatch,
                      {error,
                          {connection_error,
                              {authentication_error,
                                  {unexpected_data,{error,closed}}}}}},
                  [{eredis,start_link,6,
                       [{file,"src/eredis.erl"},{line,76}]},
                   {supervisor,do_start_child,2,
                       [{file,"supervisor.erl"},{line,365}]},
                   {supervisor,start_children,3,
                       [{file,"supervisor.erl"},{line,348}]},
                   {supervisor,init_children,2,
                       [{file,"supervisor.erl"},{line,314}]},
                   {gen_server,init_it,6,
                       [{file,"gen_server.erl"},{line,328}]},
                   {proc_lib,init_p_do_apply,3,
                       [{file,"proc_lib.erl"},{line,247}]}]}}
 Offender:   [{pid,undefined},
              {id,eredis},
              {mfargs,{eredis,start_link,[]}},
              {restart_type,temporary},
              {shutdown,5000},
              {child_type,worker}]
Lcccc28 commented 1 year ago

@RajuC I also encountered this problem, how did you solve it?