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了

 

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

上一篇:【新手实战】微信广告投放排期系统终于搞掂


下一篇:C#开发微信门户及应用(21)-微信企业号的消息和事件的接收处理及解密