{"action":"opened","issue":{"url":"https://api.github.com/repos/firebase/firebase-functions/issues/301","repository_url":"https://api.github.com/repos/firebase/firebase-functions","labels_url":"https://api.github.com/repos/firebase/firebase-functions/issues/301/labels{/name}","comments_url":"https://api.github.com/repos/firebase/firebase-functions/issues/301/comments","events_url":"https://api.github.com/repos/firebase/firebase-functions/issues/301/events","html_url":"https://github.com/firebase/firebase-functions/issues/301","id":348325812,"node_id":"MDU6SXNzdWUzNDgzMjU4MTI=","number":301,"title":"Error when deploying storage triggers on specified region","user":{"login":"shrestaz","id":9460504,"node_id":"MDQ6VXNlcjk0NjA1MDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/9460504?v=4","gravatar_id":"","url":"https://api.github.com/users/shrestaz","html_url":"https://github.com/shrestaz","followers_url":"https://api.github.com/users/shrestaz/followers","following_url":"https://api.github.com/users/shrestaz/following{/other_user}","gists_url":"https://api.github.com/users/shrestaz/gists{/gist_id}","starred_url":"https://api.github.com/users/shrestaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shrestaz/subscriptions","organizations_url":"https://api.github.com/users/shrestaz/orgs","repos_url":"https://api.github.com/users/shrestaz/repos","events_url":"https://api.github.com/users/shrestaz/events{/privacy}","received_events_url":"https://api.github.com/users/shrestaz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-07T13:39:52Z","updated_at":"2018-08-07T13:39:52Z","closed_at":null,"author_association":"NONE","body":"### Version info\r\n\r\n<!-- What versions of the following libraries are you using? Note that your issue may already\r\nbe fixed in the latest versions. -->\r\n\r\n**firebase-functions:**\r\n2.0.2\r\n\r\n**firebase-tools:**\r\n4.0.3\r\n\r\n**firebase-admin:**\r\n5.13.1\r\n\r\n### Steps to reproduce\r\n\r\n1. Create a storage trigger with region like so:\r\n```typescript\r\nexport const storageTrigger = functions.region('europe-west3').storage.object().onDelete(() => {\r\n// do something \r\n});\r\n```\r\n2. Deploy the function:\r\n```bash\r\nfirebase deploy --only functions:storageTrigger\r\n```\r\n\r\n3. Error\r\n```bash\r\n⚠  functions: failed to create function storageTrigger\r\nHTTP Error: 400, The request has errors\r\n```\r\n\r\n### Were you able to successfully deploy your functions?\r\nWhen region is not explicitly defined, yes.\r\nWhen region is defined as above, no.\r\n\r\n### Expected behavior\r\n\r\nFunction deploys on the defined region.\r\n\r\n### Actual behavior\r\n\r\nError while deploying function when region is defined.\r\n```bash\r\n⚠  functions: failed to create function storageTrigger\r\nHTTP Error: 400, The request has errors\r\n```"}}
{"actor":{"display_login":"shrestaz"}}