[erlang-questions] ibrowse errors

Chandru chandrashekhar.mullaparthi@REDACTED
Sun Apr 25 06:16:22 CEST 2010


On 23 April 2010 23:24, Wes James <comptekki@REDACTED> wrote:

> I'm running the unit tests with ibrowse like this:
>
> c(ibrowse_test,[debug_info]).
> c(ibrowse,[debug_info]).
> c(ibrowse_lib,[debug_info]).
> im().
> ii(ibrowse_test).
> ii(ibrowse).
> ii(ibrowse_lib).
> iaa([init]).
> ibrowse_test:unit_tests().
>
>
> I can see that during the test that http://intranet/messenger should
> give an error like the one below for google, but I would think that
> www.google.com would pass.
>
> get, http://www.google.com                             : Err ->
> {'EXIT',{badarg,[{ets,lookup,[ibrowse_lb,{"www.google.com",80}]},
>                        {ibrowse,send_req,
>                                 ["http://www.google.com",[],get,[],
>                                  [{connect_timeout,5000}],
>                                  30000]},
>                        {ibrowse,send_req,5},
>                        {ibrowse_test,execute_req,3}]}}
>
>
> Why is it failing on www.google.com?
>

Make sure you run ibrowse:start() before running the tests.

cheers
Chandru


More information about the erlang-questions mailing list