Comments (5)
Hey,
It definitely shouldn't be doing that. I'll take a look at that soon.
Alex
from koala.
I'm in the process adding error handling for 500 responses and they should be up within the next few days. Do either of you have example Facebook URLs that currently return 500 responses that I can refer to for testing purposes?
from koala.
This URL should error out. https://graph.facebook.com/search?q=e3&type=post&since=2010-06-16T21:02:02%2b0000&until=2010-06-16T21:04:06%2B0000&limit=33
Side note: this is related to a bug on their side where the graph API returns an HTTP 500 in some cases if you provide a limit parameter greater than the available results.
from koala.
Thanks for the URL dacort.
I pushed a fix to master that raises an APIError for any server error response codes (500 or greater.) I haven't run into this problem myself, but I'm pretty sure Koala without this patch would have returned nil given the response from the broken URL above. The search URL returned an empty string for the body, which when parsed by API#api, would return [][0], the first element of an empty array, which is nil.
dacort, maybe you can take the patch for a spin in your app and let us know how it goes?
from koala.
Sounds like the issue is resolved; closing.
from koala.
Related Issues (20)
- Facebook Graph API v2.5 Deprecated HOT 2
- auth.info.image for facebook returns a generic user icon
- Getting page posts returns an empty array HOT 2
- Page Access Token Error? HOT 6
- Testing with Koala fail by execution expired HOT 1
- put_video not showing on wall, but shows in videos library.
- fbtrace_id is not passed correctly to Koala::Error
- Unable to post visitor post to a facebook page using graph API. HOT 2
- Hellpp HOT 3
- Undefined Method "alias_method_chain" HOT 1
- Graph API v2.8 is going to be Deprecated on Apr 18, 2019. HOT 2
- Facebook deprecated befriend API from v4.0
- Koala::Facebook::ServerError on requesting for higher limit of IG posts HOT 2
- NoMethodError (undefined method `scheme' for "https://graph.facebook.com":String): HOT 2
- please update the graph_collection, the next_page & previous_page are not working HOT 2
- Koala breaks with faraday 2.0 release `File does not exist: net/http/post/multipart` HOT 5
- How to post a content to my group on Facebook ? HOT 1
- GraphErrorChecker#response_hash returns nil causing gem to crash HOT 3
- Facing Koala::Facebook::OAuthTokenRequestError when fetching app_access_token HOT 6
- Not compatible with faraday-net_http_persistent
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from koala.