Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

timeout + Apache goes nuts #22

Open
jcorry opened this issue Nov 27, 2011 · 11 comments
Open

timeout + Apache goes nuts #22

jcorry opened this issue Nov 27, 2011 · 11 comments

Comments

@jcorry
Copy link

jcorry commented Nov 27, 2011

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?

@jmathai
Copy link
Owner

jmathai commented Nov 28, 2011

@jcorry does simpleTest.php work okay?

@jcorry
Copy link
Author

jcorry commented Nov 28, 2011

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
Copy link
Author

jcorry commented Nov 28, 2011

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:
#22 (comment)

@jmathai
Copy link
Owner

jmathai commented Nov 28, 2011

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

  • OSX Lion
  • PHP 5.3.6
  • curl 7.21.7

@jcorry
Copy link
Author

jcorry commented Nov 28, 2011

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:
#22 (comment)

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

@jmathai
Copy link
Owner

jmathai commented Nov 28, 2011

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...

jmathai/twitter-async#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:

#22 (comment)

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


Reply to this email directly or view it on GitHub:
#22 (comment)

@jcorry
Copy link
Author

jcorry commented Nov 28, 2011

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...

jmathai/twitter-async#109

@jmathai
Copy link
Owner

jmathai commented Nov 28, 2011

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...

jmathai/twitter-async#109


Reply to this email directly or view it on GitHub:
#22 (comment)

@jcorry
Copy link
Author

jcorry commented Nov 29, 2011

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?

@jmathai
Copy link
Owner

jmathai commented Dec 3, 2011

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

@chekalsky
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants