{"action":"created","issue":{"url":"https://api.github.com/repos/firebase/quickstart-java/issues/4","repository_url":"https://api.github.com/repos/firebase/quickstart-java","labels_url":"https://api.github.com/repos/firebase/quickstart-java/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/firebase/quickstart-java/issues/4/comments","events_url":"https://api.github.com/repos/firebase/quickstart-java/issues/4/events","html_url":"https://github.com/firebase/quickstart-java/issues/4","id":170179463,"number":4,"title":"[WARN] PersistentConnection: pc_0 - Provided authentication credentials are invalid","user":{"login":"winstonma","id":1215090,"avatar_url":"https://avatars.githubusercontent.com/u/1215090?v=3","gravatar_id":"","url":"https://api.github.com/users/winstonma","html_url":"https://github.com/winstonma","followers_url":"https://api.github.com/users/winstonma/followers","following_url":"https://api.github.com/users/winstonma/following{/other_user}","gists_url":"https://api.github.com/users/winstonma/gists{/gist_id}","starred_url":"https://api.github.com/users/winstonma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/winstonma/subscriptions","organizations_url":"https://api.github.com/users/winstonma/orgs","repos_url":"https://api.github.com/users/winstonma/repos","events_url":"https://api.github.com/users/winstonma/events{/privacy}","received_events_url":"https://api.github.com/users/winstonma/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-09T14:23:41Z","updated_at":"2016-08-09T15:16:00Z","closed_at":null,"body":"When I run the function `startWeeklyTopPostEmailer()` it has the following problem.\r\n\r\n`[WARN] PersistentConnection: pc_0 - Provided authentication credentials are invalid. This usually indicates your FirebaseApp instance was not initialized correctly. Make sure your google-services.json file has the correct firebase_url and api_key. You can re-download google-services.json from https://console.firebase.google.com/.\r\n`\r\n\r\nI created the firebase app and created service account key (JSON).\r\n\r\nPlease let me know if I need to provide more info. Thanks"},"comment":{"url":"https://api.github.com/repos/firebase/quickstart-java/issues/comments/238586246","html_url":"https://github.com/firebase/quickstart-java/issues/4#issuecomment-238586246","issue_url":"https://api.github.com/repos/firebase/quickstart-java/issues/4","id":238586246,"user":{"login":"samtstern","id":8466666,"avatar_url":"https://avatars.githubusercontent.com/u/8466666?v=3","gravatar_id":"","url":"https://api.github.com/users/samtstern","html_url":"https://github.com/samtstern","followers_url":"https://api.github.com/users/samtstern/followers","following_url":"https://api.github.com/users/samtstern/following{/other_user}","gists_url":"https://api.github.com/users/samtstern/gists{/gist_id}","starred_url":"https://api.github.com/users/samtstern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samtstern/subscriptions","organizations_url":"https://api.github.com/users/samtstern/orgs","repos_url":"https://api.github.com/users/samtstern/repos","events_url":"https://api.github.com/users/samtstern/events{/privacy}","received_events_url":"https://api.github.com/users/samtstern/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T15:16:00Z","updated_at":"2016-08-09T15:16:00Z","body":"The important lines in the quickstart are:\r\n```\r\n            FirebaseOptions options = new FirebaseOptions.Builder()\r\n                    .setServiceAccount(new FileInputStream(\"service-account.json\"))\r\n                    .setDatabaseUrl(DATABASE_URL)\r\n                    .build();\r\n            FirebaseApp.initializeApp(options);\r\n```\r\n\r\nThis requires that you have properly placed the `service-account.json` file and have updated the `DATABASE_URL` variable.  Have you done both of those? Are there other errors in your logs?"}}
{"actor":{"display_login":"samtstern"}}