anselb / activity-planner

A simple web app for creating itineraries of locations to visit from yelp
2 stars 7 forks source link

application error after performing simple search using yelp api #59

Closed Jeffchiucp closed 6 years ago

Jeffchiucp commented 6 years ago

Noticed a Application error on Heroku application error after performing simple search using yelp api An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. Click this link and you can reproduce the bug: https://awesome-activities-planner.herokuapp.com/itineraries/23/activities/new?term=food&location=SF

Jeffchiucp commented 6 years ago

i suggest that we write some Chai Test to make sure that we test our App before shipping it: I plan to learn to write some test later http://chaijs.com/

Jeffchiucp commented 6 years ago

Based on the Heroku Server Log, Please fix the Oauth 2 deprecation. https://www.yelp.com/developers/documentation/v3/authentication#where-is-my-client-secret-going

Jeffchiucp commented 6 years ago

here's the server log: body: '{"error": {"code": "OAUTH_TOKEN_ENDPOINT_DEPRECATED", "description": "The oauth2 token endpoint has been deprecated and removed; you must use your API key for authentication instead. Please see https://www.yelp.com/developers/documentation/v3/authentication#where-is-my-client-secret-going for info & migration steps"}}' },

Jeffchiucp commented 6 years ago

this is resolved #61