foursquare-async
foursquare-async copied to clipboard
timeout + Apache goes nuts
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 does simpleTest.php work okay?
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...
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 Can you provide system details? It works for me using:
- OSX Lion
- PHP 5.3.6
- curl 7.21.7
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
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
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
From the VM can you just do curl -I http://sfspot.localhost/foursqlogin
and 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
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?
I wonder if there's some weird NAT at the office...
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