title: I'm getting: "Python handling socket.error: [Errno 104] Connection reset by peer" when I'm trying to run a python script
body: <p>I'm using Python 2.7 and trying to run the sample python code from <a href="https://dev.projectoxford.ai/docs/services/56f91f2d778daf23d8ec6739/operations/56f91f2e778daf14a499e1fe" rel="nofollow">this website</a></p>
  
  <pre><code>########### Python 2.7 #############
  import httplib, urllib, base64
  
  headers = {
      # Request headers
      'Content-Type': 'application/json',
      'Ocp-Apim-Subscription-Key': '{subscription key}',
  }
  
  params = urllib.urlencode({
      # Request parameters
      'maxCandidates': '1',
  })
  
  try:
      conn = httplib.HTTPSConnection('api.projectoxford.ai')
      conn.request("POST", "/vision/v1.0/describe?%s" % params, "{body}", headers)
      response = conn.getresponse()
      data = response.read()
      print(data)
      conn.close()
  except Exception as e:
      print("[Errno {0}] {1}".format(e.errno, e.strerror))
  
  ####################################
  
  ########### Python 3.2 #############
  import http.client, urllib.request, urllib.parse, urllib.error, base64
  
  headers = {
      # Request headers
      'Content-Type': 'application/json',
      'Ocp-Apim-Subscription-Key': '{subscription key}',
  }
  
  params = urllib.parse.urlencode({
      # Request parameters
      'maxCandidates': '1',
  })
  
  try:
      conn = http.client.HTTPSConnection('api.projectoxford.ai')
      conn.request("POST", "/vision/v1.0/describe?%s" % params, "{body}", headers)
      response = conn.getresponse()
      data = response.read()
      print(data)
      conn.close()
  except Exception as e:
      print("[Errno {0}] {1}".format(e.errno, e.strerror))
  
  ####################################
  </code></pre>
  
  <p>It's the Computer Vision API that describes an image.</p>
  
  <hr>
  
  <p>I'm getting the following error: </p>
  
  <blockquote>
    <p>Python handling socket.error: [Errno 104] Connection reset by peer</p>
  </blockquote>
  
  <p>What should be the problem? </p>
  
  <p>Let me know if you need any other information.</p>