RE: [twitter-dev] What can this error be about?

2010-08-16 Thread Dean Collins
Lol - deancollins http://twitter.com/deancollins  is not an Honest
follower!

 

You might need a bit of an explanation on what this means as I imagine a
lot of people are going to search their own name and have the same
reaction I did...not honest? Wtf?

 

Regards,

Dean Collins
Cognation Inc
d...@cognation.net
mailto:d...@cognation.net +1-212-203-4357   New York
+61-2-9016-5642   (Sydney in-dial).
+44-20-3129-6001 (London in-dial).



From: twitter-development-talk@googlegroups.com
[mailto:twitter-development-t...@googlegroups.com] On Behalf Of
Rushikesh Bhanage
Sent: Monday, 16 August 2010 7:43 AM
To: twitter-development-talk@googlegroups.com
Subject: [twitter-dev] What can this error be about?

 

Hi there,

We have developed an app (you can see http://honestfollowers.com), in
which user can search for his honest followers.

I have successfully tested this for users having up to 5k followers. But
when I search with users having greater than 5k followers (like
'imishant', 'ashabhosle' etc), I get below error :

Warning: Invalid argument supplied for foreach() in
/home/rohit25/public_html/honestfollowers.com/get_data.php on line 356

Above error probably is encountered due to the foreach loop we are using
stops receiving data. I tried searching the same account (imishant) few
hours ago and the operation was crawled and executed completely. So I am
confused whether this is a problem from Twitter's side or not. I have
tested my app with many other accounts and many get executed completely
but some don't and those are mostly accounts with more than 15k
followers. Also those which displays error gets executed completely when
searched on different point of time. So is this a problem from Twitter's
side? Does Twitter API sometimes break operation if when sending huge
chunks of data? What solution you suggest to fetch and execute such
amount of data?

No doubt site is perfectly running for users having below 2k, 3k
followers.

P.S: We have white listed Twitter Account! 

Thank you in advance!



Re: [twitter-dev] What can this error be about?

2010-08-16 Thread Tom van der Woerdt
On 8/16/10 1:43 PM, Rushikesh Bhanage wrote:
 Hi there,
 
 We have developed an app (you can see http://honestfollowers.com), in
 which user can search for his honest followers.
 
 I have successfully tested this for users having up to 5k followers. But
 when I search with users having greater than 5k followers (like
 'imishant', 'ashabhosle' etc), I get below error :
 
 Warning: Invalid argument supplied for foreach() in
 /home/rohit25/public_html/honestfollowers.com/get_data.php
 http://honestfollowers.com/get_data.php on line 356
 
 Above error probably is encountered due to the foreach loop we are using
 stops receiving data. I tried searching the same account (imishant) few
 hours ago and the operation was crawled and executed completely. So I am
 confused whether this is a problem from Twitter's side or not. I have
 tested my app with many other accounts and many get executed completely
 but some don't and those are mostly accounts with more than 15k
 followers. Also those which displays error gets executed completely when
 searched on different point of time. So is this a problem from Twitter's
 side? Does Twitter API sometimes break operation if when sending huge
 chunks of data? What solution you suggest to fetch and execute such
 amount of data?
 
 No doubt site is perfectly running for users having below 2k, 3k followers.
 
 P.S: We have white listed Twitter Account!
 
 Thank you in advance!

Hi,

There can be numerous reasons for a simple PHP error, but this one means
that you don't feed an array into foreach.

Which can also have numerous reasons. I think that, in your case, it may
be because of a 500 Internal Server Error which Twitter gives every now
and then. You should do some checks on the information you get from
Twitter before using it. ;-) Not all API calls always work.

Tom