{"action":"created","issue":{"url":"https://api.github.com/repos/Bolton-and-Menk-GIS/restapi/issues/6","repository_url":"https://api.github.com/repos/Bolton-and-Menk-GIS/restapi","labels_url":"https://api.github.com/repos/Bolton-and-Menk-GIS/restapi/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/Bolton-and-Menk-GIS/restapi/issues/6/comments","events_url":"https://api.github.com/repos/Bolton-and-Menk-GIS/restapi/issues/6/events","html_url":"https://github.com/Bolton-and-Menk-GIS/restapi/issues/6","id":179826803,"number":6,"title":"Python 2.7.8 Proxy Authentication","user":{"login":"MikeTownshend","id":13588149,"avatar_url":"https://avatars.githubusercontent.com/u/13588149?v=3","gravatar_id":"","url":"https://api.github.com/users/MikeTownshend","html_url":"https://github.com/MikeTownshend","followers_url":"https://api.github.com/users/MikeTownshend/followers","following_url":"https://api.github.com/users/MikeTownshend/following{/other_user}","gists_url":"https://api.github.com/users/MikeTownshend/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeTownshend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeTownshend/subscriptions","organizations_url":"https://api.github.com/users/MikeTownshend/orgs","repos_url":"https://api.github.com/users/MikeTownshend/repos","events_url":"https://api.github.com/users/MikeTownshend/events{/privacy}","received_events_url":"https://api.github.com/users/MikeTownshend/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-28T16:49:23Z","updated_at":"2016-09-30T18:24:38Z","closed_at":null,"body":"Good Morning,\r\n\r\nI am currently able to use version 0.1 to export layers in a Map Service to a local shape file while not behind a corporate fire wall.  However, when I am behind a corporate fire wall the exiting prod version 0.1 throws an error as does the Devel version 1.0.\r\n\r\nI believe the issue is that our proxy requires authentication.  I've tried a number of iterations to get the user name, password, proxy and port specified but with no luck. \r\n\r\nVarious documentation I've found online suggest defining the ArcGIS Server as follows using the proxy parameter:\r\n\r\n`ags = restapi.ArcServer(rest_url, proxy = 'http://username:password@proxy.example.com:8080')`\r\n\r\nThis typically throws the following error:\r\n\r\n`ConnectionError: HTTPConnectionPool(host='proxy.example.com', port=8080): Max retries exceeded with url: /?http://co.kent.de.us/arcgis/rest/services?f=json (Caused by NewConnectionError('<restapi.requests.packages.urllib3.connection.HTTPConnection object at 0x0A2B80F0>: Failed to establish a new connection: [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond',))`\r\n\r\nI will mention that I do have special characters in the password I am using and have tried substituting encoded values.\r\n"},"comment":{"url":"https://api.github.com/repos/Bolton-and-Menk-GIS/restapi/issues/comments/250817201","html_url":"https://github.com/Bolton-and-Menk-GIS/restapi/issues/6#issuecomment-250817201","issue_url":"https://api.github.com/repos/Bolton-and-Menk-GIS/restapi/issues/6","id":250817201,"user":{"login":"MikeTownshend","id":13588149,"avatar_url":"https://avatars.githubusercontent.com/u/13588149?v=3","gravatar_id":"","url":"https://api.github.com/users/MikeTownshend","html_url":"https://github.com/MikeTownshend","followers_url":"https://api.github.com/users/MikeTownshend/followers","following_url":"https://api.github.com/users/MikeTownshend/following{/other_user}","gists_url":"https://api.github.com/users/MikeTownshend/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeTownshend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeTownshend/subscriptions","organizations_url":"https://api.github.com/users/MikeTownshend/orgs","repos_url":"https://api.github.com/users/MikeTownshend/repos","events_url":"https://api.github.com/users/MikeTownshend/events{/privacy}","received_events_url":"https://api.github.com/users/MikeTownshend/received_events","type":"User","site_admin":false},"created_at":"2016-09-30T18:24:38Z","updated_at":"2016-09-30T18:24:38Z","body":"Thanks for the suggestion to test request.get.   This failed with the response:\r\nTraceback (most recent call last):\r\n  File \"E:\\GISFiles\\restapi-master\\restapi\\testProxy.py\", line 5, in <module>\r\n    test = requests.get(rest_url, proxies=proxies)\r\n  File \"E:\\GISFiles\\restapi-master\\restapi\\requests\\api.py\", line 55, in get\r\n    return request('get', url, **kwargs)\r\n  File \"E:\\GISFiles\\restapi-master\\restapi\\requests\\api.py\", line 44, in request\r\n    return session.request(method=method, url=url, **kwargs)\r\n  File \"E:\\GISFiles\\restapi-master\\restapi\\requests\\sessions.py\", line 383, in request\r\n    resp = self.send(prep, **send_kwargs)\r\n  File \"E:\\GISFiles\\restapi-master\\restapi\\requests\\sessions.py\", line 486, in send\r\n    r = adapter.send(request, **kwargs)\r\n  File \"E:\\GISFiles\\restapi-master\\restapi\\requests\\adapters.py\", line 381, in send\r\n    raise ProxyError(e)\r\nProxyError: Cannot connect to proxy. Socket error: [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.\r\n\r\nI will be out of the office for a week and will look into cntlm when I return."}}
{"actor":{"display_login":"MikeTownshend"}}