{"action":"created","issue":{"url":"https://api.github.com/repos/SitecorePowerShell/Console/issues/652","repository_url":"https://api.github.com/repos/SitecorePowerShell/Console","labels_url":"https://api.github.com/repos/SitecorePowerShell/Console/issues/652/labels{/name}","comments_url":"https://api.github.com/repos/SitecorePowerShell/Console/issues/652/comments","events_url":"https://api.github.com/repos/SitecorePowerShell/Console/issues/652/events","html_url":"https://github.com/SitecorePowerShell/Console/issues/652","id":160172033,"number":652,"title":"Timeout on package install - SPE Remoting ","user":{"login":"glenmcinnis","id":19929920,"avatar_url":"https://avatars.githubusercontent.com/u/19929920?v=3","gravatar_id":"","url":"https://api.github.com/users/glenmcinnis","html_url":"https://github.com/glenmcinnis","followers_url":"https://api.github.com/users/glenmcinnis/followers","following_url":"https://api.github.com/users/glenmcinnis/following{/other_user}","gists_url":"https://api.github.com/users/glenmcinnis/gists{/gist_id}","starred_url":"https://api.github.com/users/glenmcinnis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glenmcinnis/subscriptions","organizations_url":"https://api.github.com/users/glenmcinnis/orgs","repos_url":"https://api.github.com/users/glenmcinnis/repos","events_url":"https://api.github.com/users/glenmcinnis/events{/privacy}","received_events_url":"https://api.github.com/users/glenmcinnis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SitecorePowerShell/Console/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"michaellwest","id":933163,"avatar_url":"https://avatars.githubusercontent.com/u/933163?v=3","gravatar_id":"","url":"https://api.github.com/users/michaellwest","html_url":"https://github.com/michaellwest","followers_url":"https://api.github.com/users/michaellwest/followers","following_url":"https://api.github.com/users/michaellwest/following{/other_user}","gists_url":"https://api.github.com/users/michaellwest/gists{/gist_id}","starred_url":"https://api.github.com/users/michaellwest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaellwest/subscriptions","organizations_url":"https://api.github.com/users/michaellwest/orgs","repos_url":"https://api.github.com/users/michaellwest/repos","events_url":"https://api.github.com/users/michaellwest/events{/privacy}","received_events_url":"https://api.github.com/users/michaellwest/received_events","type":"User","site_admin":false},"assignees":[{"login":"michaellwest","id":933163,"avatar_url":"https://avatars.githubusercontent.com/u/933163?v=3","gravatar_id":"","url":"https://api.github.com/users/michaellwest","html_url":"https://github.com/michaellwest","followers_url":"https://api.github.com/users/michaellwest/followers","following_url":"https://api.github.com/users/michaellwest/following{/other_user}","gists_url":"https://api.github.com/users/michaellwest/gists{/gist_id}","starred_url":"https://api.github.com/users/michaellwest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaellwest/subscriptions","organizations_url":"https://api.github.com/users/michaellwest/orgs","repos_url":"https://api.github.com/users/michaellwest/repos","events_url":"https://api.github.com/users/michaellwest/events{/privacy}","received_events_url":"https://api.github.com/users/michaellwest/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/SitecorePowerShell/Console/milestones/20","html_url":"https://github.com/SitecorePowerShell/Console/milestones/4.1","labels_url":"https://api.github.com/repos/SitecorePowerShell/Console/milestones/20/labels","id":1656403,"number":20,"title":"4.1","description":null,"creator":{"login":"michaellwest","id":933163,"avatar_url":"https://avatars.githubusercontent.com/u/933163?v=3","gravatar_id":"","url":"https://api.github.com/users/michaellwest","html_url":"https://github.com/michaellwest","followers_url":"https://api.github.com/users/michaellwest/followers","following_url":"https://api.github.com/users/michaellwest/following{/other_user}","gists_url":"https://api.github.com/users/michaellwest/gists{/gist_id}","starred_url":"https://api.github.com/users/michaellwest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaellwest/subscriptions","organizations_url":"https://api.github.com/users/michaellwest/orgs","repos_url":"https://api.github.com/users/michaellwest/repos","events_url":"https://api.github.com/users/michaellwest/events{/privacy}","received_events_url":"https://api.github.com/users/michaellwest/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":45,"state":"open","created_at":"2016-03-21T02:03:21Z","updated_at":"2016-07-27T00:02:34Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-06-14T12:44:23Z","updated_at":"2016-07-27T00:04:46Z","closed_at":null,"body":"Using SPE v 4 and Sitecore 8.1 Update 3. \r\n\r\nA simple function to install an update package results in a dead session shown on the console. Package does seem to install. Anyway to catch this? Function and output below.\r\n\r\nfunction Invoke-RemoteUpdatePackageInstall\r\n{\r\n\tparam (\r\n\t\t$session,\r\n\t\t$path\r\n\t)\r\n\t$jobId = Invoke-RemoteScript -Session $session -ScriptBlock {\r\n\t\t\tInstall-UpdatePackage -Path $packagePath -UpgradeAction Upgrade -InstallMode Install\r\n\t\t}  -AsJob -ArgumentList @{\"packagePath\" = $path }\r\n\tWait-RemoteScriptSession -Session $session -Id $jobId -Delay 5 -Verbose\r\n}\r\n\r\n\r\n\r\nVERBOSE: Polling job d913222a-fd6a-465b-b081-f5de0d1f4bcb. Status : Busy.\r\nVERBOSE: Polling job d913222a-fd6a-465b-b081-f5de0d1f4bcb. Status : Busy.\r\nVERBOSE: Polling job  . Status :  .\r\nVERBOSE: Finished polling job d913222a-fd6a-465b-b081-f5de0d1f4bcb.\r\nGet-ScriptSession : The script session with Id 'd913222a-fd6a-465b-b081-f5de0d1f4bcb' cannot be found.\r\nAt line:3 char:36\r\n+         $backgroundScriptSession = Get-ScriptSession -Id $__using_id\r\n+                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : ResourceUnavailable: (d913222a-fd6a-465b-b081-f5de0d1f4bcb:String) [Get-ScriptSession],\r\n   ObjectNotFoundException\r\n    + FullyQualifiedErrorId : ScriptSessionNotFound,Cognifide.PowerShell.Commandlets.ScriptSessions.GetScriptSessionCo\r\n   mmand\r\n"},"comment":{"url":"https://api.github.com/repos/SitecorePowerShell/Console/issues/comments/235443352","html_url":"https://github.com/SitecorePowerShell/Console/issues/652#issuecomment-235443352","issue_url":"https://api.github.com/repos/SitecorePowerShell/Console/issues/652","id":235443352,"user":{"login":"AdamNaj","id":1209953,"avatar_url":"https://avatars.githubusercontent.com/u/1209953?v=3","gravatar_id":"","url":"https://api.github.com/users/AdamNaj","html_url":"https://github.com/AdamNaj","followers_url":"https://api.github.com/users/AdamNaj/followers","following_url":"https://api.github.com/users/AdamNaj/following{/other_user}","gists_url":"https://api.github.com/users/AdamNaj/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamNaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamNaj/subscriptions","organizations_url":"https://api.github.com/users/AdamNaj/orgs","repos_url":"https://api.github.com/users/AdamNaj/repos","events_url":"https://api.github.com/users/AdamNaj/events{/privacy}","received_events_url":"https://api.github.com/users/AdamNaj/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T00:04:46Z","updated_at":"2016-07-27T00:04:46Z","body":"Any action needed on my part or is this a closed issue now?"}}
{"actor":{"display_login":"AdamNaj"}}