V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
spark

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

  •  
  •   spark · Aug 2, 2010 · 8346 views
    This topic created in 5752 days ago, the information mentioned may be changed or developed.
    <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 replies    1970-01-01 08:00:00 +08:00
    Livid
        1
    Livid  
    MOD
    PRO
       Aug 2, 2010
    还是再看看 auth.py 吧,里面有问题。
    spark
        2
    spark  
    OP
       Aug 2, 2010
    auth.py 我只是把.example去掉了...

    如果app id配置不变保持为picky, 那么访问正常, 只要部署为新的, 换掉id, 进writer就报错, 很奇怪...
    fineao
        3
    fineao  
       Aug 2, 2010
    你是在本地测试的么,Google App Engine Launcher 里的 Application 名称要和 app.yaml 里的一样。
    spark
        4
    spark  
    OP
       Aug 5, 2010
    什么都没动,第二天打开就好了。
    这个问题可能是在本地建立数据结构时需要时间引起的?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2462 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 15:21 · PVG 23:21 · LAX 08:21 · JFK 11:21
    ♥ Do have faith in what you're doing.