Service Temporarily Unavailable


#1

Hello guys!

I’ve been working developing an app which search twits with some specific tags which its hosted in a hosting service with my own domain ( http://some.thing.com/). I added this domain to the list of authorized domain in the settings panel of “My Application” in Twitter.

The problem is when I try to do a request, the app seems to be in a infinite loop until get this message:

Service Temporarily Unavailable The server closed the connection without sending any data. The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Due to heavy load on the server, connections may be temporarily blocked from locations that fetch an unusually high number of pages. We apologize for the inconvenience.

It’s pretty wierd because from my server in localhost I do the same queries and I get a correct response.

In my App I’m using the claas from J7mbo, TwiiterAPIExchange.php (https://github.com/j7mbo/twitter-api-php) and it works perfectly in localhost with whichever query I’ve done. I’ve simplified my code to do some tests, deleting superfluous parts:

 public function getFromTwitter() 
    {
	$url = 'https://api.twitter.com/1.1/search/tweets.json';
	$getfield = '?q="sometags"&count=1';
	$requestMethod = 'GET';			
        $response = $this->twitter->setGetfield($getfield)
						->buildOauth($url, $requestMethod)
						->performRequest(); 
	return $response;
    }

Anybody knows why is that happened or how can I fix it.

Thanks in advance and sorry for my english, I’m still learning.