etsy / morgue

post mortem tracker
MIT License
1.02k stars 132 forks source link

Calendar on event page cannot load #109

Open srepetsk opened 8 years ago

srepetsk commented 8 years ago

After setting up a Google Calendar through the API to use to manage events, the feature appears broken on the events page. When loading an existing event, I see several errors regarding the Google API calls:

event

In the Calendar setup itself, I have substituted in the clientId, apiKey, id, and a new facilitators_email and attendees_email.

patrickpierson commented 8 years ago

running into the same issue.

mmercedes commented 8 years ago

Does this error only occur on the events page and not on the calendar page? If the error occurs on both you might have to follow step 1e of the quickstart guide and add your domain as an authorized Javascript origin.

Also, the checkEventExists function makes a request to Events.get endpoint. If no event exists with the id provided, a 404 response is returned and is logged in the console. This could be fixed by instead making a call to the Events.list endpoint and looping over all events to see if a specific one exists, though this might cause some significant overhead as the number of events grows.