V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
spark
V2EX  ›  Project Picky

在本地全新安装Picky 0.1.9.1,无法进入writer, 报错如下

  •  
  •   spark · 2010-08-02 15:56:04 +08:00 · 5686 次点击
    这是一个创建于 5013 天前的主题,其中的信息可能已经有所发展或是发生改变。
    <code>
    Traceback (most recent call last):
    File "C:\Program Files\Google\google_appengine\google\appengine\ext\webapp\__init__.py", line 511, in __call__
    handler.get(*groups)
    File "D:\GAE\v2ex\v2ex\writer.py", line 130, in get
    if CheckAuth(self) is False:
    File "D:\GAE\v2ex\v2ex\v2ex\picky\security\__init__.py", line 14, in CheckAuth
    if str(auth) != hashlib.sha1(SECRET + ':' + site_domain).hexdigest():
    TypeError: cannot concatenate 'str' and 'NoneType' objects
    </code>

    app.yaml 和 auth.py 都没问题...
    4 条回复    1970-01-01 08:00:00 +08:00
    Livid
        1
    Livid  
    MOD
       2010-08-02 15:57:45 +08:00
    还是再看看 auth.py 吧,里面有问题。
    spark
        2
    spark  
    OP
       2010-08-02 16:00:05 +08:00
    auth.py 我只是把.example去掉了...

    如果app id配置不变保持为picky, 那么访问正常, 只要部署为新的, 换掉id, 进writer就报错, 很奇怪...
    fineao
        3
    fineao  
       2010-08-02 18:12:55 +08:00
    你是在本地测试的么,Google App Engine Launcher 里的 Application 名称要和 app.yaml 里的一样。
    spark
        4
    spark  
    OP
       2010-08-05 16:26:29 +08:00
    什么都没动,第二天打开就好了。
    这个问题可能是在本地建立数据结构时需要时间引起的?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3922 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 04:14 · PVG 12:14 · LAX 21:14 · JFK 00:14
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.