{"action":"opened","issue":{"url":"https://api.github.com/repos/docusign/DocuSign-.NET-Client/issues/56","labels_url":"https://api.github.com/repos/docusign/DocuSign-.NET-Client/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/docusign/DocuSign-.NET-Client/issues/56/comments","events_url":"https://api.github.com/repos/docusign/DocuSign-.NET-Client/issues/56/events","html_url":"https://github.com/docusign/DocuSign-.NET-Client/issues/56","id":115602979,"number":56,"title":"Code consistency and exception exception checks","user":{"login":"bojake","id":4700790,"avatar_url":"https://avatars.githubusercontent.com/u/4700790?v=3","gravatar_id":"","url":"https://api.github.com/users/bojake","html_url":"https://github.com/bojake","followers_url":"https://api.github.com/users/bojake/followers","following_url":"https://api.github.com/users/bojake/following{/other_user}","gists_url":"https://api.github.com/users/bojake/gists{/gist_id}","starred_url":"https://api.github.com/users/bojake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bojake/subscriptions","organizations_url":"https://api.github.com/users/bojake/orgs","repos_url":"https://api.github.com/users/bojake/repos","events_url":"https://api.github.com/users/bojake/events{/privacy}","received_events_url":"https://api.github.com/users/bojake/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-06T22:25:18Z","updated_at":"2015-11-06T22:25:18Z","closed_at":null,"body":"Envelope.Create() checks the null-value state of the key RestSettings members, but the other api methods do not. They should all make these null checks. Maybe a new private method to check these values should be added.\r\n\r\nFurthermore, when you try to use “Evenlope.UpdateRecipients” without having completed an Account.Login() you will get a weird exception:\r\n\r\nSystem.UriFormatException: Invalid URI: The format of the URI could not be determined.\r\n   at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)\r\n   at System.Net.WebRequest.Create(String requestUriString)\r\n   at DocuSign.Integrations.Client.RequestBuilder.CreateWebRequest()\r\n   at DocuSign.Integrations.Client.RequestBuilder.MakeRESTRequest()\r\n   at DocuSign.Integrations.Client.Envelope.UpdateRecipients(Recipients recipients, Boolean resendEnvelope)\r\n\r\nThat should be changed so that a more informative exception, such as “You must login before accessing the service,” should be used. Otherwise, we will all think there is a bug in the API when there is not.\r\n"}}