#recapcha{} fails httpc request

22 views
Skip to first unread message

Anton Shvein

unread,
Dec 11, 2014, 7:22:06 AM12/11/14
to nitrogenweb
Hi falks,
I have a problem with #recapcha element which worked previously.
May be the problem is in configs, but can't guess where.


{error,exit,
    {noproc,
        {gen_server,call,
            [httpc_manager,
             {request,
                 {request,undefined,<0.1871.0>,0,http,
                     {"www.google.com",80},
                     "/recaptcha/api/verify",[],post,
                     {http_request_h,undefined,"keep-alive",undefined,
                         undefined,undefined,undefined,undefined,undefined,
                         undefined,undefined,undefined,undefined,undefined,
                         undefined,undefined,undefined,"www.google.com",
                         undefined,undefined,undefined,undefined,undefined,
                         undefined,undefined,undefined,undefined,[],undefined,
                         undefined,undefined,undefined,"0",undefined,
                         undefined,undefined,undefined,undefined,undefined,[]},
                     {"application/x-www-form-urlencoded",
                      "privatekey=6LfMFfoSAAAAALHgB7BKCn0ZM8QInWGnCvBZaSAG&challenge=03AHJ_Vuv5tpxpfGk_PrOoymS1xJSEctQGgNrWUGzxZwyQaWwOMqe5kG4PMCe6giunCU2OmwrVzySjBmaOL3HLBa-UWUSzzV3bhBXWcew-XpITSvEnA8t7f4GeY2c3kFrJBAqVzalz_Wks0IxLRnR4UL1oaxEZdYrMYSIli-2BmKTHGQYDWDxGmShVZK_DDIhMIQoxp_N7SQtU6HiI8WknmBrlbqx8Ssl9r4AgALNkZLQ-rsQxsuojCmTZ7-W5L6u-3nPk0Qn0vUDMb9nY6jNkXMXFJHT91wHSulpDynjslTkO-qFU2454im4&response=2009&remoteip=127.0.0.1"},
                     {http_options,"HTTP/1.1",infinity,true,
                         {essl,[]},
                         undefined,false,infinity,false},
                     "http://www.google.com/recaptcha/api/verify",[],none,[],
                     1418300093807,undefined,undefined,false}},
             infinity]}},
    [{gen_server,call,3,[{file,"gen_server.erl"},{line,190}]},
     {httpc,handle_request,9,[{file,"httpc.erl"},{line,572}]},
     {element_recaptcha,evaluate_captcha,3,
         [{file,"src/elements/other/element_recaptcha.erl"},{line,150}]},
     {element_recaptcha,event,1,
         [{file,"src/elements/other/element_recaptcha.erl"},{line,75}]},
     {wf_core,run_websocket,1,[{file,"src/wf_core.erl"},{line,78}]},
     {nitrogen,ws_message_catched,1,[{file,"src/nitrogen.erl"},{line,68}]},
     {nitrogen,ws_message,3,[{file,"src/nitrogen.erl"},{line,59}]},
     {cowboy_simple_bridge_anchor,websocket_handle,3,
         [{file,"src/cowboy_bridge_modules/cowboy_simple_bridge_anchor.erl"},
          {line,65}]}]}

--
Best wishes, T0ha aka Anton Shvein.

Hazim Sultan

unread,
Dec 11, 2014, 8:05:20 AM12/11/14
to nitro...@googlegroups.com
Hi Anton,

Not really an expert in this but looks like you httpc_manager process has died, that why you get:

{error,exit,
    {noproc,
        {gen_server,call,

The easiest would be to go to you erlang shell and start it up using:
httpc_manager:start().

Not sure thats the correct way though :).

//Hazim

--
You received this message because you are subscribed to the Google Groups "Nitrogen Project / The Nitrogen Web Framework for Erlang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nitrogenweb...@googlegroups.com.
To post to this group, send email to nitro...@googlegroups.com.
Visit this group at http://groups.google.com/group/nitrogenweb.
For more options, visit https://groups.google.com/d/optout.

Jesse Gumm

unread,
Dec 11, 2014, 4:28:15 PM12/11/14
to nitrogenweb
Hazim has stumbled on it.

Inets probably just needs to be started. You can start it in nitrogen_sup.erl

Looks like I forgot to include it in the default installation.

-Jesse
--
Jesse Gumm
Owner, Sigma Star Systems
414.940.4866 || sigma-star.com || @jessegumm

Anton Shvein

unread,
Dec 11, 2014, 10:36:01 PM12/11/14
to nitrogenweb
Thanks a lot.
С уважением, T0ha aka Швеин Антон.
Reply all
Reply to author
Forward
0 new messages