You should be passing a URL, not the parameters. The parameters can be attached to the URL with $url->query in Mojo::URL.
On Thu, Dec 10, 2015 at 7:03 AM, <[email protected]> wrote: > > I am getting this error > > [ > { > "msg" => { > "message" => "Can't connect: Servname not supported for ai_socktype" > }, > "type" => "danger" > } > ] > > while passing Mojo::Parameters object into Mojo::UserAgent 'get' method. > > Interesting when I convert my object into string like this: > > my $urlHash = Mojo::Parameters->new; > $urlHash->append('q' => $fieldsQuery); > my $url_string = $url->to_string; > my $tx = $self->ua->get($url_string); > > I do not get any error message and useragent works normally. > > Is this intended use of Mojo::Parameters object, shouldn't I pass > ' Mojo::Parameters' object to the useragent instead of its stringified > value? > Or maybe I do something wrong? > > Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "Mojolicious" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/mojolicious. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
