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

时间:2015-01-06 11:25:05   收藏:0   阅读:479

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

如果显示这个,查看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了

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!