SAE上用Python开发微信接口用浏览器请求显示internal server error.

处理这个磨蹭了很久,在网上也没有找到解释,所以写下这篇随笔,希望对后来人有所帮助;

如果显示这个,查看SAE的日志,会发现如下:

 - [2015/01/06 05:33:02] - Traceback (most recent call last):
  File "/usr/local/sae/python/lib/python2.7/site-packages/web/application.py", line 237, in process
    return self.handle()
  File "/usr/local/sae/python/lib/python2.7/site-packages/web/application.py", line 228, in handle
    return self._delegate(fn, self.fvars, args)
  File "/usr/local/sae/python/lib/python2.7/site-packages/web/application.py", line 409, in _delegate
    return handle_class(cls)
  File "/usr/local/sae/python/lib/python2.7/site-packages/web/application.py", line 385, in handle_class
    return tocall(*args)
  File "/data1/www/htdocs/987/*******/1/WeixinInterface.py", line 19, in GET
    signature = data.signature
  File "/usr/local/sae/python/lib/python2.7/site-packages/web/utils.py", line 76, in __getattr__
    raise AttributeError, k
AttributeError: 'signature' yq26 

其实你的SAE端已经没有问题了,现在需要去微信端验证token就ok了

 

posted on 2015-01-06 10:32  frikyskice  阅读(944)  评论(0编辑  收藏  举报

导航