{"action":"created","issue":{"url":"https://api.github.com/repos/firebase/firebase-tools/issues/842","repository_url":"https://api.github.com/repos/firebase/firebase-tools","labels_url":"https://api.github.com/repos/firebase/firebase-tools/issues/842/labels{/name}","comments_url":"https://api.github.com/repos/firebase/firebase-tools/issues/842/comments","events_url":"https://api.github.com/repos/firebase/firebase-tools/issues/842/events","html_url":"https://github.com/firebase/firebase-tools/issues/842","id":345445812,"node_id":"MDU6SXNzdWUzNDU0NDU4MTI=","number":842,"title":"Hosting doesn't execute function if function region is not default","user":{"login":"istarkov","id":5077042,"node_id":"MDQ6VXNlcjUwNzcwNDI=","avatar_url":"https://avatars3.githubusercontent.com/u/5077042?v=4","gravatar_id":"","url":"https://api.github.com/users/istarkov","html_url":"https://github.com/istarkov","followers_url":"https://api.github.com/users/istarkov/followers","following_url":"https://api.github.com/users/istarkov/following{/other_user}","gists_url":"https://api.github.com/users/istarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/istarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/istarkov/subscriptions","organizations_url":"https://api.github.com/users/istarkov/orgs","repos_url":"https://api.github.com/users/istarkov/repos","events_url":"https://api.github.com/users/istarkov/events{/privacy}","received_events_url":"https://api.github.com/users/istarkov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-28T12:45:06Z","updated_at":"2018-07-30T17:39:04Z","closed_at":"2018-07-30T17:39:04Z","author_association":"NONE","body":"### Version info\r\n4.00\r\n\r\n### Platform Information\r\nOS X\r\n\r\n### Steps to reproduce\r\n\r\nfunction deployed to `europe-west1`\r\n\r\n```javascript\r\n// function code\r\nconst functions = require('firebase-functions');\r\n\r\nexports.helloIvanA = functions\r\n  .region('europe-west1')\r\n  .https.onRequest((request, response) => {\r\n    response.send('Hello from Ivan!');\r\n  });\r\n```\r\n\r\n---\r\n\r\n```json\r\n// firebase.json\r\n{\r\n  \"hosting\": {\r\n    \"public\": \"public\",\r\n\r\n    \"rewrites\": [\r\n      {\r\n        \"source\": \"**\",\r\n        \"function\": \"helloIvanA\"\r\n      }\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\n\r\n### Expected behavior\r\n\r\n`https://blablabla.firebaseapp.com` will get data from `helloIvanA`\r\n\r\n### Actual behavior\r\n`https://blablabla.firebaseapp.com`  redirects to `https://us-central1-yushkarala.cloudfunctions.net/helloIvanA/`\r\nand gives \r\n`Error: Forbidden\r\nYour client does not have permission to get URL /helloIvanA/ from this server.`\r\n"},"comment":{"url":"https://api.github.com/repos/firebase/firebase-tools/issues/comments/408948181","html_url":"https://github.com/firebase/firebase-tools/issues/842#issuecomment-408948181","issue_url":"https://api.github.com/repos/firebase/firebase-tools/issues/842","id":408948181,"node_id":"MDEyOklzc3VlQ29tbWVudDQwODk0ODE4MQ==","user":{"login":"laurenzlong","id":3990804,"node_id":"MDQ6VXNlcjM5OTA4MDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/3990804?v=4","gravatar_id":"","url":"https://api.github.com/users/laurenzlong","html_url":"https://github.com/laurenzlong","followers_url":"https://api.github.com/users/laurenzlong/followers","following_url":"https://api.github.com/users/laurenzlong/following{/other_user}","gists_url":"https://api.github.com/users/laurenzlong/gists{/gist_id}","starred_url":"https://api.github.com/users/laurenzlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurenzlong/subscriptions","organizations_url":"https://api.github.com/users/laurenzlong/orgs","repos_url":"https://api.github.com/users/laurenzlong/repos","events_url":"https://api.github.com/users/laurenzlong/events{/privacy}","received_events_url":"https://api.github.com/users/laurenzlong/received_events","type":"User","site_admin":false},"created_at":"2018-07-30T17:39:04Z","updated_at":"2018-07-30T17:39:04Z","author_association":"MEMBER","body":"Hi, this is expected behavior, please see https://firebase.google.com/docs/functions/locations#http_and_client_callable_functions, the blue box indicates that all functions that serve as hosting redirects must be in 'us-central1', this is due to the fact that that's where the hosting origin is."}}
{"actor":{"display_login":"laurenzlong"}}