{"action":"opened","issue":{"url":"https://api.github.com/repos/MyPureCloud/purecloud_api_sdk_ruby/issues/2","repository_url":"https://api.github.com/repos/MyPureCloud/purecloud_api_sdk_ruby","labels_url":"https://api.github.com/repos/MyPureCloud/purecloud_api_sdk_ruby/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/MyPureCloud/purecloud_api_sdk_ruby/issues/2/comments","events_url":"https://api.github.com/repos/MyPureCloud/purecloud_api_sdk_ruby/issues/2/events","html_url":"https://github.com/MyPureCloud/purecloud_api_sdk_ruby/issues/2","id":190196750,"number":2,"title":"APIError exception doesn't include the URI that was being accessed","user":{"login":"scytherswings","id":11652222,"avatar_url":"https://avatars.githubusercontent.com/u/11652222?v=3","gravatar_id":"","url":"https://api.github.com/users/scytherswings","html_url":"https://github.com/scytherswings","followers_url":"https://api.github.com/users/scytherswings/followers","following_url":"https://api.github.com/users/scytherswings/following{/other_user}","gists_url":"https://api.github.com/users/scytherswings/gists{/gist_id}","starred_url":"https://api.github.com/users/scytherswings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scytherswings/subscriptions","organizations_url":"https://api.github.com/users/scytherswings/orgs","repos_url":"https://api.github.com/users/scytherswings/repos","events_url":"https://api.github.com/users/scytherswings/events{/privacy}","received_events_url":"https://api.github.com/users/scytherswings/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-17T23:38:05Z","updated_at":"2016-11-17T23:38:05Z","closed_at":null,"body":"This output doesn't tell me enough information to debug quickly. I'd like to see some more contextual information included. URI is a good place to start.\r\n```\r\n/home/andrew/.rvm/rubies/jruby-9.0.5.0/bin/jruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /home/andrew/ININ/stuff/andrew-newell/sumoReport/asdf.rb\r\nPureCloud::ApiError: Unauthorized\r\n                            call_api at /home/andrew/.rvm/gems/jruby-9.0.5.0/gems/purecloud-0.58.1/lib/purecloud/api_client.rb:60\r\n  get_providers_edges_with_http_info at /home/andrew/.rvm/gems/jruby-9.0.5.0/gems/purecloud-0.58.1/lib/purecloud/api/telephony_providers_edge_api.rb:871\r\n                 get_providers_edges at /home/andrew/.rvm/gems/jruby-9.0.5.0/gems/purecloud-0.58.1/lib/purecloud/api/telephony_providers_edge_api.rb:822\r\n                               <top> at /home/andrew/ININ/stuff/andrew-newell/sumoReport/asdf.rb:14\r\n                                load at org/jruby/RubyKernel.java:955\r\n                               <top> at -e:1\r\n```\r\n\r\nNow this log message, while more verbose than needed for this type of application, is much more informative and doesn't hide the important data:\r\n```\r\nGET https://api.inindca.com/api/v2/telephony/providers/edges?pageSize=100&pageNumber=1&site.id=869b88fa-98a5-4c80-8190-725f5a80c02e <<<<\r\nhttp/1.1  401 Unauthorized  (29 ms)\r\n---- HEADERS ----\r\nDate: Thu, 17 Nov 2016 23:36:30 GMT\r\nContent-Type: application/json\r\nContent-Length: 125\r\nConnection: keep-alive\r\nININ-Correlation-Id: ead02534-02d7-48be-bc70-2145b73c2e7e\r\nCache-Control: no-cache, no-store, must-revalidate\r\nPragma: no-cache\r\nExpires: 0\r\nOkHttp-Sent-Millis: 1479425790282\r\nOkHttp-Received-Millis: 1479425790312\r\n---- BODY (125 bytes) ----\r\n{\"status\":401,\"code\":\"authentication.required\",\"message\":\"No authentication bearer token specified in authorization header.\"}\r\n<<<< END <<<<\r\n```"}}
{"actor":{"display_login":"scytherswings"}}