foursquare-async icon indicating copy to clipboard operation
foursquare-async copied to clipboard

timeout + Apache goes nuts

Open jcorry opened this issue 13 years ago • 11 comments

When I try to run getAccessToken() with the code that comes back as a param of the redirect URL...I get nothing.

localhost never loads, the browser status indicator just spins around and apache's CPU usage goes through the roof and my MBPs fans all go to full speed.

I'm supposing this has something to do with cURL?

Anyone else ever experience anything like this?

jcorry avatar Nov 27 '11 23:11 jcorry

@jcorry does simpleTest.php work okay?

jmathai avatar Nov 28 '11 00:11 jmathai

I am implementing it as a library in codeigniter and so have changed the way the class gets accessed a little bit.

I did try instantiating the class with clientId and secretId and running this:

$venue = $this->epifoursquare->get('/venues/search', array('ll' => '40.7,-74')); $this->firephp->log($venue, 'unauth request');

In my codeigniter controller file...and nothing happens. It does the same thing as when I try to request getAccessToken.

Somehow it seems to not want to make the curl requests...

jcorry avatar Nov 28 '11 00:11 jcorry

So I duplicated everything in another virtual host, one that doesn't use Codeigniter's MVC pattern...just dumped your files into a vhost.

When I try to get simpleTest.php it times out and gives me this message: Test an unauthenticated call to search for a venue

Fatal error: Maximum execution time of 30 seconds exceeded in /Users/[...]/EpiCurl.php on line 73

On Nov 27, 2011, at 5:16 PM, Jaisen Mathai wrote:

@jcorry does simpleTest.php work okay?


Reply to this email directly or view it on GitHub: https://github.com/jmathai/foursquare-async/issues/22#issuecomment-2891316

jcorry avatar Nov 28 '11 00:11 jcorry

@jcorry Can you provide system details? It works for me using:

  • OSX Lion
  • PHP 5.3.6
  • curl 7.21.7

jmathai avatar Nov 28 '11 03:11 jmathai

So...I'm running OS X Lion, PHP 5.3.5, curl 7.21.4

It doesn't work on that computer.

It DOES work on my workstation at the office

OS X 10.6.8 PHP 5.3.1 curl 7.19.7

Any chance we can try to figure out WHY it doesn't work on my local machine? I'm using the same virtual host name for each of them.

On Sun, Nov 27, 2011 at 8:54 PM, Jaisen Mathai < [email protected]

wrote:

@jcorry Can you provide system details? It works for me using:

  • OSX Lion
  • PHP 5.3.6
  • curl 7.21.7

Reply to this email directly or view it on GitHub: https://github.com/jmathai/foursquare-async/issues/22#issuecomment-2892481

John Corry Skype: jpcorry iPhone: 678-592-8804 http://gplus.to/jcorry

jcorry avatar Nov 28 '11 19:11 jcorry

Are your virtual hosts also running osx lion? Is there any networking trickery that's happening on the virtualhost?

I haven't had a chance to ever merge this but can you have a look and see if this is related to your problem? foursquare-async is based on twitter-async...

https://github.com/jmathai/twitter-async/pull/109

On Mon, Nov 28, 2011 at 11:23 AM, jcorry < [email protected]

wrote:

So...I'm running OS X Lion, PHP 5.3.5, curl 7.21.4

It doesn't work on that computer.

It DOES work on my workstation at the office

OS X 10.6.8 PHP 5.3.1 curl 7.19.7

Any chance we can try to figure out WHY it doesn't work on my local machine? I'm using the same virtual host name for each of them.

On Sun, Nov 27, 2011 at 8:54 PM, Jaisen Mathai < [email protected]

wrote:

@jcorry Can you provide system details? It works for me using:

  • OSX Lion
  • PHP 5.3.6
  • curl 7.21.7

Reply to this email directly or view it on GitHub:

https://github.com/jmathai/foursquare-async/issues/22#issuecomment-2892481

John Corry Skype: jpcorry iPhone: 678-592-8804 http://gplus.to/jcorry


Reply to this email directly or view it on GitHub: https://github.com/jmathai/foursquare-async/issues/22#issuecomment-2905711

jmathai avatar Nov 28 '11 19:11 jmathai

I'll take a look at the twitter-async.

I smell a curl configuration issue...

The vhosts are all on localhost on my MBP. I set up vhosts for each project I work on, in this case: sfspot.localhost

So, sfspot.localhost/foursqlogin is my callback URL.

That part all works fine unless I try to make a request using the foursquare-async library...in which case the request times out.

On Mon, Nov 28, 2011 at 12:28 PM, Jaisen Mathai < [email protected]

wrote:

Are your virtual hosts also running osx lion? Is there any networking trickery that's happening on the virtualhost?

I haven't had a chance to ever merge this but can you have a look and see if this is related to your problem? foursquare-async is based on twitter-async...

https://github.com/jmathai/twitter-async/pull/109

jcorry avatar Nov 28 '11 19:11 jcorry

From the VM can you just do curl -I http://sfspot.localhost/foursqloginand get a 200 response?

On Mon, Nov 28, 2011 at 11:34 AM, jcorry < [email protected]

wrote:

I'll take a look at the twitter-async.

I smell a curl configuration issue...

The vhosts are all on localhost on my MBP. I set up vhosts for each project I work on, in this case: sfspot.localhost

So, sfspot.localhost/foursqlogin is my callback URL.

That part all works fine unless I try to make a request using the foursquare-async library...in which case the request times out.

On Mon, Nov 28, 2011 at 12:28 PM, Jaisen Mathai < [email protected]

wrote:

Are your virtual hosts also running osx lion? Is there any networking trickery that's happening on the virtualhost?

I haven't had a chance to ever merge this but can you have a look and see if this is related to your problem? foursquare-async is based on twitter-async...

https://github.com/jmathai/twitter-async/pull/109


Reply to this email directly or view it on GitHub: https://github.com/jmathai/foursquare-async/issues/22#issuecomment-2905901

jmathai avatar Nov 28 '11 19:11 jmathai

I narrowed it down further.

Same code, same MBP...works fine when connected to the internet through my office network.

Doesn't/didn't work at home though...weird thing is, I think it's the same ISP.

wtf?

jcorry avatar Nov 29 '11 20:11 jcorry

I wonder if there's some weird NAT at the office...

jmathai avatar Dec 03 '11 05:12 jmathai

Hi! Same thing right now!

Linux Centos PHP 5.4 curl 7.21.7

that's shit with EpiCurl I found. It conflicts with libcurl I think

chekalsky avatar Dec 26 '12 01:12 chekalsky