Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The website won't work without a Meetup key with privileges for attendance #44

Closed
ramondelafuente opened this issue Dec 13, 2013 · 2 comments

Comments

@ramondelafuente
Copy link
Contributor

Afteru running vagrant up, adding my personal meetup key to parameters.yml and opening the browser (app_dev.php):

In /src/AmsterdamPHP/Bundle/SiteBundle/Controller/DefaultController.php the past events are fetched. In /src/AmsterdamPHP/Bundle/MeetupBundle/Service/EventService.php you can see that also fetches attendance:

lines: 110 - 113
$map = function ($event) {
$event['attendance'] = $this->getEventAttendance($event['id']);
return $event;
};

But that results in:

Client error response
[status code] 400
[reason phrase] Bad Request
[url] http://api.meetup.com/amsterdamphp/events/dhjvxgyrpbcc/attendance?filter=attended&key=[my-personal-key-here]

In the log /dev/shm/prod.log:

[2013-12-14 00:27:56] request.CRITICAL: Uncaught PHP Exception Guzzle\Http\Exception\ClientErrorResponseException: "Client error response
[status code] 401
[reason phrase] Unauthorized
etc...

@rdohms
Copy link
Member

rdohms commented Dec 14, 2013

Yep, i saw this one coming over the hill.

I think the only solution here is to make the group_urlname parameter configurable to allow people to use sample groups to be able to get around that. It also prepares this for my future plan which is making all these bundles open source so every group can drop them into their website.

@rdohms
Copy link
Member

rdohms commented Dec 14, 2013

This will be handled in #45 and #46.

@rdohms rdohms closed this as completed Dec 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants