Topic-icon Very long load time insise facebook's canvas only?!

Active Subscriptions:

None
Hello... I have been working on this facebook app using JFBConnect (of coarse my subscription ended today...lol typical but I will renew)... All is working HOWEVER... I've noticed my app to be extremely slow on login and page loads... like between 40secs and 2min page load times... but ONLY when I view my app inside of facebook's canvas?!

I have all the https: (SSL) stuff turned on... But I disabled it to see if that would help and it did not :-/

If I watch the inspector I can see a get request from the app that takes between 25 and 55 seconds to load... (I think it's the problem)... However I cannot figure out what is causing this? The url for the get request is something like:

5-ect.channel.facebook.com/pull?channel=...e=stream&format=json

(I made the numbers all 5's cause I don't know if it's sensitive?)....

Anyway... It's incredibly slow I am assuming that it's not JFBConnects fault but I am curious if you've ever seen it or know more about it?

PS...My Extreme Coupon Network is still on a bit of a hold... (Haven't forgotten about it though... and the help you provided earlier this year)
The topic has been locked.
Active Subscriptions:

None
Also... One more tid bit... The get request for JFBConnect's login takes about 7 seconds also?!? Is this normal? I am mapping three fields to the k2 user profiles (current_city) being an "extended permission" ? Seven seconds seems a bit long also?

mysite.com/subdomain/index.php?option=co...55==&cb=555555555555

NOTE: I made all the numbers 5's

THANKS FOR HELPING!

:)
The topic has been locked.
Support Specialist
10 years 10 months ago #33798 by alzander
Ryan,
Not sure why it would take that long. My best guess would be a server/DNS issue that's taking too long to lookup the addresses required to communicate with Facebook. That happens every once in a while.

What I would initially recommend is enabling the "Display Facebook API Errors on Front-end" setting in the Configuration -> Facebook API area of JFBConnect. Then, login and see if any errors display. While there, you may also want to disable the Verify SSL setting (something like that) next to the other debug setting.

Importing information certainly shouldn't take that much. We have that pretty well optimized, though disabling the Social Profile plugins and seeing if there's a vast improvement can't hurt to try.

If none of that helps, I can give you some command line instructions to test your server response time when communicating with Facebook's servers.

I hope the above helps narrow things down, but if not, let us know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
Hey Alex... Yeah... Still working on this one... It's very strange... Intermittent too!?!??? :-(

Sometimes FB login is 4secs... Sometimes it's 46secs... Sometimes I get redirected to a 404 :-/ Been trying to figure out the inconsistencies... But I am lost... Would love some other pointers if you have them?

NOTE... This is a godaddy server... Not sure what access i'll have to server config stuff :-/

I am going to shoot you a PM to the app (which is live) now... Hopefully it will help?! They are emailing a link to 800 people about the app on Monday afternoon so I am stressing just a little ;)

Thanks again for everything though...

Ryan
The topic has been locked.
Active Subscriptions:

None
It actually doesn't 404 like I mentioned earlier... It says this as the error:

An error has occurred while processing your request.

You may not be able to visit this page because of:

an out-of-date bookmark/favourite
a mistyped address
a search engine that has an out-of-date listing for this site
you have no access to this page

Go to the Home Page

Home Page

If difficulties persist, please contact the System Administrator of this site and report the error below.

6 name lookup timed out
"

Specifacially at the bottom it says "6 name lookup timed out"
The topic has been locked.
Support Specialist
10 years 10 months ago #33847 by alzander
The name lookup timed out text is key. That usually means it's a server issue not able to translate the domain name(s) of Facebook to their proper IP address. It's a rare issue, but we actually just had a similar post about a week ago. I'd recommend reading through that, specifically, my last post with ideas on how to test the server:
www.sourcecoast.com/forums/jfbconnect/jf.../6546-sclogin#p33762

I know you say it's GoDaddy, so everything might not be available to you, but I'm pretty sure they do allow SSH connections.. you may even just ask them to run those nslookup tests and verify things.

Finally, the other option in that thread (or linked out to it at least) is to rename one of the communication points from api-read.facebook.com to api.facebook.com. Instructions are in that thread, and it's an 'easy' worth a shot thing to try.

Best of luck with the email campaign tomorrow, and we hope you'll be an active subscriber again soon :)

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
Thanks for the info Alex...

When I run that nslookup command from my machine it comes back fine... However I don't have access currently to run it from the server in question :-/ (working on getting that)

I did remove the read- from the api.facebook.com url in your code... But I am concerned it might still be an issue... I have been trying to test to see If I can repeat the error but it's VERY intermittent... So... My deadline moved to THIS Friday... THANK GOODNESS... Hoping I can get this squashed for them by then!

Would you mind giving me a possible scenario for what I could change if it is indeed a dns error? Or something came back weird? What if It comes back fine like it did for me? Anything else I can try?

Thanks Alex.... YOU GUYS ROCK AT SOURCECOAST :)
The topic has been locked.
Active Subscriptions:

None
10 years 10 months ago - 10 years 10 months ago #33857 by digitalmediaguy
SO... I just discovered that when I view the app in safari it appears to have a redirect loop.... The login just pop's up over and over and over with out it loggin in / redirecting anywhere.

I was testing to try and reproducte the "error 6 name lookup timed out" thing and discovered this... THEN... Right after this happened I got the possible DNS thing again... Going to keep testing... Perhaps It will shed some more light on the problem :-/
Last edit: 10 years 10 months ago by digitalmediaguy.
The topic has been locked.
Active Subscriptions:

None
10 years 10 months ago - 10 years 10 months ago #33874 by digitalmediaguy
Sorry To triple up posts... I just want to get you as much info as possible as my deadline is approaching!

Sadly... I just tried to login with chrome this morning and got the "6 name lookup timed out" error still...

NOTE: I changed the api-read to just api.facebook.com already... Should have the SSH Access today!

THANKS AGAIN ALEX... SORRY ABOUT THE BUMPS! (nobody else has posted actually so not really a bump ;)

TWO ERRORS ARE:

1) 6 name lookup timed out
2) Safari Redirect Loop
Last edit: 10 years 10 months ago by digitalmediaguy.
The topic has been locked.
Active Subscriptions:

None
By the time you read this... I will have updated my membership ;)

SO... I have been reading about this error and people are saying it could be a CURL timeout... SO... I made a change to base_facebook.php to increase the timeout settings from 10 & 60 to 20 & 120... So far I haven't seen the error after making this change?! Guess time will tell?!?

As for the Safari redirect loop problem?!? I am not sure... It definitely happens in safari and on an ipad... but does not happen in chrome or firefox (dunno about ie)? :-/

Again... The redirect loop seems to come from the "auto login user feature"... NOTE... I also have it set to automatically map users to existing email accounts setup

Thanks for helping... Going to renew now!

Ryan
The topic has been locked.