alexsorokoletov / birdnest

Automatically exported from code.google.com/p/birdnest
0 stars 0 forks source link

自建Google APE出错的解决方案 #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1、
下载Google APE源码的地址是:
http://birdnest.googlecode.com/svn/branches/gae
而不是:
http://birdnest.googlecode.com/svn/trunk/(不要用这个)

2、
如若你的code.py文件中,第82-91行为下列内容,请把这些内容��
�除:
    import socket
    import re
    ua = web.ctx.environ.get("HTTP_USER_AGENT", 'None')
    if ua.find('jibjib') >= 0:
      socket.setdefaulttimeout(60)
    elif ua.find('zh-CN') >= 0:
      #raise Exception('unknown error')
      socket.setdefaulttimeout(2)
    else:
      socket.setdefaulttimeout(2)

再试,可以了。

Original issue reported on code.google.com by hnu...@gmail.com on 6 Apr 2010 at 10:43

GoogleCodeExporter commented 8 years ago
still errors occur. 

pino (up to date) + gae + birdnest (r102, lines 82-91 deleted in code.py) 
running on ubuntu 10.04 (up to date).

logs from google app engine.

OUTGOING IP - - [06/Apr/2010:09:20:15 -0700] "GET 
/api/direct_messages.xml?count=20 HTTP/1.1" 500 29 - "pino/0.2.5,gzip(gfe)" 
"MYAPPID.appspot.com"
I 04-06 09:20AM 11.293
None
I 04-06 09:20AM 11.293
pino/0.2.5,gzip(gfe)
E 04-06 09:20AM 15.794
/direct_messages.xml?count=20

ApplicationError: 5 

{'User-Agent': 'pino/0.2.5,gzip(gfe)'}

Original comment by angelch...@gmail.com on 7 Apr 2010 at 3:01

GoogleCodeExporter commented 8 years ago
yeah thx 
it works!

Original comment by vh12345o...@gmail.com on 7 Apr 2010 at 3:34

GoogleCodeExporter commented 8 years ago
Re: Comment 1 by angelchern

Sorry, I works in Windows. I'm not using ubu, so I can't help. Sorry.

Original comment by hnu...@gmail.com on 7 Apr 2010 at 4:35

GoogleCodeExporter commented 8 years ago
补充:Windows下TortoiseSVN-1.6.7.18415-win32-svn-1.6.9.msi + 
python-2.6.5.msi + 
GoogleAppEngine_1.3.2.msi 
按照本帖处理创建APE成功,所有文件从各自官网下载,未测��
�其他情
形,欢迎补充。

Original comment by hnu...@gmail.com on 7 Apr 2010 at 4:41

GoogleCodeExporter commented 8 years ago
Thanks. I would be work for me now. 

Original comment by Ericpoon...@gmail.com on 18 Apr 2010 at 4:32

GoogleCodeExporter commented 8 years ago
真不错

Original comment by baolij...@gmail.com on 19 Apr 2010 at 7:33

GoogleCodeExporter commented 8 years ago
可是我创建后访问appspot.com/api 
提示找不到页面,请问是什么原因?

Original comment by ylq...@gmail.com on 19 Apr 2010 at 7:40

GoogleCodeExporter commented 8 years ago
为什么创建后chrome打开http://ID.appspot.com/api显示无法连接?mixe
ro里API设置后
也无法刷新?

Original comment by luzirun1...@gmail.com on 9 May 2010 at 2:44

GoogleCodeExporter commented 8 years ago
无法连接的请确认是不是撞墙了。
如果不是,就等大侠的更新吧。
不过我的API仍然正常。

Original comment by hnu...@gmail.com on 9 May 2010 at 2:50

GoogleCodeExporter commented 8 years ago
great~ it works~
thx~ 

Original comment by Imo...@gmail.com on 5 Jun 2010 at 4:00

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
http://ID.appspot.com/api/
楼上说打不开的试一下这个
最后那个"/"要加上

Original comment by ancccdx...@gmail.com on 9 Jun 2010 at 11:02

GoogleCodeExporter commented 8 years ago
  Comment 8 by luzirun1987, May 09, 2010
  为什么创建后chrome打开http://ID.appspot.com/api 显示无法连接?mixero里API设置后
  也无法刷新?

末尾需要加“/”,这样才可以。
http://ID.appspot.com/api/
再试试。

Original comment by hnu...@gmail.com on 9 Jun 2010 at 11:10