{"action":"created","issue":{"url":"https://api.github.com/repos/2sic/2sxc/issues/872","repository_url":"https://api.github.com/repos/2sic/2sxc","labels_url":"https://api.github.com/repos/2sic/2sxc/issues/872/labels{/name}","comments_url":"https://api.github.com/repos/2sic/2sxc/issues/872/comments","events_url":"https://api.github.com/repos/2sic/2sxc/issues/872/events","html_url":"https://github.com/2sic/2sxc/issues/872","id":163169727,"number":872,"title":"Improve error-handling when adding an app which doesn't have a view","user":{"login":"BeniGemperle","id":6669093,"avatar_url":"https://avatars.githubusercontent.com/u/6669093?v=3","gravatar_id":"","url":"https://api.github.com/users/BeniGemperle","html_url":"https://github.com/BeniGemperle","followers_url":"https://api.github.com/users/BeniGemperle/followers","following_url":"https://api.github.com/users/BeniGemperle/following{/other_user}","gists_url":"https://api.github.com/users/BeniGemperle/gists{/gist_id}","starred_url":"https://api.github.com/users/BeniGemperle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BeniGemperle/subscriptions","organizations_url":"https://api.github.com/users/BeniGemperle/orgs","repos_url":"https://api.github.com/users/BeniGemperle/repos","events_url":"https://api.github.com/users/BeniGemperle/events{/privacy}","received_events_url":"https://api.github.com/users/BeniGemperle/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/2sic/2sxc/milestones/110","html_url":"https://github.com/2sic/2sxc/milestones/%202sxc%2008.07.01%20Hotfixes","labels_url":"https://api.github.com/repos/2sic/2sxc/milestones/110/labels","id":2121224,"number":110,"title":" 2sxc 08.07.01 Hotfixes","description":"","creator":{"login":"iJungleboy","id":5321186,"avatar_url":"https://avatars.githubusercontent.com/u/5321186?v=3","gravatar_id":"","url":"https://api.github.com/users/iJungleboy","html_url":"https://github.com/iJungleboy","followers_url":"https://api.github.com/users/iJungleboy/followers","following_url":"https://api.github.com/users/iJungleboy/following{/other_user}","gists_url":"https://api.github.com/users/iJungleboy/gists{/gist_id}","starred_url":"https://api.github.com/users/iJungleboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iJungleboy/subscriptions","organizations_url":"https://api.github.com/users/iJungleboy/orgs","repos_url":"https://api.github.com/users/iJungleboy/repos","events_url":"https://api.github.com/users/iJungleboy/events{/privacy}","received_events_url":"https://api.github.com/users/iJungleboy/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":21,"state":"open","created_at":"2016-11-08T08:34:19Z","updated_at":"2016-12-07T16:43:51Z","due_on":"2016-12-05T00:00:00Z","closed_at":null},"comments":1,"created_at":"2016-06-30T13:47:42Z","updated_at":"2016-12-07T16:43:51Z","closed_at":"2016-12-07T16:43:51Z","body":"When I create a new App, don't create any View-Template and try to insert that app, I receive this error:\n\n``` json\n{\n    \"Message\": \"Bad Request\",\n    \"ExceptionMessage\": \"The given key was not present in the dictionary.\",\n    \"ExceptionType\": \"System.Collections.Generic.KeyNotFoundException\",\n    \"StackTrace\": \"   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)\\r\\n   at ToSic.SexyContent.ContentBlock.ContentGroupReferenceManagerBase.SaveTemplateId(Int32 templateId, Boolean forceCreateContentGroup, Nullable`1 newTemplateChooserState) in C:\\\\Projects\\\\2SexyContent\\\\Web\\\\DesktopModules\\\\ToSIC_SexyContent\\\\SexyContent\\\\ContentBlock\\\\ContentGroupReferenceManagerBase.cs:line 76\\r\\n   at ToSic.SexyContent.WebApi.View.ModuleController.SaveTemplateId(Int32 templateId, Boolean forceCreateContentGroup, Nullable`1 newTemplateChooserState) in C:\\\\Projects\\\\2SexyContent\\\\Web\\\\DesktopModules\\\\ToSIC_SexyContent\\\\WebApi\\\\View\\\\ModuleController.cs:line 39\\r\\n   at lambda_method(Closure , Object , Object[] )\\r\\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass13.<GetExecutor>b__c(Object instance, Object[] methodParameters)\\r\\n   at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func`1 func, CancellationToken cancellationToken)\"\n}\n```\n"},"comment":{"url":"https://api.github.com/repos/2sic/2sxc/issues/comments/265500169","html_url":"https://github.com/2sic/2sxc/issues/872#issuecomment-265500169","issue_url":"https://api.github.com/repos/2sic/2sxc/issues/872","id":265500169,"user":{"login":"iJungleboy","id":5321186,"avatar_url":"https://avatars.githubusercontent.com/u/5321186?v=3","gravatar_id":"","url":"https://api.github.com/users/iJungleboy","html_url":"https://github.com/iJungleboy","followers_url":"https://api.github.com/users/iJungleboy/followers","following_url":"https://api.github.com/users/iJungleboy/following{/other_user}","gists_url":"https://api.github.com/users/iJungleboy/gists{/gist_id}","starred_url":"https://api.github.com/users/iJungleboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iJungleboy/subscriptions","organizations_url":"https://api.github.com/users/iJungleboy/orgs","repos_url":"https://api.github.com/users/iJungleboy/repos","events_url":"https://api.github.com/users/iJungleboy/events{/privacy}","received_events_url":"https://api.github.com/users/iJungleboy/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T16:43:51Z","updated_at":"2016-12-07T16:43:51Z","body":"this was improved a while back - doesn't show error any more"}}
{"actor":{"display_login":"iJungleboy"}}