{"action":"opened","issue":{"url":"https://api.github.com/repos/firebase/firebase-admin-node/issues/310","repository_url":"https://api.github.com/repos/firebase/firebase-admin-node","labels_url":"https://api.github.com/repos/firebase/firebase-admin-node/issues/310/labels{/name}","comments_url":"https://api.github.com/repos/firebase/firebase-admin-node/issues/310/comments","events_url":"https://api.github.com/repos/firebase/firebase-admin-node/issues/310/events","html_url":"https://github.com/firebase/firebase-admin-node/issues/310","id":342551415,"node_id":"MDU6SXNzdWUzNDI1NTE0MTU=","number":310,"title":"firebase-admin v5.13.0 - Unexpected error while acquiring application default credentials: Could not load the default credentials","user":{"login":"itspradhan","id":1300606,"node_id":"MDQ6VXNlcjEzMDA2MDY=","avatar_url":"https://avatars2.githubusercontent.com/u/1300606?v=4","gravatar_id":"","url":"https://api.github.com/users/itspradhan","html_url":"https://github.com/itspradhan","followers_url":"https://api.github.com/users/itspradhan/followers","following_url":"https://api.github.com/users/itspradhan/following{/other_user}","gists_url":"https://api.github.com/users/itspradhan/gists{/gist_id}","starred_url":"https://api.github.com/users/itspradhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itspradhan/subscriptions","organizations_url":"https://api.github.com/users/itspradhan/orgs","repos_url":"https://api.github.com/users/itspradhan/repos","events_url":"https://api.github.com/users/itspradhan/events{/privacy}","received_events_url":"https://api.github.com/users/itspradhan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-19T01:58:00Z","updated_at":"2018-07-19T01:58:00Z","closed_at":null,"author_association":"NONE","body":"  * Operating System version: MacOs High Sierra\r\n\r\n#### This issue kept repeating for all tasks in cloud store - get/set\r\n\r\n```\r\nconst admin = require(\"firebase-admin\");\r\nconst serviceAccount = require(\"./service-key.json\");\r\n\r\nadmin.initializeApp({\r\n  credential: admin.credential.cert(serviceAccount),\r\n  databaseURL: \"https://[db-name].firebaseio.com\"\r\n});\r\n\r\nvar db = admin.firestore();\r\n\r\nvar newPostRef = db.collection('posts').add({\r\n  post: \"Hello!\",\r\n  username: \"snowboard\"\r\n}).then(ref => {\r\n  console.log('Added document with ID: ', ref.id);\r\n});\r\n\r\n```\r\n#### Error:\r\n\r\n`Unexpected error while acquiring application default credentials: Could not load the default credentials\r\n`\r\n#### Temporary Solution:\r\n\r\nMeanwhile, I downgraded to version 5.12.0 of firebase-admin and was able to read and write the document from/to the cloud store."}}
{"actor":{"display_login":"itspradhan"}}