All,
Has anyone recently run into this error:
500 Can't locate object method "configure" via package "Net::HTTPS::SU
+PER" at /export/home/scratch/perl/lib/site_perl/5.16.3/ServiceNow/Con
+nection.pm line 70.
I tried to poke around in the lib directory to figure out where the call to that package could be, because I had never heard of it, and couldn't find anything about it, which led me to believe it was a package space declared within the Net::HTTPS .pm file.
I found this in Net::HTTPS -
sub http_connect {
my($self, $cnf) = @_;
if ($self->isa("Net::SSL")) {
if ($cnf->{SSL_verify_mode}) {
if (my $f = $cnf->{SSL_ca_file}) {
$ENV{HTTPS_CA_FILE} = $f;
}
if (my $f = $cnf->{SSL_ca_path}) {
$ENV{HTTPS_CA_DIR} = $f;
}
}
if ($cnf->{SSL_verifycn_scheme}) {
$@ = "Net::SSL from Crypt-SSLeay can't verify hostnames; eithe
+r install IO::Socket::SSL or turn off verification by setting the PER
+L_LWP_SSL_VERIFY_HOSTNAME environment variable to 0";
return undef;
}
}
$self->SUPER::configure($cnf); ##### OFFENDING LINE???
}
This is all coming from an effort at proxy authentication and then SSL authentication at the end point webservice. Truthfully, I'm not even sure whether the problem is at the proxy or the webservice.
UPDATE: The same code set works as is on another machine. Seemed worth noting.
dsb
This @ISA my( $cool ) %SIG
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|