{"action":"created","issue":{"url":"https://api.github.com/repos/PlagueHO/CosmosDB/issues/103","repository_url":"https://api.github.com/repos/PlagueHO/CosmosDB","labels_url":"https://api.github.com/repos/PlagueHO/CosmosDB/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/PlagueHO/CosmosDB/issues/103/comments","events_url":"https://api.github.com/repos/PlagueHO/CosmosDB/issues/103/events","html_url":"https://github.com/PlagueHO/CosmosDB/issues/103","id":327376338,"node_id":"MDU6SXNzdWUzMjczNzYzMzg=","number":103,"title":"How does one obtain error details?","user":{"login":"jptillman","id":1685483,"node_id":"MDQ6VXNlcjE2ODU0ODM=","avatar_url":"https://avatars2.githubusercontent.com/u/1685483?v=4","gravatar_id":"","url":"https://api.github.com/users/jptillman","html_url":"https://github.com/jptillman","followers_url":"https://api.github.com/users/jptillman/followers","following_url":"https://api.github.com/users/jptillman/following{/other_user}","gists_url":"https://api.github.com/users/jptillman/gists{/gist_id}","starred_url":"https://api.github.com/users/jptillman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jptillman/subscriptions","organizations_url":"https://api.github.com/users/jptillman/orgs","repos_url":"https://api.github.com/users/jptillman/repos","events_url":"https://api.github.com/users/jptillman/events{/privacy}","received_events_url":"https://api.github.com/users/jptillman/received_events","type":"User","site_admin":false},"labels":[{"id":731474505,"node_id":"MDU6TGFiZWw3MzE0NzQ1MDU=","url":"https://api.github.com/repos/PlagueHO/CosmosDB/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":731474506,"node_id":"MDU6TGFiZWw3MzE0NzQ1MDY=","url":"https://api.github.com/repos/PlagueHO/CosmosDB/labels/help%20wanted","name":"help wanted","color":"33aa3f","default":true}],"state":"open","locked":false,"assignee":{"login":"PlagueHO","id":7589164,"node_id":"MDQ6VXNlcjc1ODkxNjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/7589164?v=4","gravatar_id":"","url":"https://api.github.com/users/PlagueHO","html_url":"https://github.com/PlagueHO","followers_url":"https://api.github.com/users/PlagueHO/followers","following_url":"https://api.github.com/users/PlagueHO/following{/other_user}","gists_url":"https://api.github.com/users/PlagueHO/gists{/gist_id}","starred_url":"https://api.github.com/users/PlagueHO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PlagueHO/subscriptions","organizations_url":"https://api.github.com/users/PlagueHO/orgs","repos_url":"https://api.github.com/users/PlagueHO/repos","events_url":"https://api.github.com/users/PlagueHO/events{/privacy}","received_events_url":"https://api.github.com/users/PlagueHO/received_events","type":"User","site_admin":false},"assignees":[{"login":"PlagueHO","id":7589164,"node_id":"MDQ6VXNlcjc1ODkxNjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/7589164?v=4","gravatar_id":"","url":"https://api.github.com/users/PlagueHO","html_url":"https://github.com/PlagueHO","followers_url":"https://api.github.com/users/PlagueHO/followers","following_url":"https://api.github.com/users/PlagueHO/following{/other_user}","gists_url":"https://api.github.com/users/PlagueHO/gists{/gist_id}","starred_url":"https://api.github.com/users/PlagueHO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PlagueHO/subscriptions","organizations_url":"https://api.github.com/users/PlagueHO/orgs","repos_url":"https://api.github.com/users/PlagueHO/repos","events_url":"https://api.github.com/users/PlagueHO/events{/privacy}","received_events_url":"https://api.github.com/users/PlagueHO/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-05-29T15:36:44Z","updated_at":"2018-06-03T00:02:37Z","closed_at":null,"author_association":"NONE","body":"- [5.1.16299.431] Version of PowerShell you're using\r\n- [Console] PowerShell host you're using\r\n- [Win10] Operating system you're running\r\n- [2.0.12.418 ] Version of CosmosDB you're using\r\n\r\nHow does one get the error details when CosmosDB returns an error?  When using `New-CosmosDbDocument`, for example, I occasionally receive this:\r\n\r\n```\r\nInvoke-RestMethod : The remote server returned an error: (500) Internal Server Error.\r\nAt C:\\Program Files\\WindowsPowerShell\\Modules\\CosmosDB\\2.0.12.418\\lib\\utils.ps1:512 char:23\r\n+         $restResult = Invoke-RestMethod @invokeRestMethodParameters\r\n+                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc\r\n   eption\r\n    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand\r\n```\r\nI can't see any way to get more information.  Sometimes, the error is 400 Invalid Request, which is often missing or malformed data, but I have to figure out what's missing by trial and error."},"comment":{"url":"https://api.github.com/repos/PlagueHO/CosmosDB/issues/comments/394125287","html_url":"https://github.com/PlagueHO/CosmosDB/issues/103#issuecomment-394125287","issue_url":"https://api.github.com/repos/PlagueHO/CosmosDB/issues/103","id":394125287,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDEyNTI4Nw==","user":{"login":"PlagueHO","id":7589164,"node_id":"MDQ6VXNlcjc1ODkxNjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/7589164?v=4","gravatar_id":"","url":"https://api.github.com/users/PlagueHO","html_url":"https://github.com/PlagueHO","followers_url":"https://api.github.com/users/PlagueHO/followers","following_url":"https://api.github.com/users/PlagueHO/following{/other_user}","gists_url":"https://api.github.com/users/PlagueHO/gists{/gist_id}","starred_url":"https://api.github.com/users/PlagueHO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PlagueHO/subscriptions","organizations_url":"https://api.github.com/users/PlagueHO/orgs","repos_url":"https://api.github.com/users/PlagueHO/repos","events_url":"https://api.github.com/users/PlagueHO/events{/privacy}","received_events_url":"https://api.github.com/users/PlagueHO/received_events","type":"User","site_admin":false},"created_at":"2018-06-03T00:02:37Z","updated_at":"2018-06-03T00:02:37Z","author_association":"OWNER","body":"I'm just making a change that will output the response body information into the verbose stream when an error occurs. But in the longer term I'll create a custom exception object that puts the detail of the whole message into the exception. So I'll leave this issue open until then."}}
{"actor":{"display_login":"PlagueHO"}}