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

Untitled #16

Open
venu opened this issue Mar 25, 2011 · 4 comments
Open

Untitled #16

venu opened this issue Mar 25, 2011 · 4 comments

Comments

@venu
Copy link

venu commented Mar 25, 2011

I am having a issue with this API. Getting exception with simpletest.php

EpiCurlManager Object
(
[key:private] => Resource id #4
[epiCurl:private] => EpiCurl Object
(
[mc:private] => Resource id #5
[msgs:private] =>
[running:private] => 0
[execStatus:private] => 0
[selectStatus:private] =>
[sleepIncrement:private] => 1.1
[requests:private] => Array
(
[Resource id #4] => Resource id #4
)

        [responses:private] => Array
            (
                [Resource id #4] => Array
                    (
                        [data] => 
                        [code] => 0
                        [time] => 0
                        [length] => 0
                        [type] => 
                        [url] => https://api.foursquare.com/v2/venues/search?ll=40.7%2C-74&client_id=XXXXX&client_secret=XXXXX
                    )

            )

        [properties:private] => Array
            (
                [code] => 2097154
                [time] => 3145731
                [length] => 3145743
                [type] => 1048594
                [url] => 1048577
            )

    )

)

Fatal error: Uncaught exception 'EpiFoursquareException' in foursquare\lib\EpiFoursquare.php:253
Stack trace:
foursquare\lib\EpiFoursquare.php(209): EpiFoursquareException::raise(Object(EpiCurlManager), false)
oursquare\index.php(20): EpiFoursquareJson->__get('response')
#2 {main}

thrown in foursquare\lib\EpiFoursquare.php on line 253

Please advise me!

@jmathai
Copy link
Owner

jmathai commented Mar 28, 2011

Can you put your code on pastebin and link to it? The error alone doesn't provide enough information as to what the problem is.

@venu
Copy link
Author

venu commented Mar 29, 2011

Hey Jmathai,

Thanks to your reply.

This is the code I am using.

Test an unauthenticated call to search for a venue

get('/venues/search', array('ll' => '40.7,-74')); ?>
response->groups[0]->items[0]); ?>

@venu
Copy link
Author

venu commented Mar 29, 2011

Sorry, here it is the link to code

http://pastebin.com/4FJJGxdE

@jmathai
Copy link
Owner

jmathai commented May 3, 2011

Can you try to comment out lines 127 and 128 in EpiFoursquare.php?

https://github.com/jmathai/foursquare-async/blob/master/EpiFoursquare.php#L127

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

2 participants