Forums

  • Home
  •  » API
  •  » API currently freaking out?

#51 2008-07-18 11:08:06

bmunat
Member
Registered: 2008-07-18
Posts: 3

Re: API currently freaking out?

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

 

#52 2008-07-18 11:08:41

w33zyF
Member
Registered: 2008-07-09
Posts: 65

Re: API currently freaking out?

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

 

#53 2008-07-18 11:09:33

pazzu
Member
Registered: 2008-06-17
Posts: 13

Re: API currently freaking out?

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

 

#54 2008-07-18 11:12:21

w33zyF
Member
Registered: 2008-07-09
Posts: 65

Re: API currently freaking out?

And I have absolutely no functionality in IE7 or Safari (attempting to navigate automatically redirects me to my callback + ?auth_token=XXXXXXXXXXXXXXXXXX)

Offline

 

#55 2008-07-18 11:18:34

ryanstout
Member
Registered: 2007-10-25
Posts: 18

Re: API currently freaking out?

I'm getting errors on both api.facebook.com and api.new.facebook.com using facebooker with rails.

Offline

 

#56 2008-07-18 11:23:28

ddonoghue
Member
Registered: 2008-06-22
Posts: 109

Re: API currently freaking out?

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

 

#57 2008-07-18 13:05:34

ryanstout
Member
Registered: 2007-10-25
Posts: 18

Re: API currently freaking out?

Seems to be fixed now.  Thanks, whoever fixed it!

Offline

 

#58 2008-07-18 13:43:11

pazzu
Member
Registered: 2008-06-17
Posts: 13

Re: API currently freaking out?

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

 

#59 2008-07-18 13:47:25

Facebook Platform Team
Administrator
Registered: 2007-11-07
Posts: 2955
Website

Re: API currently freaking out?

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


Facebook Platform Developer Relations

Offline

 

#60 2008-07-18 14:26:00

w33zyF
Member
Registered: 2008-07-09
Posts: 65

Re: API currently freaking out?

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:

Code:

$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'];

hmm

Last edited by w33zyF (2008-07-18 14:27:38)

Offline

 

#61 2008-07-18 15:02:09

wowdoe
Member
Registered: 2008-04-14
Posts: 12

Re: API currently freaking out?

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

 

#62 2008-07-18 15:11:24

ddonoghue
Member
Registered: 2008-06-22
Posts: 109

Re: API currently freaking out?

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

 

#63 2008-07-18 15:13:39

pazzu
Member
Registered: 2008-06-17
Posts: 13

Re: API currently freaking out?

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

 

#64 2008-07-18 15:14:13

wowdoe
Member
Registered: 2008-04-14
Posts: 12

Re: API currently freaking out?

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

 

#65 2008-07-18 15:14:29

jake
Member
Registered: 2007-10-16
Posts: 6

Re: API currently freaking out?

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

 

#66 2008-07-18 15:21:32

feliphe
Member
From: Boston MA
Registered: 2007-12-03
Posts: 648
Website

Re: API currently freaking out?

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

 

#67 2008-07-18 15:22:56

niaaa
Member
Registered: 2008-02-22
Posts: 127

Re: API currently freaking out?

Any API call or FQL query is failing 99.999999% of the time..

Completely rediculous!

Offline

 

#68 2008-07-18 15:25:15

bmunat
Member
Registered: 2008-07-18
Posts: 3

Re: API currently freaking out?

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

 

#69 2008-07-18 15:28:15

niaaa
Member
Registered: 2008-02-22
Posts: 127

Re: API currently freaking out?

Ok, so now its not failing 99.% of the time nomore... its back to its failing about 10% of the time.

Offline

 

#70 2008-07-21 05:36:03

wowdoe
Member
Registered: 2008-04-14
Posts: 12

Re: API currently freaking out?

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 sad

Offline

 

#71 2008-07-21 06:09:02

fcharlon
Member
Registered: 2008-01-16
Posts: 124

Re: API currently freaking out?

Did you guys noticed something yesterday between 5.10PM and 5.30PM, west cost time? Or was it just my app?

Offline

 

#72 2008-07-21 11:43:23

tomfakes
Member
Registered: 2008-04-20
Posts: 95

Re: API currently freaking out?

This just started up for me again.  I'm getting quite a lot of Connection Resets on API calls


Tom Fakes
Offbeat Creations
Be A Tycoon | Food Fling!

Offline

 

#73 2008-07-21 11:46:09

ryanstout
Member
Registered: 2007-10-25
Posts: 18

Re: API currently freaking out?

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

 

#74 2008-07-21 11:47:41

niaaa
Member
Registered: 2008-02-22
Posts: 127

Re: API currently freaking out?

WOW.... 100% errors all the time!

Offline

 

#75 2008-07-21 11:58:50

dotcomUNDERGROUND
Member
From: Bangladesh
Registered: 2007-10-31
Posts: 271
Website

Re: API currently freaking out?

I am having 200 no data errors :S

Offline

 
  • Home
  •  » API
  •  » API currently freaking out?

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson