It's possible your government is blocking the IP that the urlfetch service runs on. Being able to access "GAE" from it is meaningless; app engine itself runs on many servers and the ones serving your requests aren't necessarily the same ones originating urlfetch calls.
On Jul 8, 11:22 am, "chenbaiping" <chenbaip...@revenco.com> wrote: > It seems that GAE blocks the IP. GAE cann’t access the IP > 121.11.86.71(cbc007.cn). But I can access GAE from the IP 121.11.86.71. > > Why GAE blocks that ip? It is just a virtual hosting server. It’s very > strange. > > But my app needs to fetch some data from my virtual host. What could I do ? > > _____ > > 发件人: google-appengine@googlegroups.com > [mailto:google-appeng...@googlegroups.com] 代表 Alkis Evlogimenos ('Αλκη? > Ευλογημ?νο?) > 发送时间: 2009年7月8日 19:55 > 收件人: google-appengine@googlegroups.com > 主题: [google-appengine] Re: a bug of urlfetch on GAE production server > > The question is can Google access this page outside of China. The fact that > you can is irrelevant :-) > > On Wed, Jul 8, 2009 at 9:12 AM, chenbaiping <chenbaip...@revenco.com> wrote: > > No. I can fetch other servers in China, such > ashttp://baidu.com<http://baidu.com/> . > > And I can use wget to get this page outside China. So China does not block > the sidehttp://cbc007.cn/ > > _____ > > 发件人: google-appengine@googlegroups.com > [mailto:google-appeng...@googlegroups.com] 代表 Alkis Evlogimenos ('Αλκη? > Ευλογημ?νο?) > 发送时间: 2009年7月8日 14:57 > 收件人: google-appengine@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 <chenbaip...@revenco.com> wrote: > > I have a very simple html pagehttp://cbc007.cn/test.html. > > When I fetch it usinghttp://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բⓊ ____ > > -- > > Alkis > > ____ KILLӊȫؠґɨèKբⓊ ____ > > ____ KILL ʼ ȫ Ѿ ɨ ʼ ____ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---