Forums

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

#26 2008-07-17 21:07:03

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

Re: API currently freaking out?

I'm still seeing problems...
I use the Perl API
[Thu Jul 17 22:59:08 2008] [error] garbage after JSON object, at character offset 5 ["erver closed connection without sending any data back\\n"] at /usr/lib/perl5/site_perl/5.8.8/JSON/Any.pm line 437\n

Didn't really put too much effort into investigating as I was hoping that a very important problem such as this would have been adressed immediately..

anyway... quick investigation points toward the $facebook->friends->get_app_users(); call.

was failling like crazy today... but is kinda failing much less... but still significative.

I appologise about my post being not too technically usefull.. but its just to say that wahtever that was done.. helped towards solving the probem... but its still not completely solved.

Offline

 

#27 2008-07-18 02:03:17

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

Re: API currently freaking out?

Problems just started again for me a few minutes ago


Tom Fakes
Offbeat Creations
Be A Tycoon | Food Fling!

Offline

 

#28 2008-07-18 02:24:51

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

Re: API currently freaking out?

rldrummer wrote:

I'm seeing this as well on FQL queries. It's intermittent, but this code:

$array = $facebook->api_client->fql_query($fql);

is sometimes returning the correct result set, but is sometimes empty. I'm not getting any errors or exceptions, just an empty result.

This is primarily the issue i've been having too. it started yesterday afternoon and got steadily more frequent during the day. If i refresh a page a couple of times the fql works fine.

I've also been finding that FBJS elements are simply not working unless I refresh the page.

These issues are being reported by my application users, but not all of them, and i've also seen them myself but there doesn't seem to be any specific pattern.

i've noticed a general deteriation in the api services over the past week, having had a night with similar problems a few days ago which seemed to be resolved soon after. I am loosing users because my app is affected while rival apps do not seem to have any problems, yet nothing in my code has changed.

Offline

 

#29 2008-07-18 02:44:32

ocallagh1
Member
Registered: 2008-05-23
Posts: 41

Re: API currently freaking out?

We've been experiencing problems too

The following calls intermittently work

facebook->api_client->friends_getAppUsers()
facebook->api_client->users_isAppAdded()
facebook->api_client->users_getInfo()

Especially facebook->api_client->users_getInfo() and facebook->api_client->friends_getAppUsers() fail a lot of the time. The response from FB API Server (via curl) is "Empty reply from server" and followed by isterxmlexpatnonvalid_>parse(): expat: no element found [_1/0/1].

If I turn off curl and just do a regular HTTP Post I sometimes get Connection Reset and sometimes get nothing at all.

On top of this, some new users have been complaing they can't add the application. They get to the Add URL (www.facebook.com/add.php?api_key=xxxxxxxxx) . They click Add, and after they add it, the call to make sure they added it (facebook->api_client->users_isAppAdded()) returns 0 and they are redirected back to the ADD URL. From here, some users get the ADD Application button again, and some get a message stating they've already added the application  (even though facebook->api_client->users_isAppAdded() consistently returns 0)

Offline

 

#30 2008-07-18 02:52:47

ocallagh1
Member
Registered: 2008-05-23
Posts: 41

Re: API currently freaking out?

here is a recent one for a simple users.getInfo call


In facebookapi_php4_restlib.php (line 1649) I entered the following two echo's

       echo "<!-- Using {$this->server_addr} //-->";
       echo "<!-- POST String = {$post_string} //-->";

and here are the results

<!__ Using http://api.facebook.com/restserver.php //__>
<!__ POST String = uids=xxxxxxxxxx&fields=last_name%2Cfirst_name%2Chometown_location%2Cbirthday&method=facebook.users.getInfo&session_key=xxxxxxxx&api_key=xxxxxxxxxx&call_id=1216374459.1503&v=1.0&sig=b34a884593076c1676fbfcf078824c92 //__>

And the return value was empty causing the following prob:

<b>WARNING</b> isterxmlexpatnonvalid_>parse(): expat: no element found [_1/0/1]<br />

Last edited by ocallagh1 (2008-07-18 02:54:10)

Offline

 

#31 2008-07-18 03:44:41

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

Re: API currently freaking out?

I have been getting errors for a while myself. Random errors, associated with API (specifically, FQL queries to the users table).

Also: does Internet Explorer work at all in the sandbox??  I am having all sorts of errors where I can't navigate away from my default canvas page (redirected with ?auth_token..).

Last edited by w33zyF (2008-07-18 03:47:33)

Offline

 

#32 2008-07-18 05:53:09

eddyboston
Member
Registered: 2008-07-01
Posts: 17

Re: API currently freaking out?

I'm still seeing problems with sending LiveMessages from the API. I reported the details yesterday in Bug #2632. 
http://bugs.developers.facebook.com/sho … gi?id=2632

Here is what I reported, for those without a Bugzilla account:

While communicating with Facebook's server to send a LiveMessage from my server
via the Facebook API, I am receiving a "Connection reset by peer" error
message, as if the connection is dying.

I am using the PyFacebook library for accessing these API functions via Python.
I modified the code to add in support for the LiveMessage protocol. This has
worked with no problems up until today, which gives me some confidence that it
is a problem with Facebook and not my end.

The failure occurs only about one out of every ten times. I have only seen it
with sending a LiveMessage, but it is possible that it happens for other API
calls as well, since most of my calls are LiveMessage calls.


Here are the relevant parts of the stack trace:

Code:

<urlopen error (104, 'Connection reset by peer')>
Traceback (most recent call last): 

<... my call to the pyFacebook API removed ...>

File "/my-private-path/facebook/__init__.py", line 452, in __call__ return self._client('%s.%s' % (self._name, method), args) 
File "/my-private-path/facebook/__init__.py", line 853, in __call__ response = urlread(FACEBOOK_URL, post_data) 
File "/my-private-path/facebook/__init__.py", line 90, in urlread res = urllib2.urlopen(url, data=data) 
File "/usr/lib/python2.4/urllib2.py", line 130, in urlopen return _opener.open(url, data) 
File "/usr/lib/python2.4/urllib2.py", line 358, in open response = self._open(req, data) 
File "/usr/lib/python2.4/urllib2.py", line 376, in _open '_open', req) 
File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain result = func(*args) 
File "/usr/lib/python2.4/urllib2.py", line 1021, in http_open return self.do_open(httplib.HTTPConnection, req) 
File "/usr/lib/python2.4/urllib2.py", line 996, in do_open raise URLError(err)
URLError: <urlopen error (104, 'Connection reset by peer')>

Offline

 

#33 2008-07-18 06:26:04

jaruu
Member
Registered: 2008-07-18
Posts: 1

Re: API currently freaking out?

I've started experiencing "HTTP error code 500" too.

I'm getting a number of errors in different parts of my code, and usually its a "Cannot use string offset as an array" error.

As an example, my joyent error log says:
[Fri Jul 18 12:30:48 2008] [error] [client 204.15.23.168] PHP Fatal error:  Cannot use string offset as an array in /home/d96402f6/web/public/brainiversity/config.php on line 26

This is the code (line 26 is the second line):
   $user_details=$facebook->api_client->users_getInfo($uid, array('last_name','first_name'));
   $username=$user_details[0]['first_name'];

Like a lot of people here, I'm getting the error randomly.  My app will work, then it won't.

Offline

 

#34 2008-07-18 06:58:20

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

Re: API currently freaking out?

I'm still having issues on all 3 of my apps, which worked fine before, just had this error:

EOFError (end of file reached):
    /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!'
    /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:23:in `set_facebook_session'
    /vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:149:in `ensure_authenticated_to_facebook'

and this one:

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/models/user.rb:71:in `populate'
    /vendor/plugins/facebooker/lib/facebooker/model.rb:35:in `affiliations'

Offline

 

#35 2008-07-18 07:21:10

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

Re: API currently freaking out?

jaruu wrote:

I've started experiencing "HTTP error code 500" too.

I'm getting a number of errors in different parts of my code, and usually its a "Cannot use string offset as an array" error.

As an example, my joyent error log says:
[Fri Jul 18 12:30:48 2008] [error] [client 204.15.23.168] PHP Fatal error:  Cannot use string offset as an array in /home/d96402f6/web/public/brainiversity/config.php on line 26

This is the code (line 26 is the second line):
   $user_details=$facebook->api_client->users_getInfo($uid, array('last_name','first_name'));
   $username=$user_details[0]['first_name'];

Like a lot of people here, I'm getting the error randomly.  My app will work, then it won't.

This is identical to the behavior I am experiencing.

Offline

 

#36 2008-07-18 07:44:44

tganesh
Member
Registered: 2007-11-22
Posts: 18

Re: API currently freaking out?

I am still having major problems with API calls...they are not timing out right now, but are incredibly slow (taking over 3-5 seconds).  My app is http://apps.facebook.com/sexyvoice/

You can see the effect of it by going to http://apps.facebook.com/sexyvoice/invite.php where I  make the following call:

$rs = $facebook->api_client->fql_query("SELECT uid FROM user WHERE has_added_app=1 and uid IN (SELECT uid2 FROM friend WHERE uid1 = $user)");

Can someone please look at this issue as soon as possible.  It has cut down my traffic in half over the last day and I have no control over it.

Theban

Offline

 

#37 2008-07-18 07:49:22

SP_FB
Member
Registered: 2008-07-18
Posts: 1

Re: API currently freaking out?

We're experiencing the same issues with API calls, WARNING isterxmlexpatnonvalid->parse(): expat: no element found [-1/0/1]

As well as others errors, not sure if they related. It would be great to get a response from FB to let us know if they are working on it. Should we attempt to retrieve the information using FQL? Please advise.

Offline

 

#38 2008-07-18 08:11:42

JeremyPollack
Member
Registered: 2008-05-02
Posts: 24

Re: API currently freaking out?

I'm still getting this error.  Matters have not improved one bit.

Offline

 

#39 2008-07-18 08:19:16

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

Re: API currently freaking out?

Still having serious problems with the API, specifically with DataStore, which I use very heavily for my app.  These are new problems in the past couple days  (started about 5AM EDT on Wednesday).  I am getting garbage data back from DataStore about 10% of the time.  Very frustrating.

Offline

 

#40 2008-07-18 08:20:59

maninderv
Member
Registered: 2008-07-16
Posts: 21

Re: API currently freaking out?

I too am facing this. Its unbelievable its been going on for so long.

Offline

 

#41 2008-07-18 10:09:02

jbolter
Member
Registered: 2008-07-17
Posts: 10

Re: API currently freaking out?

everything was ok last night for me but i just started experiencing these problems AGAIN!  please let us know when this should be fixed.  thx.

Offline

 

#42 2008-07-18 10:10:13

anikale
Member
Registered: 2008-07-17
Posts: 4

Re: API currently freaking out?

jaruu wrote:

I've started experiencing "HTTP error code 500" too.

I'm getting a number of errors in different parts of my code, and usually its a "Cannot use string offset as an array" error.

As an example, my joyent error log says:
[Fri Jul 18 12:30:48 2008] [error] [client 204.15.23.168] PHP Fatal error:  Cannot use string offset as an array in /home/d96402f6/web/public/brainiversity/config.php on line 26

This is the code (line 26 is the second line):
   $user_details=$facebook->api_client->users_getInfo($uid, array('last_name','first_name'));
   $username=$user_details[0]['first_name'];

Like a lot of people here, I'm getting the error randomly.  My app will work, then it won't.

I am facing this problem too. Sometimes, my app is working really fine, and sometimes it just brakes. I observe that the problem is with mainly users.getInfo function

Offline

 

#43 2008-07-18 10:10:17

jbolter
Member
Registered: 2008-07-17
Posts: 10

Re: API currently freaking out?

also.... FQL doesn't work any better than the API calls for getting user info.

Offline

 

#44 2008-07-18 10:11:44

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

Re: API currently freaking out?

SP_FB wrote:

We're experiencing the same issues with API calls, WARNING isterxmlexpatnonvalid->parse(): expat: no element found [-1/0/1]

As well as others errors, not sure if they related. It would be great to get a response from FB to let us know if they are working on it. Should we attempt to retrieve the information using FQL? Please advise.

FQL queries are behaving in the same, unexpected manner.

Offline

 

#45 2008-07-18 10:44:35

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

Re: API currently freaking out?

Everyone, we are looking into this from on all sides. Please keep the reports coming as they are helping us identify the issue. For those of you having problems, please, in addition to telling us what calls are failing and how, can you make sure to specify which API url you're accessing (api.new.facebook.com or api.facebook.com) and which library you're using (newest PHP5 library, PHP4, Ruby on Rails, etc)?

Thanks guys, we'll keep you posted on this.

Matt Choi


Facebook Platform Developer Relations

Offline

 

#46 2008-07-18 10:52:47

jbolter
Member
Registered: 2008-07-17
Posts: 10

Re: API currently freaking out?

Here is my setup:
api.facebook.com
PHP5 Legacy library

The calls that fail a lot are:
$facebook->api_client->users_getInfo($uid, array('last_name','first_name', 'current_location', 'hometown_location', 'affiliations'));
$facebook->api_client->fql_query("SELECT last_name, first_name, hometown_location, affiliations, current_location FROM user WHERE uid=$user");

Please let us know what can be done to fix this or workaround it... thanks!

Last edited by jbolter (2008-07-18 10:53:19)

Offline

 

#47 2008-07-18 10:54:52

gungadan
Member
Registered: 2008-03-04
Posts: 22

Re: API currently freaking out?

jaruu wrote:

I've started experiencing "HTTP error code 500" too.

I'm getting a number of errors in different parts of my code, and usually its a "Cannot use string offset as an array" error.

As an example, my joyent error log says:
[Fri Jul 18 12:30:48 2008] [error] [client 204.15.23.168] PHP Fatal error:  Cannot use string offset as an array in /home/d96402f6/web/public/brainiversity/config.php on line 26

This is the code (line 26 is the second line):
   $user_details=$facebook->api_client->users_getInfo($uid, array('last_name','first_name'));
   $username=$user_details[0]['first_name'];

Like a lot of people here, I'm getting the error randomly.  My app will work, then it won't.

We're getting problems with string offsets in arrays too. Looks like it's associated with network affiliations.

Offline

 

#48 2008-07-18 10:57:16

jbolter
Member
Registered: 2008-07-17
Posts: 10

Re: API currently freaking out?

gungadan wrote:

jaruu wrote:

I've started experiencing "HTTP error code 500" too.

I'm getting a number of errors in different parts of my code, and usually its a "Cannot use string offset as an array" error.

As an example, my joyent error log says:
[Fri Jul 18 12:30:48 2008] [error] [client 204.15.23.168] PHP Fatal error:  Cannot use string offset as an array in /home/d96402f6/web/public/brainiversity/config.php on line 26

This is the code (line 26 is the second line):
   $user_details=$facebook->api_client->users_getInfo($uid, array('last_name','first_name'));
   $username=$user_details[0]['first_name'];

Like a lot of people here, I'm getting the error randomly.  My app will work, then it won't.

We're getting problems with string offsets in arrays too. Looks like it's associated with network affiliations.

I think that error comes from facebook returning an empty array which causes the string offset error.  however this is the same issue that we're all experiencing which is that the api is returning empty results or just erroring out.

Offline

 

#49 2008-07-18 11:00:32

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

Re: API currently freaking out?

Hello all.

Our app is still seeing a lot of connection error: #<Errno::ECONNRESET: Connection reset by peer>
And I traced a few of them. They are calling various facebook APIs that have worked before, and they are working semi-consistently.

Plus, I have two apps running in two different networks. They both exhibit the same issues. So I know it is probably not my ISP.

Facebook team, what can we do to help you diagnose this problem?
thanks.
jason

The following examples are running in the old platform (api.facebook.com), ruby on rails.
I do believe that we have the same problem in api.new.facebook.com.

List of a few connection reset errors in the last few hours:

07-18-2008 09:13:05+GMT profile_setFBML
07-18-2008 09:37:49+GMT profile_setFBML
07-18-2008 10:25:03+GMT feed_publishTemplatizedAction
07-18-2008 13:46:40+GMT profile_setFBML
07-18-2008 14:43:09+GMT fql_query :query => "SELECT uid, name FROM user WHERE uid IN
07-18-2008 15:33:29+GMT profile_setFBML
07-18-2008 15:33:57+GMT feed_publishTemplatizedAction
07-18-2008 16:24:59+GMT notifications_sendEmail
07-18-2008 16:58:22+GMT users_getInfo

A backtrace in ruby, in case it helps you. The application is calling profile_setFBML here:

07-18-2008 09:13:05+GMT (13228) Exception caught(E20080718-051305-792960): #<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',
/usr/lib/ruby/gems/1.8/gems/rfacebook-0.9.8/lib/facebook_session.rb:269:in `post_request',
/usr/lib/ruby/1.8/net/http.rb:547:in `start',
/usr/lib/ruby/gems/1.8/gems/rfacebook-0.9.8/lib/facebook_session.rb:269:in `post_request',
/usr/lib/ruby/gems/1.8/gems/rfacebook-0.9.8/lib/facebook_session.rb:200:in `remote_call',
/usr/lib/ruby/gems/1.8/gems/rfacebook-0.9.8/lib/facebook_session.rb:164:in `method_missing',
/apollo/sw/website-1.0.32-11/website/app/controllers/application.rb:457:in `update_profile',
/apollo/sw/website-1.0.32-11/website/lib/website-utils/web_benchmark.rb:24:in `bench',
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/benchmarking.rb:37:in `silence',
/apollo/sw/website-1.0.32-11/website/lib/website-utils/web_benchmark.rb:24:in `bench',
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure',

Last edited by pazzu (2008-07-18 11:07:12)

Offline

 

#50 2008-07-18 11:02:58

jbolter
Member
Registered: 2008-07-17
Posts: 10

Re: API currently freaking out?

pazzu wrote:

Hello all.

Our app is still seeing a lot of connection error: #<Errno::ECONNRESET: Connection reset by peer>
And I traced a few of them. They are calling various facebook APIs that have worked before, and they are working semi-consistently.

Plus, I have two apps running in two different networks. They both exhibit the same issues. So I know it is probably not my ISP.

Facebook team, what can we do to help you diagnose this problem?
thanks.
jason

List of a few connection reset errors in the last few hours:

07-18-2008 09:13:05+GMT profile_setFBML
07-18-2008 09:37:49+GMT profile_setFBML
07-18-2008 10:25:03+GMT feed_publishTemplatizedAction
07-18-2008 13:46:40+GMT profile_setFBML
07-18-2008 14:43:09+GMT fql_query :query => "SELECT uid, name FROM user WHERE uid IN
07-18-2008 15:33:29+GMT profile_setFBML
07-18-2008 15:33:57+GMT feed_publishTemplatizedAction
07-18-2008 16:24:59+GMT notifications_sendEmail
07-18-2008 16:58:22+GMT users_getInfo

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.

Offline

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

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson