title: GAE - AppEngine - DeadlineExceededError: Deadline exceeded while waiting for HTTP response from URL:
body: <p>I have a Google AppEngine application which runs great on my local machine. The app posts a image (from a url) to my facebook wall. However, when I deploy it to Google's servers, I get 
  an error:</p>
  
  <pre><code>DeadlineExceededError: Deadline exceeded while waiting for HTTP response from URL: 
  </code></pre>
  
  <p>The offending code is:</p>
  
  <pre><code>facebook_access_token = facebook_info['access_token']
  
  facebook_post_url = 'https://graph.facebook.com/me/photos?access_token=%s&amp;url=%s&amp;name=%s&amp;method=post' % (facebook_access_token, url, caption)
  facebook_post_url = facebook_post_url.replace(" ", "+");
  facebook_result = urlfetch.fetch(facebook_post_url)
  
  if facebook_result.status_code == 200:
    facebook_result_object = json.loads(facebook_result.content) 
    output_ids['facebook'] = facebook_result_object['id']
  else:
    output_ids['facebook'] = ''
  </code></pre>
  
  <p>Ans the full error trace is:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/_webapp25.py", line 710, in __call__
      handler.get(*groups)
    File "/base/data/home/apps/s~digibackapi/1.362663258877230387/main.py", line 512, in get
      facebook_result = urlfetch.fetch(facebook_post_url)
    File "/base/python_runtime/python_lib/versions/1/google/appengine/api/urlfetch.py", line 266, in fetch
      return rpc.get_result()
    File "/base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py", line 604, in get_result
      return self.__get_result_hook(self)
    File "/base/python_runtime/python_lib/versions/1/google/appengine/api/urlfetch.py", line 404, in _get_fetch_result
      'Deadline exceeded while waiting for HTTP response from URL: ' + url)
  DeadlineExceededError: Deadline exceeded while waiting for HTTP response from URL: https://graph.facebook.com/me/photos?access_token=&lt;ACCESS_TOKEN&gt;&amp;url=http://digiback.cc/ej7&amp;name=Trees&amp;method=post
  </code></pre>
  
  <p>Again, the code looks solid to me, and it works ok on my local machine. Could it have something t do with timeouts? When I try the <code>facebook_post_url</code> in a browser, it returns instantly.</p>
  
  <p>Does anyone have any ideas? I am ata  complete loss here.</p>
  
  <p>Many thanks!</p>