Hi,

I use EpiOAuth for my Twitter dashboard application hosted on a
dedicated server, jmathai's async cURL Twitter class, memcached for
caching responses.

Almost every day, more frequently past days/weeks, my server logs API
errors that literally drives the site down, requiring the server to be
restarted in order to be accessible again. It looks like async cURL
doesn't stop for a client after a few seconds due to API
unavailability, but it continues to run until it receives something,
most likely after other connections have been requested, filling the
queue.

Since my application is kneed almost every time these API errors
occur, I would like to know if anyone experiences the same problems
and if you know any workaround or a solution to cURL blocking server
with requests.

For Twitter support, please let me know how should an app handle these
errors best, I am opened to any suggestions.

Frequent errors are:

1. HTTP Server Error 503 - No available server to handle this request
[Wed Sep 09 01:01:01 2009] [error] [client xx.xxx.xxx.xxx] PHP Fatal
error:  Uncaught exception 'EpiOAuthException' with message
'<html><body><h2>HTTP Server Error 503</h2><p> No available server to
handle this request </p></body></html>' in /tweetvisor.com/httpdocs/
classes/EpiOAuth.php:335\nStack trace:\n#0 /tweetvisor.com/httpdocs/
classes/EpiOAuth.php(312): EpiOAuthException::raise
('<html><body><h2...', 503)\n#1 /tweetvisor.com/httpdocs/classes/
EpiOAuth.php(38): EpiOAuthResponse->__get('oauth_token')\n#2 /
tweetvisor.com/httpdocs/oauth_init.php(103): EpiOAuth-
>getAuthenticateUrl()\n#3 /tweetvisor.com/httpdocs/includes.php(197):
include_once('/tweetvisor.com/tweetvisor.com/...')\n#4 /tweetvisor.com/
httpdocs/ajax_twitter_showonlineusers.php(2): require_once('/...')\n#5
{main}\n  thrown in /tweetvisor.com/httpdocs/classes/EpiOAuth.php on
line 335, referer: http://tweetvisor.com/

2. Twitter / Over capacity
[Mon Sep 07 01:24:54 2009] [error] [client xx.xxx.xxx.xxx] PHP Fatal
error:  Uncaught exception 'EpiOAuthException' with message '<!DOCTYPE
html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html
xmlns="http://www.w3.org/1999/xhtml"; lang="en" xml:lang="en">\n  <head>
\n  \t<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />\n  \t<meta http-equiv="Content-Language" content="en-
us" />\n  \t<title>Twitter / Over capacity</title>\n  \t<link
rel="icon" href="http://static.twitter.com/favicon.ico"; type="image/
ico" />\n  \t<style type="text/css">\n    body{background:#9AE4E8 url
(http://s.twimg.com/images/bg.gif) no-repeat fixed left
top;color:#333;font:0.75em Helvetica,Arial,sans-serif;text-
align:center}\n    #container { width: 755px; margin: 0 auto; padding:
0px 0; text-align: left; position: relative; }\n    #content { width:
100%; margin-top: 0px; float: left; padding-bottom: 15px; background:
transparent url(http://s.twimg.com/images/arr2.gif) no-repeat scroll
25px 0px;}\n    .subpage #content .wrapper { background-color: # in /
tweetvisor.com/httpdocs/classes/EpiOAuth.php on line 335, referer:
http://tweetvisor.com/

3. Twitter / Error
[Mon Sep 07 02:02:17 2009] [error] [client xxx.xx.xxx.xxx] PHP Fatal
error:  Uncaught exception 'EpiOAuthException' with message '<!DOCTYPE
html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html
xmlns="http://www.w3.org/1999/xhtml"; lang="en" xml:lang="en">\n  <head>
\n  \t<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />\n  \t<meta http-equiv="Content-Language" content="en-
us" />\n  \t<title>Twitter / Error</title>\n  \t<link rel="icon"
href="http://static.twitter.com/favicon.ico"; type="image/ico" />\n
\t<style type="text/css">\n    body{background:#9AE4E8 url(http://
s.twimg.com/images/bg.gif) no-repeat fixed left top;color:#333;font:
0.75em Helvetica,Arial,sans-serif;text-align:center}\n    #container
{ width: 755px; margin: 0 auto; padding: 0px 0; text-align: left;
position: relative; }\n    #content { width: 100%; margin-top: 0px;
float: left; padding-bottom: 15px; background: transparent url(http://
s.twimg.com/images/arr2.gif) no-repeat scroll 25px 0px;}\n    .subpage
#content .wrapper { background-color: #fff; pad in /tweetvisor.com/
httpdocs/classes/EpiOAuth.php on line 335, referer: http://tweetvisor.com/

Thanks,

- @NeluLazar

Reply via email to