koala-response-times-20-seconds-waiting-response

29 views
Skip to first unread message

Fran J Martínez

unread,
Nov 8, 2012, 4:41:18 AM11/8/12
to koala...@googlegroups.com
Hello,
I've put a question on stackoverflow. Can anyone help me? I'm starting with Facebook API and I'm sure this response times are not normal.


http://stackoverflow.com/questions/13285889/koala-response-times-20-seconds-waiting-response

thanks

banane

unread,
Nov 8, 2012, 11:49:06 AM11/8/12
to koala...@googlegroups.com
Just wrote you back on SO. Test it on Graph Explorer see how long it takes- I'm thinking that queries for big pages do take a while. 20 minutes seems excessive, but a Graph Explorer time will be a good baseline.


--
You received this message because you are subscribed to the Google Groups "Koala & The Facebook Graph API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/koala-users/-/L6KLxYv4G9gJ.
To post to this group, send email to koala...@googlegroups.com.
To unsubscribe from this group, send email to koala-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/koala-users?hl=en.

Fran J. Martínez

unread,
Nov 8, 2012, 1:08:30 PM11/8/12
to koala...@googlegroups.com
Same results...

I started with your Rails code I found in your website: git://github.com/banane/sample-koala-rails-app.git  (thank you!)

And it was 21 seconds waiting response. Finally I minimize to the ruby code that I have written in SO, having the same problem.

The thing is: when I just write URL on a web browser or on Graph Explorer the response is instantaneously! But just with this code
coke_url = "https://graph.facebook.com/cocacola"
response = open coke_url
on a ruby file, it takes 21 seconds...

Could you try to execute a similar code?  I don't underestand where is the problem.

I attach 2 images with the problem

Thanks!
Fran




2012/11/8 banane <ban...@gmail.com>
tortoisecode.jpg
cokeurl.jpg

banane

unread,
Nov 8, 2012, 1:23:34 PM11/8/12
to koala...@googlegroups.com
If graph is instantaneous, yeah it' something either with authentication, the result set (graph puts a limit on things, btw. check the syntax it's executing)

Fran J. Martínez

unread,
Nov 9, 2012, 4:15:13 AM11/9/12
to koala...@googlegroups.com
For a moment I was thinking about certificates in HTTPS graph connection, but finally I've tried to GET from my own website (wordpress) with the 'net/http' gem and I have spend 22 seconds waiting response. Same problem trying in another computer... Both with Ubuntu 12.04

So, my problem is not Facebook, and is not Koala. Probably something wrong about my ruby installation :(  

thanks a lot! I will put the resolution when I found it

Fran

2012/11/8 banane <ban...@gmail.com>

Fran J. Martínez

unread,
Nov 9, 2012, 12:32:52 PM11/9/12
to koala...@googlegroups.com
I've found the problem: DNS

When I do a GET with the IP, the response is instantaneously.

Now it's time to find how to resolve it.


2012/11/9 Fran J. Martínez <franci...@gmail.com>

Fran J. Martínez

unread,
Nov 9, 2012, 12:50:03 PM11/9/12
to koala...@googlegroups.com
Sorry for all these mails. Here is the solution:

http://www.mikeperham.com/2010/02/10/asynchronous-dns-resolution/

My personal solution in Gemfile:

group :development do
    require 'resolv'
    require 'resolv-replace'
end

Thanks!

banane

unread,
Nov 9, 2012, 12:59:16 PM11/9/12
to koala...@googlegroups.com
Thanks for posting!

Alex Koppel

unread,
Nov 10, 2012, 3:24:01 AM11/10/12
to koala...@googlegroups.com
Really glad to hear you were able to find the solution!

Von meinem iPad gesendet
Reply all
Reply to author
Forward
0 new messages