bobolounna / restfb

Automatically exported from code.google.com/p/restfb
0 stars 0 forks source link

Wrong exception thrown on fetchObject that doesn't exist #165

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. call fetchOBject with an id that doesn't exist, for example XXX
2. facebook returns the 404 Not Found with the header WWW-Authenticate: OAuth 
"Facebook Platform" "not_found" "(#803) Some of the aliases you requested do 
not exist: XXX" and the json :
 "{
   "error": {
      "message": "(#803) Some of the aliases you requested do not exist: XXX",
      "type": "OAuthException"
   }
}"

the exception thrown is FacebookNetworkException(A network error occurred while 
trying to communicate with Facebook: Facebook request failed (HTTP status code 
404))

this is on 1.6.9
thanks

Original issue reported on code.google.com by ofer...@gmail.com on 30 Nov 2011 at 8:33

GoogleCodeExporter commented 8 years ago
Ah, OK, thanks for letting me know.  I'll have to change the way 
DefaultFacebookClient handles HTTP error codes.

Original comment by m...@xmog.com on 13 Dec 2011 at 7:04

GoogleCodeExporter commented 8 years ago
Fixed in 
https://github.com/revetkn/restfb/commit/c0de0245e72db189adff3d1da218476e205f135
1

Original comment by m...@xmog.com on 3 Sep 2012 at 12:57