HTTP client error, invalid_version

Anton Krasovsky anton.krasovsky@REDACTED
Tue Aug 11 13:47:07 CEST 2009


I'm using inets http client to fetch some twitter profile images
(hosted on amazon s3), observed a crash in http client.

Attaching a trace.

Regards,
Anton
-------------- next part --------------
=ERROR REPORT==== 11-Aug-2009::11:26:23 ===
** Generic server <0.927.0> terminating 
** Last message in was {tcp,#Port<0.3985>,
                            <<82,18,138,6,220,185,201,110,222,213,231,212,119,
                              168,206,218,92,188,169,35,173,191,240,215,132,
                              228,5,173,124,97,109,20,188,130,98,157,200,7,
                              184,35,21,21,223,135,252,51,111,18,64,222,48,
                              138,69,242,246,110,121,31,57,63,133,115,49,51,
                              65,33,48,249,127,103,150,79,152,168,231,119,248,
                              251,213,219,251,175,50,209,164,37,36,116,83,188,
                              130,11,14,220,227,173,71,45,217,182,219,23,245,
                              15,15,232,23,50,198,176,120,227,201,137,48,25,
                              165,153,153,155,177,57,219,216,1,86,174,60,61,
                              161,91,106,214,177,232,158,47,51,93,74,190,82,
                              24,228,119,126,84,146,199,229,234,122,86,77,170,
                              197,61,178,170,71,186,52,83,184,176,251,173,142,
                              149,78,210,246,226,195,89,183,125,61,228,91,165,
                              114,209,202,220,175,211,220,211,229,178,220,92,
                              215,232,81,248,131,160,69,162,91,65,38,110,11,
                              92,146,16,73,242,240,62,241,218,71,174,57,250,
                              215,22,107,178,248,177,172,221,234,23,186,96,
                              212,238,3,79,21,166,31,113,198,24,187,118,250,
                              98,184,89,111,109,163,235,50,146,123,14,107,158,
                              178,114,157,162,143,162,192,212,165,67,14,185,
                              228,151,204,145,234,39,161,46,32,151,253,92,170,
                              73,237,156,26,86,83,130,112,113,81,202,214,232,
                              218,85,97,53,120,187,145,115,154,50,115,74,69,
                              52,131,138,163,158,77,160,221,73,186,154,221,41,
                              188,142,244,210,51,115,102,231,131,52,247,212,
                              252,69,111,106,132,12,238,98,113,156,0,166,189,
                              155,192,195,82,211,180,75,141,9,34,133,227,153,
                              156,178,60,68,140,182,50,217,206,59,15,165,121,
                              199,193,91,89,39,241,36,147,160,255,0,85,17,228,
                              251,244,175,109,187,95,236,237,52,220,54,30,121,
                              142,200,99,199,223,108,118,246,174,44,76,218,
                              151,42,55,195,211,83,124,239,161,157,162,232,
                              158,127,137,44,236,252,214,158,75,56,165,146,87,
                              0,0,3,1,132,253,9,174,123,226,23,129,116,120,45,
                              63,180,238,237,86,36,103,36,178,63,150,127,62,
                              153,175,74,240,22,158,116,235,86,154,230,85,55,
                              19,243,33,61,201,254,149,91,226,197,188,151,158,
                              29,91,61,139,36,67,59,147,104,57,94,57,25,239,
                              92,156,242,140,147,76,238,158,30,46,15,153,30,
                              73,164,120,75,83,112,151,158,31,241,133,220,46,
                              231,10,151,128,145,183,28,97,129,32,215,109,103,
                              226,253,123,74,130,43,79,20,105,69,138,141,159,
                              105,182,229,88,14,248,237,84,252,25,164,193,164,
                              120,82,206,222,207,80,143,237,139,19,27,168,166,
                              132,236,114,88,145,219,176,192,227,156,213,200,
                              53,11,185,45,196,26,166,155,115,14,122,25,23,
                              119,228,123,143,122,236,170,251,234,143,46,132,
                              100,149,210,113,103,83,165,234,16,106,16,27,155,
                              25,12,145,49,229,128,35,30,199,53,113,164,218,
                              252,140,41,239,156,138,229,124,59,11,91,94,0,18,
                              79,179,190,112,160,124,132,215,75,52,136,225,
                              152,55,204,153,62,149,196,210,79,67,178,45,201,
                              106,54,103,113,42,70,135,112,35,114,182,122,14,
                              188,215,55,226,171,107,86,183,96,242,40,222,120,
                              35,158,43,67,78,149,167,212,21,227,109,232,37,
                              11,236,51,129,214,179,53,219,25,174,245,115,18,
                              92,165,173,146,130,242,92,158,145,33,60,12,119,
                              239,93,241,124,144,230,103,149,82,46,165,78,84,
                              113,26,221,149,156,90,108,246,182,202,132,136,
                              247,121,160,252,193,193,237,245,175,54,190,142,
                              91,56,165,118,142,69,150,120,198,192,6,0,4,96,
                              181,125,5,119,225,111,13,37,128,22,122,13,213,
                              217,110,60,251,165,218,204,73,234,55,28,143,202,
                              188,135,198,186,40,176,212,175,237,67,63,150,97,
                              79,36,177,251,136,1,33,127,60,10,215,15,136,83,
                              151,41,24,252,186,120,122,74,165,238,191,35,156,
                              123,168,173,116,141,66,88,64,13,58,136,23,30,
                              152,27,191,90,229,107,107,196,13,28,49,199,99,
                              19,22,84,198,125,241,223,243,205,99,98,186,225,
                              181,207,54,49,178,26,104,165,197,37,104,132,196,
                              164,52,180,134,153,44,41,8,165,162,154,21,134,
                              145,69,56,211,123,208,67,3,72,122,210,209,138,4,
                              52,82,210,82,213,16,130,129,69,20,138,22,138,40,
                              164,48,165,20,148,80,52,58,129,77,165,20,20,45,
                              20,81,69,134,46,104,52,148,82,11,142,162,146,
                              138,10,20,83,133,32,162,164,180,46,104,205,37,
                              40,20,20,40,230,158,162,144,10,122,210,102,145,
                              136,1,78,2,146,130,106,77,150,130,147,138,76,
                              250,83,115,147,79,85,165,176,38,222,199,170,124,
                              35,241,180,246,176,203,166,95,15,50,8,163,47,
                              230,57,24,8,58,131,159,173,118,74,159,100,184,
                              93,71,195,75,28,144,220,48,50,217,249,160,46,
                              122,238,66,120,3,218,188,18,210,59,131,28,194,
                              217,202,254,236,239,25,198,229,238,43,123,193,
                              158,34,189,208,167,71,91,117,188,179,199,205,1,
                              108,180,103,213,15,99,237,88,207,2,234,46,122,
                              123,246,58,41,227,213,10,138,21,118,211,94,196,
                              190,56,188,212,238,60,77,116,117,139,68,142,229,
                              135,1,8,249,84,116,193,250,119,174,123,77,142,
                              41,102,216,102,142,30,14,88,158,185,236,61,107,
                              173,241,246,189,105,226,61,90,41,52,203,89,34,
                              133,34,96,254,108,101,73,39,28,127,58,227,173,
                              80,71,118,64,9,198,75,1,233,232,43,211,194,73,
                              170,49,82,86,125,143,31,23,24,251,121,114,62,
                              101,125,205,95,35,204,133,173,202,186,203,25,56,
                              110,63,60,251,211,151,42,171,242,59,198,203,128,
                              120,224,143,66,59,212,214,18,218,139,200,82,236,
                              6,183,152,5,152,167,222,216,125,61,235,217,236,
                              252,33,225,155,95,13,216,248,135,199,215,150,
                              250,84,75,23,148,182,137,251,181,97,146,80,176,
                              3,37,202,227,229,31,141,116,69,94,23,57,167,43,
                              61,81,228,186,54,251,107,89,174,203,93,52,160,
                              236,70,126,163,35,24,247,235,64,138,123,55,146,
                              75,171,91,134,12,0,97,129,184,159,82,59,3,94,
                              183,97,121,240,91,197,36,233,218,110,169,46,157,
                              124,232,35,139,205,71,139,121,61,2,150,27,115,
                              245,197,121,215,197,29,19,91,240,190,167,45,173,
                              199,239,160,156,230,43,150,201,220,163,129,244,
                              97,199,21,14,205,222,247,33,78,234,214,177,77,
                              244,43,68,144,108,191,142,89,112,178,53,151,150,
                              119,179,55,240,41,60,100,113,214,178,117,24,158,
                              218,231,201,186,89,142>>}
** When Server state == {state,
                            {request,#Ref<0.0.0.6803>,<0.96.0>,0,http,
                                {"s3.amazonaws.com",80},
                                "/twitter_production/profile_images/219314140/obama_4color_omark_normal.jpg",
                                [],get,
                                {http_request_h,undefined,"keep-alive",
                                    undefined,undefined,undefined,undefined,
                                    undefined,undefined,undefined,undefined,
                                    undefined,undefined,undefined,undefined,
                                    undefined,undefined,"s3.amazonaws.com",
                                    undefined,undefined,undefined,undefined,
                                    undefined,undefined,undefined,undefined,
                                    undefined,[],undefined,undefined,
                                    undefined,undefined,"0",undefined,
                                    undefined,undefined,undefined,undefined,
                                    undefined,[]},
                                {[],[]},
                                {http_options,"HTTP/1.1",infinity,true,[],
                                    undefined,false},
                                "http://s3.amazonaws.com/twitter_production/profile_images/219314140/obama_4color_omark_normal.jpg",
                                [],none,[]},
                            {tcp_session,
                                {{"s3.amazonaws.com",80},<0.927.0>},
                                false,http,#Port<0.3985>,1,keep_alive},
                            {"HTTP/1.1",200,"OK"},
                            {http_response_h,"max-age=252460800",undefined,
                                "Tue, 11 Aug 2009 11:26:23 GMT",undefined,
                                undefined,undefined,undefined,undefined,
                                undefined,undefined,undefined,
                                "\"3201981bf67bbdf7a6d72399468f9d2d\"",
                                undefined,undefined,undefined,"AmazonS3",
                                undefined,undefined,undefined,undefined,
                                undefined,"30570",undefined,undefined,
                                undefined,"image/jpeg",
                                "Thu, 09 Mar 2017 16:09:46 GMT",
                                "Mon, 09 Mar 2009 16:09:46 GMT",
                                [{"x-amz-id-2",
                                  "/AvfWrSuGZ2NN5VP6+feFF3w/3kgIrv4OGgzlMMCdhBuxlGjQ2qQgKsHnUJgQ8Nk"},
                                 {"x-amz-request-id","D6251E0A344C740D"}]},
                            undefined,
                            {httpc_response,parse,[nolimit,false]},
                            {[],[]},
                            {[],[]},
                            keep_alive,[],nolimit,nolimit,
                            {options,
                                {undefined,[]},
                                0,2,5,120000,2,disabled,false,inet,default,
                                default},
                            {timers,[],#Ref<0.0.0.6776>},
                            httpc_manager,undefined}
** Reason for termination == 
** {bad_return_value,
       {error,
           {invalid_version,
               [82,18,138,6,220,185,201,110,222,213,231,212,119,168,206,218,
                92,188,169,35,173,191,240,215,132,228,5,173,124,97,109,20,188,
                130,98,157,200,7,184,35,21,21,223,135,252,51,111,18,64,222,48,
                138,69,242,246,110,121,31,57,63,133,115,49,51,65,33,48,249,
                127,103,150,79,152,168,231,119,248,251,213,219,251,175,50,209,
                164,37,36,116,83,188,130,11,14,220,227,173,71,45,217,182,219,
                23,245,15,15,232,23,50,198,176,120,227,201,137,48,25,165,153,
                153,155,177,57,219,216,1,86,174,60,61,161,91,106,214,177,232,
                158,47,51,93,74,190,82,24,228,119,126,84,146,199,229,234,122,
                86,77,170,197,61,178,170,71,186,52,83,184,176,251,173,142,149,
                78,210,246,226,195,89,183,125,61,228,91,165,114,209,202,220,
                175,211,220,211,229,178,220,92,215,232,81,248,131,160,69,162,
                91,65,38,110,11,92,146,16,73,242,240,62,241,218,71,174,57,250,
                215,22,107,178,248,177,172,221,234,23,186,96,212,238,3,79,21,
                166,31,113,198,24,187,118,250,98,184,89,111,109,163,235,50,
                146,123,14,107,158,178,114,157,162,143,162,192,212,165,67,14,
                185,228,151,204,145,234,39,161,46]}}}

=CRASH REPORT==== 11-Aug-2009::11:26:23 ===
  crasher:
    initial call: httpc_handler:init/1
    pid: <0.927.0>
    registered_name: []
    exception exit: {bad_return_value,
                        {error,
                            {invalid_version,
                                [82,18,138,6,220,185,201,110,222,213,231,212,
                                 119,168,206,218,92,188,169,35,173,191,240,
                                 215,132,228,5,173,124,97,109,20,188,130,98,
                                 157,200,7,184,35,21,21,223,135,252,51,111,18,
                                 64,222,48,138,69,242,246,110,121,31,57,63,
                                 133,115,49,51,65,33,48,249,127,103,150,79,
                                 152,168,231,119,248,251,213,219,251,175,50,
                                 209,164,37,36,116,83,188,130,11,14,220,227,
                                 173,71,45,217,182,219,23,245,15,15,232,23,50,
                                 198,176,120,227,201,137,48,25,165,153,153,
                                 155,177,57,219,216,1,86,174,60,61,161,91,106,
                                 214,177,232,158,47,51,93,74,190,82,24,228,
                                 119,126,84,146,199,229,234,122,86,77,170,197,
                                 61,178,170,71,186,52,83,184,176,251,173,142,
                                 149,78,210,246,226,195,89,183,125,61,228,91,
                                 165,114,209,202,220,175,211,220,211,229,178,
                                 220,92,215,232,81,248,131,160,69,162,91,65,
                                 38,110,11,92,146,16,73,242,240,62,241,218,71,
                                 174,57,250,215,22,107,178,248,177,172,221,
                                 234,23,186,96,212,238,3,79,21,166,31,113,198,
                                 24,187,118,250,98,184,89,111,109,163,235,50,
                                 146,123,14,107,158,178,114,157,162,143,162,
                                 192,212,165,67,14,185,228,151,204,145,234,39,
                                 161,46]}}}
      in function  gen_server:terminate/6
    ancestors: [httpc_handler_sup,httpc_sup,inets_sup,<0.63.0>]
    messages: []
    links: [<0.69.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 4181
    stack_size: 24
    reductions: 7730
  neighbours:

=SUPERVISOR REPORT==== 11-Aug-2009::11:26:23 ===
     Supervisor: {local,httpc_handler_sup}
     Context:    child_terminated
     Reason:     {bad_return_value,
                     {error,
                         {invalid_version,
                             [82,18,138,6,220,185,201,110,222,213,231,212,119,
                              168,206,218,92,188,169,35,173,191,240,215,132,
                              228,5,173,124,97,109,20,188,130,98,157,200,7,
                              184,35,21,21,223,135,252,51,111,18,64,222,48,
                              138,69,242,246,110,121,31,57,63,133,115,49,51,
                              65,33,48,249,127,103,150,79,152,168,231,119,248,
                              251,213,219,251,175,50,209,164,37,36,116,83,188,
                              130,11,14,220,227,173,71,45,217,182,219,23,245,
                              15,15,232,23,50,198,176,120,227,201,137,48,25,
                              165,153,153,155,177,57,219,216,1,86,174,60,61,
                              161,91,106,214,177,232,158,47,51,93,74,190,82,
                              24,228,119,126,84,146,199,229,234,122,86,77,170,
                              197,61,178,170,71,186,52,83,184,176,251,173,142,
                              149,78,210,246,226,195,89,183,125,61,228,91,165,
                              114,209,202,220,175,211,220,211,229,178,220,92,
                              215,232,81,248,131,160,69,162,91,65,38,110,11,
                              92,146,16,73,242,240,62,241,218,71,174,57,250,
                              215,22,107,178,248,177,172,221,234,23,186,96,
                              212,238,3,79,21,166,31,113,198,24,187,118,250,
                              98,184,89,111,109,163,235,50,146,123,14,107,158,
                              178,114,157,162,143,162,192,212,165,67,14,185,
                              228,151,204,145,234,39,161,46]}}}
     Offender:   [{pid,<0.927.0>},
                  {name,undefined},
                  {mfa,
                      {httpc_handler,start_link,
                          [{request,#Ref<0.0.0.6746>,<0.96.0>,0,http,
                               {"s3.amazonaws.com",80},
                               "/twitter_production/profile_images/71412989/Picture_4_normal.png",
                               [],get,
                               {http_request_h,undefined,"keep-alive",
                                   undefined,undefined,undefined,undefined,
                                   undefined,undefined,undefined,undefined,
                                   undefined,undefined,undefined,undefined,
                                   undefined,undefined,"s3.amazonaws.com",
                                   undefined,undefined,undefined,undefined,
                                   undefined,undefined,undefined,undefined,
                                   undefined,[],undefined,undefined,undefined,
                                   undefined,"0",undefined,undefined,
                                   undefined,undefined,undefined,undefined,[]},
                               {[],[]},
                               {http_options,"HTTP/1.1",infinity,true,[],
                                   undefined,false},
                               "http://s3.amazonaws.com/twitter_production/profile_images/71412989/Picture_4_normal.png",
                               [],none,[]},
                           {options,
                               {undefined,[]},
                               0,2,5,120000,2,disabled,false,inet,default,
                               default},
                           httpc_manager]}},
                  {restart_type,temporary},
                  {shutdown,4000},
                  {child_type,worker}]


More information about the erlang-bugs mailing list