问题
As the heading suggests, I am going through the NodeJS BookShelf App tutorial (in the Authenticating Users section) on google cloud platform. I have generated an OAuth Client ID Web Application Key and input the redirect URI's exactly in the app as well as in the config.json file locally. Whenever I try to login in the app, it holds for about a minute then redirects to a page that says "Something Broke!". In the browser console it reported internal server error 500.
Has anyone had this problem before?
Why is it not working?
Thanks
回答1:
I had trouble with this stage of the tutorial as well. The "MEMCACHE_URL" environment variable defined in 'config.js' defaulted to "127.0.0.1:11211" -- replacing "127.0.0.1" with "memcache" (ie "memcache:11211") resolved the issue for me.
This github issue provided the necessary hint.
来源:https://stackoverflow.com/questions/38127005/nodejs-bookshelf-app-oauth-2-0-authenticating-users-section-not-working