Http Error 500 Ssl Read Timeout
Contents |
Q&A Tutorials Poetry RecentThreads NewestNodes Donate What'sNew on Sep 12, 2005 at 18:06UTC ( #491328=perlquestion: print w/replies, xml ) Need Help?? ariel2 has asked for the wisdom of the Perl Monks concerning the following question: Monks, I have a script that does multiple HTTPS requests
500 Ssl Read Timeout Perl
via LWP (and I have Crypt::SSLeay installed). About 3 out of 4 times, it 500 read timeout perl fails with "500 SSL read timeout". Changing the LWP user agent timeout doesn't seem to affect this problem. Is this a server-side ssl timeout or client-side error message? Does anyone know of a remedy for this? update: I don't think that this is the 500 server error. After doing a little research, it appears that this error is generated in
Perl Lwp::useragent
Net::SSL on this line: local $SIG{ALRM} = sub { $self->die_with_error("SSL read timeout") }; Anyone have any idea what to do about this? Thanks, -ArielComment on 500 SSL read timeout Replies are listed 'Best First'. Re: 500 SSL read timeout by jdhedden (Deacon) on Sep 12, 2005 at 20:27UTC You can set a timeout value. The default is 60 secs. For instances, using LWP::UserAgent: my $ua = LWP::UserAgent->new( timeout => 90 ); [download] Remember:There's always one more bug. [reply][d/l] Re: 500 SSL read timeout by sh1tn (Priest) on Sep 12, 2005 at 18:22UTC 500 Internal Server Error so maybe it's better to check the httpd error log if you have access to it. [reply] Re: 500 SSL read timeout by kwaping (Priest) on Sep 12, 2005 at 19:23UTC Check out LWP::UserAgent::Determined, see if that helps any.[reply] Back to Seekers of Perl Wisdom Log In? Username: Password: remember me What's my password? Create A New User Node Status? node historyNode Type: perlquestion [id://491328]Approved by wwhelp Chatterbox? and all is quiet... How do I use this? | Other CB clients Other Users? Others pondering the Monastery: (2)GrandFather atcroft As of 2016-10-18 01:03 GMT Sections? Seekers of Perl Wisdom Cool Uses for Perl Meditations PerlMonks Discussion Categorized Q&A Tutorials Obfuscated Code Perl Poetry Perl News about Information? PerlMonks FAQ Guide to the Monastery What's New at PerlMonks Voting/Experience System Tutorials Reviews Library Perl FAQs Other Info Sources Find Nodes? Nodes You Wrote Super Search List Nodes By Users Newest Nodes Recently Active Threads Selected Best Nodes Best Nodes Worst Nodes Saints in our Book Leftovers? The St. Larry Wall Shrine Buy PerlMonks Gear Offering Plate Awards Random Node Quests Craft Snippets Code Catacombs Editor Requests blogs.perl.org Perlsphere Perl Ironman Bl
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up 500 error with LWP:UserAgent http://www.perlmonks.org/?node_id=491328 up vote -1 down vote favorite 2 Solved ! thanks for every help i had :) Found http://stackoverflow.com/questions/8026524/how-do-i-force-lwp-to-use-cryptssleay-for-https-requests and solved my issue with use Net::SSL (); # From Crypt-SSLeay BEGIN { $Net::HTTPS::SSL_SOCKET_CLASS = "Net::SSL"; # Force use of Net::SSL $ENV{HTTPS_PROXY} = 'http://10.0.3.1:3128'; } I tried a thousand different ways to connect to the URL https://sis-t.redsys.es:25443/sis/entradaXMLEntidad/ and i seem unable to get something else than a 500 http://stackoverflow.com/questions/26732578/500-error-with-lwpuseragent error. Latest code i tried was require LWP::UserAgent; ## Code added according to Sinan Ünür s comment use Net::SSLeay; $Net::SSLeay::trace = 2; ## End of code added my $ua = LWP::UserAgent->new(ssl_opts => { verify_hostname => 0}); $ua->agent("Mozilla/8.0"); $ua->timeout(10); my $url = 'https://sis-t.redsys.es:25443/sis/entradaXMLEntidad/' my $req = HTTP::Request->new( GET => $url); $req->header( 'Accept' => 'text/html' ); # send request my $res = $ua->request($req); # check the outcome if ( $res->is_success ) { print $res->decoded_content; } else { print "Error: " . $res->status_line . "\n"; } I tried with and without $ua->proxy('https', 'http://myproxy'); I tried POST and GET (since in the end, I am going to have to access that URL with POST). Of course I made sure I was able to get this page from a regular browser. I made sure my code always was able to connect to other pages with the form of https + example.com:example-port + /path/to/another/page. If anyone can help me to find what I am doing wrong, I'd be thankful. EDIT the added code for Sinan Ünür's comment produced the following error DEBUG: .../IO/Socket/SSL.pm:449: socket not yet connected DEBUG: .../IO/Socket/SSL.pm:451: socket connected DEBUG: .../IO/Socket/SSL.pm:469: ssl handshake not started DEBUG: .../IO/Socket/SSL.pm:504: usi
I am using some perl scripts to access a web site to generate a report. The main module that I am using in the scripts are WWW::MECHANIZE. Sometimes It may take minutes before the report is generated, and If this happens, I do not get the http://www.justskins.com/forums/500-ssl-read-timeout-43854.html contents of the report, but this messages: "500 SSL read timeout". Does someone know if I could re-set the timeout value somewhere to solve this error messsages. thanks, -cji... Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode September 27th,05:50 PM #1 "500 SSL read timeout" I am using some perl scripts to access a web site to generate a report. The main module that I am using read timeout in the scripts are WWW::MECHANIZE. Sometimes It may take minutes before the report is generated, and If this happens, I do not get the contents of the report, but this messages: "500 SSL read timeout". Does someone know if I could re-set the timeout value somewhere to solve this error messsages. thanks, -cji Charlie Guest September 28th,10:40 PM #2 Re: "500 SSL read timeout" Find more info, I had another module SSLEAY installed on the top of WWW::Mechanize, and that message "500 500 ssl read SSL read timeout" is coming from that module. So far Still no luck in finding a way out. ?! CJ [email]cji_work[/email] (Charlie) wrote in message news:<1dc70d61.0409270950.61bb32dbposting.google. com>... > I am using some perl scripts to access a web site to generate a > report. The main module that I am using in the scripts are > WWW::MECHANIZE. > > Sometimes It may take minutes before the report is generated, and If > this happens, I do not get the contents of the report, but this > messages: "500 SSL read timeout". > > Does someone know if I could re-set the timeout value somewhere to > solve this error messsages. > > > thanks, > > -cji Charlie Guest « Net::SSH:Perl on Solaris and passwd | ANNOUNCE: WWW::Webrobot 0.50 » Similar Threads Diagnosing "Timeout Expired" By mrgfunk in forum Coldfusion Database Access Replies: 1 Last Post: February 18th, 09:19 PM WebService timeout after setting debug="false" By wcchan in forum ASP.NET Web Services Replies: 3 Last Post: January 10th, 12:11 AM System.Data.SqlClient "Timeout expired" causing ASP.net web application to automatically restart. By Chris Langston in forum ASP.NET Web Services Replies: 1 Last Post: August 13th, 01:55 AM "list of files" & timeout By d.jpr in forum ASP Replies: 1 Last Post: October 27th, 11:09 AM #22546 [Com]: fread (maybe in connection with fseek) do not read "length" bytes By diz at ysagoon dot com in forum PHP Development Replies: 0 Last Post: August 2nd, 10:56