Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: JSON::RPC::Server with SSL

by zentara (Archbishop)
on Mar 11, 2014 at 15:39 UTC ( [id://1077863]=note: print w/replies, xml ) Need Help??


in reply to JSON::RPC::Server with SSL

Hi, I was looking thru some code on stackoverflow, and there are ways to try and catch the error message in your client. For example:
my $res = $client->call( $uri, $obj ); if($res){ if ($res->is_error) { print "Error : ", $res->error_message; } else { print $res->result; } } else { print $client->status_line; }

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Replies are listed 'Best First'.
Re^2: JSON::RPC::Server with SSL
by mwb613 (Beadle) on Mar 11, 2014 at 19:45 UTC
    Thanks Zentara! I incorporated that handling code into my client. I am now getting the following error message in my client (with the daemon still failing w/o error):
    No res 500 Can't connect to 127.0.0.1:88888
    I've been trying to extract some info from the server methods shown here but can't seem to get to the HTTPS::Daemon or IO::Socket::SSL error that is occurring.
      88888 is greater than 65535 and is therefore not a valid port number.
        Thanks Hazylife, I tried using port 8808 and got the same result.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1077863]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-24 01:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found