We are currently having a lot of trouble with this with all our facebook apps. We pretty much only make basic API calls... users.getInfo generally. We are running Ruby and using facebooker.
Offline
I saw these "Cannot use string offset as an array" errors calling both api.facebook.com AND api.new.facebook.com. It occurred for both users_getInfo() and fql_query()
Using the new PHP5 restlib.
Last edited by w33zyF (2008-07-18 11:13:11)
Offline
jbolter wrote:
Where do you see those connection reset errors? I am trying to look for logs or something like you are looking at. is that on your server or are there facebook logs for my app somewhere that I don't know about? thx.
I am running ruby on rails. This is coming from our ruby website log file. <website-directory>/log/production.log
Not sure if this helps you...
jason
Offline
And I have absolutely no functionality in IE7 or Safari (attempting to navigate automatically redirects me to my callback + ?auth_token=XXXXXXXXXXXXXXXXXX)
Offline
I'm getting errors on both api.facebook.com and api.new.facebook.com using facebooker with rails.
Offline
my errors occur on api.facebook.com, using the php5 library. my preload fql statements seem to be working but i get intermittent failures on my fql queries within the app, primarily querying the user table.
also get intermittent problems with fbjs not kicking in. the functions i am calling use the Ajax() object.
when i say intermittent, it seems to have no pattern whatsoever.. sometimes all the queries fail, sometimes doing a page refresh causes them to all work correctly or just one or two fail. many of my users have complained that it's happening quite frequently and they are using facebook from all over the world.
Offline
Seems to be fixed now. Thanks, whoever fixed it!
Offline
The last time we got these errors was 07-18-2008 18:45+GMT, so it's about 2 hours ago. Yep, it does seem to be solved.
Thanks to the facebook platform team!
jason
Last edited by pazzu (2008-07-18 13:43:30)
Offline
We made a number of changes that should have fixed the problem. Let us know if this doesn't solve it for you.
Matt Choi
Offline
Just experienced "Fatal error: Cannot use string offset as an array" at 5:23 EST. It seemed to be doing better too.....
PHP5 -> api.new.facebook...
Traced back to:
$fql = 'SELECT birthday, sex, name, pic_big FROM user WHERE uid=' . $facebook_user; $facebook_user_array = $facebook->api_client->fql_query($fql);
Error thrown on $facebook_user_array[0]['birthday'];![]()
Last edited by w33zyF (2008-07-18 14:27:38)
Offline
This error "Cannot use string offset as an array"
is happening because $facebook_user_array is not being set (the api call is failing and returning no data)
The error is generated by your own coded because you are setting your variable (unintentionally) to "", which is a string
PHP5 does some substring type operations if you try to access a string using array notation, but as soon as you get complicated enough that you need to have an array (you are trying to access a multidim array), PHP5 returns an error.
I think PHP4 was a little more graceful, but you could not use 1D array notation to work on strings.
Offline
problem seems to have started ocurring again in the past few minutes. i can't even get onto facebook homepage at the moment. Using firefox, the error i get is ..
"Connection Interrupted
The document contains no data. The network link was interrupted while negotiating a connection. Please try again."
Last edited by ddonoghue (2008-07-18 15:12:42)
Offline
Yep-- it's back; and it seems it's *consistently* failing, as least on the profile_setFBML calls.
ruby on rail, rfacebook, api.facebook.com.
07-18-2008 22:12:41+GMT (13562) Exception caught(E20080718-221241-973398): #<Errno::ECONNRESET: Connection reset by peer> at /usr/lib/ruby/1.8/net/protocol.rb:133:in `sysread',
/usr/lib/ruby/1.8/net/protocol.rb:133:in `rbuf_fill',
/usr/lib/ruby/1.8/timeout.rb:56:in `timeout',
/usr/lib/ruby/1.8/timeout.rb:76:in `timeout',
/usr/lib/ruby/1.8/net/protocol.rb:132:in `rbuf_fill',
/usr/lib/ruby/1.8/net/protocol.rb:116:in `readuntil',
/usr/lib/ruby/1.8/net/protocol.rb:126:in `readline',
/usr/lib/ruby/1.8/net/http.rb:2029:in `read_status_line',
/usr/lib/ruby/1.8/net/http.rb:2018:in `read_new',
/usr/lib/ruby/1.8/net/http.rb:1059:in `request',
/apollo/sw/website-1.0.33-3/website/lib/website-utils/fbsession_hacks.rb:54:in `post_request',
/usr/lib/ruby/1.8/net/http.rb:547:in `start',
/apollo/sw/website-1.0.33-3/website/lib/website-utils/fbsession_hacks.rb:54:in `post_request',
/usr/lib/ruby/gems/1.8/gems/rfacebook-0.9.8/lib/facebook_session.rb:200:in `remote_call',
Last edited by pazzu (2008-07-18 15:16:36)
Offline
Things are really intermittent... I just had a stretch of about 10 minutes with no api call errors (~340 active users and about 7500 pageloads). I was thrilled, but now things are back to the way they were. I don't think this problem should be classified as Minor in bugzilla. It is taking down my entire app, because I rely on DataStore.
Please don't mark this down as fixed. We're not out of the woods yet! Thanks for working on it.
Facebook Platform Team wrote:
We made a number of changes that should that fixed the problem. Let us know if this doesn't solve it for you.
Matt Choi
Offline
I am also having trouble even getting to facebook.com right now, but when I get to my app my FQL queries (using $facebook->api_client->fql_query() ) are returning nothing. I'm using the newest PHP5 library and api.facebook.com.
Offline
I am using this query $facebook->api_client->fql_query('SELECT first_name, last_name, sex, current_location FROM user WHERE uid = '.$user.'')
Since today i am whetting this:
WARNING IsterXmlExpatNonValid->parse(): expat: Invalid document end [0/1/1]
Warning: Invalid argument supplied for foreach() in /bebe/gege/public_html/gegegedd/facebook/gagaaa/index.php on line 187
So I have to wait to see what happends?
A BIG problem for apps depending on certain user info to perform
Offline
Any API call or FQL query is failing 99.999999% of the time..
Completely rediculous!
Offline
Still having connection resets (and timeouts too) at 3:20pm Pacific, July 18:
Jul 18 15:21:34 trunk rails[18346]: Errno::ECONNRESET (Connection reset by peer):
/usr/local/lib/ruby/1.8/net/protocol.rb:133:in `sysread'
/usr/local/lib/ruby/1.8/net/protocol.rb:133:in `rbuf_fill'
/usr/local/lib/ruby/1.8/timeout.rb:62:in `timeout'
/usr/local/lib/ruby/1.8/timeout.rb:93:in `timeout'
...
Offline
Ok, so now its not failing 99.% of the time nomore... its back to its failing about 10% of the time.
Offline
Anyone having these problems again?
Yesterday was a good day for my app, but this morning looks like it is turning out to be a repeat of last week ![]()
Offline
Did you guys noticed something yesterday between 5.10PM and 5.30PM, west cost time? Or was it just my app?
Offline
This just started up for me again. I'm getting quite a lot of Connection Resets on API calls
Offline
Same here, started up again:
Errno::ECONNRESET (Connection reset by peer):
/usr/lib/ruby/1.8/net/protocol.rb:133:in `sysread'
/usr/lib/ruby/1.8/net/protocol.rb:133:in `rbuf_fill'
/usr/lib/ruby/1.8/timeout.rb:56:in `timeout'
/usr/lib/ruby/1.8/timeout.rb:76:in `timeout'
/usr/lib/ruby/1.8/net/protocol.rb:132:in `rbuf_fill'
/usr/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
/usr/lib/ruby/1.8/net/protocol.rb:126:in `readline'
/usr/lib/ruby/1.8/net/http.rb:2029:in `read_status_line'
/usr/lib/ruby/1.8/net/http.rb:2018:in `read_new'
/usr/lib/ruby/1.8/net/http.rb:1059:in `request'
/usr/lib/ruby/1.8/net/http.rb:405:in `post_form'
/usr/lib/ruby/1.8/net/http.rb:547:in `start'
/usr/lib/ruby/1.8/net/http.rb:404:in `post_form'
/vendor/plugins/facebooker/lib/facebooker/service.rb:14:in `post'
/vendor/plugins/facebooker/lib/facebooker/session.rb:399:in `post'
/vendor/plugins/facebooker/lib/facebooker/session.rb:137:in `secure!'
/vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:45:in `secure_with_token!'
Offline
WOW.... 100% errors all the time!
Offline
I am having 200 no data errors :S
Offline