{"action":"created","issue":{"url":"https://api.github.com/repos/firebase/firebase-functions/issues/343","repository_url":"https://api.github.com/repos/firebase/firebase-functions","labels_url":"https://api.github.com/repos/firebase/firebase-functions/issues/343/labels{/name}","comments_url":"https://api.github.com/repos/firebase/firebase-functions/issues/343/comments","events_url":"https://api.github.com/repos/firebase/firebase-functions/issues/343/events","html_url":"https://github.com/firebase/firebase-functions/issues/343","id":377157187,"node_id":"MDU6SXNzdWUzNzcxNTcxODc=","number":343,"title":"Can't deploy functions to a particular project","user":{"login":"PierBover","id":226483,"node_id":"MDQ6VXNlcjIyNjQ4Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/226483?v=4","gravatar_id":"","url":"https://api.github.com/users/PierBover","html_url":"https://github.com/PierBover","followers_url":"https://api.github.com/users/PierBover/followers","following_url":"https://api.github.com/users/PierBover/following{/other_user}","gists_url":"https://api.github.com/users/PierBover/gists{/gist_id}","starred_url":"https://api.github.com/users/PierBover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PierBover/subscriptions","organizations_url":"https://api.github.com/users/PierBover/orgs","repos_url":"https://api.github.com/users/PierBover/repos","events_url":"https://api.github.com/users/PierBover/events{/privacy}","received_events_url":"https://api.github.com/users/PierBover/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-04T14:17:11Z","updated_at":"2018-11-04T15:48:08Z","closed_at":"2018-11-04T15:48:08Z","author_association":"NONE","body":"I have a functions project that I deploy on multiple Firebase projects. It deploys fine on all projects except one.\r\n\r\nYou can see this behavior in this video: https://youtu.be/-AhA4GVLpXo\r\n\r\nEverything is on latest versions:\r\n* Firebase CLI: `6.0.1`\r\n* Admin: `^6.1.0`\r\n* Functions: `^2.1.0`\r\n\r\nThe error I get is:\r\n```\r\ni  deploying functions\r\ni  functions: ensuring necessary APIs are enabled...\r\n✔  functions: all necessary APIs are enabled\r\ni  functions: preparing functions directory for uploading...\r\n\r\nError: Error occurred while parsing your function triggers.\r\n\r\nundefined\r\n```\r\n\r\nYou can see the complete `--debug` log here:\r\nhttps://gist.github.com/PierBover/2f48cf12a18cd199105d3544612f4b8a"},"comment":{"url":"https://api.github.com/repos/firebase/firebase-functions/issues/comments/435680557","html_url":"https://github.com/firebase/firebase-functions/issues/343#issuecomment-435680557","issue_url":"https://api.github.com/repos/firebase/firebase-functions/issues/343","id":435680557,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTY4MDU1Nw==","user":{"login":"PierBover","id":226483,"node_id":"MDQ6VXNlcjIyNjQ4Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/226483?v=4","gravatar_id":"","url":"https://api.github.com/users/PierBover","html_url":"https://github.com/PierBover","followers_url":"https://api.github.com/users/PierBover/followers","following_url":"https://api.github.com/users/PierBover/following{/other_user}","gists_url":"https://api.github.com/users/PierBover/gists{/gist_id}","starred_url":"https://api.github.com/users/PierBover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PierBover/subscriptions","organizations_url":"https://api.github.com/users/PierBover/orgs","repos_url":"https://api.github.com/users/PierBover/repos","events_url":"https://api.github.com/users/PierBover/events{/privacy}","received_events_url":"https://api.github.com/users/PierBover/received_events","type":"User","site_admin":false},"created_at":"2018-11-04T15:48:08Z","updated_at":"2018-11-04T15:48:08Z","author_association":"NONE","body":"Ok, I figured it out.\r\n\r\nIt was a problem on my end, but the `undefined` error didn't help at all.\r\n\r\nThe problem is that I have a dynamic env config that uses `process.env.GCLOUD_PROJECT` to get the correct config for each project. I lacked some config var for the problematic project."}}
{"actor":{"display_login":"PierBover"}}