{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-functions-host/issues/2530","repository_url":"https://api.github.com/repos/Azure/azure-functions-host","labels_url":"https://api.github.com/repos/Azure/azure-functions-host/issues/2530/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-functions-host/issues/2530/comments","events_url":"https://api.github.com/repos/Azure/azure-functions-host/issues/2530/events","html_url":"https://github.com/Azure/azure-functions-host/issues/2530","id":305341591,"number":2530,"title":"Admin Api's on functions can cause 404's","user":{"login":"pragnagopa","id":1874279,"avatar_url":"https://avatars0.githubusercontent.com/u/1874279?v=4","gravatar_id":"","url":"https://api.github.com/users/pragnagopa","html_url":"https://github.com/pragnagopa","followers_url":"https://api.github.com/users/pragnagopa/followers","following_url":"https://api.github.com/users/pragnagopa/following{/other_user}","gists_url":"https://api.github.com/users/pragnagopa/gists{/gist_id}","starred_url":"https://api.github.com/users/pragnagopa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pragnagopa/subscriptions","organizations_url":"https://api.github.com/users/pragnagopa/orgs","repos_url":"https://api.github.com/users/pragnagopa/repos","events_url":"https://api.github.com/users/pragnagopa/events{/privacy}","received_events_url":"https://api.github.com/users/pragnagopa/received_events","type":"User","site_admin":false},"labels":[{"id":751668889,"url":"https://api.github.com/repos/Azure/azure-functions-host/labels/1.x","name":"1.x","color":"5319e7","default":false},{"id":522686965,"url":"https://api.github.com/repos/Azure/azure-functions-host/labels/2.0","name":"2.0","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-03-14T21:49:36Z","updated_at":"2018-05-08T17:55:24Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Issue reported in #2507 . I think issue would repro if admin api are being hit before scripthost finishes function indexing. \r\nRepro:\r\n- Create new key on an inactive funtion app (cold start)\r\n\r\nWorkaround:\r\nRetry on 404\r\n\r\nHere is the code that returns 404\r\n- Function [NotFound](https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/KeysController.cs#L164)\r\n\r\n- OperationResult [NotFound](https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script.WebHost/Controllers/KeysController.cs#L192)\r\n\r\nIt would be helpful to log the reason for 404 "},"comment":{"url":"https://api.github.com/repos/Azure/azure-functions-host/issues/comments/387488020","html_url":"https://github.com/Azure/azure-functions-host/issues/2530#issuecomment-387488020","issue_url":"https://api.github.com/repos/Azure/azure-functions-host/issues/2530","id":387488020,"user":{"login":"pragnagopa","id":1874279,"avatar_url":"https://avatars0.githubusercontent.com/u/1874279?v=4","gravatar_id":"","url":"https://api.github.com/users/pragnagopa","html_url":"https://github.com/pragnagopa","followers_url":"https://api.github.com/users/pragnagopa/followers","following_url":"https://api.github.com/users/pragnagopa/following{/other_user}","gists_url":"https://api.github.com/users/pragnagopa/gists{/gist_id}","starred_url":"https://api.github.com/users/pragnagopa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pragnagopa/subscriptions","organizations_url":"https://api.github.com/users/pragnagopa/orgs","repos_url":"https://api.github.com/users/pragnagopa/repos","events_url":"https://api.github.com/users/pragnagopa/events{/privacy}","received_events_url":"https://api.github.com/users/pragnagopa/received_events","type":"User","site_admin":false},"created_at":"2018-05-08T17:55:24Z","updated_at":"2018-05-08T17:55:24Z","author_association":"CONTRIBUTOR","body":"This reproes in V2 as well. "}}
{"actor":{"display_login":"pragnagopa"}}