{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/5388","labels_url":"https://api.github.com/repos/meteor/meteor/issues/5388/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/5388/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/5388/events","html_url":"https://github.com/meteor/meteor/issues/5388","id":110338814,"number":5388,"title":"Need better error message for google accounts handshake invalid_client secret","user":{"login":"jjman505","id":2359092,"avatar_url":"https://avatars.githubusercontent.com/u/2359092?v=3","gravatar_id":"","url":"https://api.github.com/users/jjman505","html_url":"https://github.com/jjman505","followers_url":"https://api.github.com/users/jjman505/followers","following_url":"https://api.github.com/users/jjman505/following{/other_user}","gists_url":"https://api.github.com/users/jjman505/gists{/gist_id}","starred_url":"https://api.github.com/users/jjman505/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjman505/subscriptions","organizations_url":"https://api.github.com/users/jjman505/orgs","repos_url":"https://api.github.com/users/jjman505/repos","events_url":"https://api.github.com/users/jjman505/events{/privacy}","received_events_url":"https://api.github.com/users/jjman505/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-07T23:22:22Z","updated_at":"2015-10-13T21:13:28Z","closed_at":null,"body":"I had the wrong client secret configured for google accounts, but got the following error server-side when I tried to connect:\r\n\r\n```\r\nW20151008-08:10:35.659(9) (oauth.js:406) Error in OAuth Server: Failed to complete OAuth handshake with Google. failed [401] {   \"error\" : \"invalid_client\" }\r\nI20151008-08:10:36.534(9)? Exception while invoking method 'login' Error: Failed to complete OAuth handshake with Google. failed [401] {   \"error\" : \"invalid_client\" }\r\nI20151008-08:10:36.535(9)?     at getTokens (meteor://💻app/packages/google/google_server.js:59:1)\r\nI20151008-08:10:36.535(9)?     at Object.ServiceConfiguration.configurations.findOne.service [as handleOauthRequest] (meteor://💻app/packages/google/google_server.js:10:1)\r\nI20151008-08:10:36.535(9)?     at OAuth._requestHandlers.(anonymous function) (meteor://💻app/packages/oauth2/packages/oauth2.js:16:1)\r\nI20151008-08:10:36.536(9)?     at middleware (meteor://💻app/packages/oauth/packages/oauth.js:181:1)\r\nI20151008-08:10:36.536(9)?     at meteor://💻app/packages/oauth/packages/oauth.js:154:1\r\n```\r\n\r\nI ended up googling around for solutions for about an hour and a half before I discovered the real issue. It would be amazing if the accounts-google or service-configuration package could just tell me I've likely provided an incorrect clientId. Some low hanging fruit to make meteor accounts a bit more developer friendly."},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/147855602","html_url":"https://github.com/meteor/meteor/issues/5388#issuecomment-147855602","issue_url":"https://api.github.com/repos/meteor/meteor/issues/5388","id":147855602,"user":{"login":"tmeasday","id":132554,"avatar_url":"https://avatars.githubusercontent.com/u/132554?v=3","gravatar_id":"","url":"https://api.github.com/users/tmeasday","html_url":"https://github.com/tmeasday","followers_url":"https://api.github.com/users/tmeasday/followers","following_url":"https://api.github.com/users/tmeasday/following{/other_user}","gists_url":"https://api.github.com/users/tmeasday/gists{/gist_id}","starred_url":"https://api.github.com/users/tmeasday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmeasday/subscriptions","organizations_url":"https://api.github.com/users/tmeasday/orgs","repos_url":"https://api.github.com/users/tmeasday/repos","events_url":"https://api.github.com/users/tmeasday/events{/privacy}","received_events_url":"https://api.github.com/users/tmeasday/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T21:13:28Z","updated_at":"2015-10-13T21:13:28Z","body":"This sounds reasonable (if it's easy to detect, although perhaps it possible google are ambigious here?). We'd accept a PR for this."}}