I have a very simple html page http://cbc007.cn/test.html .
When I fetch it using http://shell.appspot.com/, an error occurs, sometimes.
When I fetch it in my app, it has the same error.
>>> r=urlfetch.fetch('http://cbc007.cn/test.html')
Traceback (most recent call last):
File "/base/data/home/apps/shell/1.334417654335420704/shell.py", line 278,
in get
exec compiled in statement_module.__dict__
File "<string>", line 1, in <module>
File "/base/python_lib/versions/1/google/appengine/api/urlfetch.py", line
241, in fetch
return rpc.get_result()
File
"/base/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py",
line 442, in get_result
return self.__get_result_hook(self)
File "/base/python_lib/versions/1/google/appengine/api/urlfetch.py", line
331, in _get_fetch_result
raise DownloadError(str(err))
DownloadError: ApplicationError: 5
Sometimes, it throws "DownloadError: ApplicationError: 2" error. Very
curious.
But it occurs on GAE production server only. On local sdk, it works fine.
Is it a bug?
No. I can fetch other servers in China, such as http://baidu.com.
And I can use wget to get this page outside China. So China does not block the side http://cbc007.cn/
发件人: google-a...@googlegroups.com [mailto:google-a...@googlegroups.com] 代表 Alkis Evlogimenos ('Αλκη? Ευλογημ?νο?)
发送时间: 2009年7月8日 14:57
收件人: google-a...@googlegroups.com
主题: [google-appengine] Re: a bug of urlfetch on GAE production server
Maybe the fetch service is blocked in China?
On Wed, Jul 8, 2009 at 4:14 AM, chenbaiping <chenb...@revenco.com> wrote:
When I fetch it using http://shell.appspot.com/, an error occurs.
When I fetch it in my app, it has the same error.
>>> r=urlfetch.fetch('http://cbc007.cn/test.html')
Traceback (most recent call last):
File "/base/data/home/apps/shell/1.334417654335420704/shell.py", line 278,
in get
exec compiled in statement_module.__dict__
File "<string>", line 1, in <module>
File "/base/python_lib/versions/1/google/appengine/api/urlfetch.py", line
241, in fetch
return rpc.get_result()
File
"/base/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py",
line 442, in get_result
return self.__get_result_hook(self)
File "/base/python_lib/versions/1/google/appengine/api/urlfetch.py", line
331, in _get_fetch_result
raise DownloadError(str(err))
DownloadError: ApplicationError: 5
Sometimes, it throws "DownloadError: ApplicationError: 2" error. Very
curious.
But it occurs on GAE production server only. On local sdk, it works fine.
Is it a bug?
--
Alkis
____ KILLӊȫؠґɨèKբⓊ ____