1
Showfom 2013-08-02 10:43:00 +08:00 1
第一次点进去的时候出错了
Traceback (most recent call last): File "/usr/local/sae/python/lib/python2.7/site-packages/sae/__init__.py", line 18, in new_app return app(environ, start_response) File "/usr/local/sae/python/lib/python2.7/site-packages/flask/app.py", line 1306, in __call__ return self.wsgi_app(environ, start_response) File "/usr/local/sae/python/lib/python2.7/site-packages/flask/app.py", line 1294, in wsgi_app response = self.make_response(self.handle_exception(e)) File "/usr/local/sae/python/lib/python2.7/site-packages/flask/app.py", line 1292, in wsgi_app response = self.full_dispatch_request() File "/usr/local/sae/python/lib/python2.7/site-packages/flask/app.py", line 1062, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/sae/python/lib/python2.7/site-packages/flask/app.py", line 1060, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/sae/python/lib/python2.7/site-packages/flask/app.py", line 1047, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/data1/www/htdocs/634/rebang/1/chartnet/view/views.py", line 190, in detailpost _article = operatorDB.detail_post_by_id(post_id) File "/data1/www/htdocs/634/rebang/1/chartnet/view/models.py", line 330, in detail_post_by_id article = Article.query.filter_by(_id=_id).first() File "/usr/local/sae/python/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 1963, in first ret = list(self[0:1]) File "/usr/local/sae/python/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 1857, in __getitem__ return list(res) File "/usr/local/sae/python/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2032, in __iter__ return self._execute_and_instances(context) File "/usr/local/sae/python/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2045, in _execute_and_instances close_with_result=True) File "/usr/local/sae/python/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2036, in _connection_from_session **kw) File "/usr/local/sae/python/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 719, in connection close_with_result=close_with_result) File "/usr/local/sae/python/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 723, in _connection_for_bind return self.transaction._connection_for_bind(engine) File "/usr/local/sae/python/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 249, in _connection_for_bind self._assert_is_active() File "/usr/local/sae/python/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 177, in _assert_is_active "This Session's transaction has been rolled back " InvalidRequestError: This Session's transaction has been rolled back by a nested rollback() call. To begin a new transaction, issue Session.rollback() first. |
2
catsky OP 多谢反馈,可惜我这里没法复现诶,还有童鞋碰到这样的问题吗
我查查ORM层的代码 |
3
Spider 2013-08-02 11:23:40 +08:00
同样的错误
|
4
icesnow 2013-08-02 11:26:38 +08:00
也是这个错误
|
5
ivanlw 2013-08-02 11:32:53 +08:00
同样错误
|
6
tension 2013-08-02 11:39:56 +08:00 1
第一次点击进去也很多错误!
|
7
catsky OP debug了下,发现跟多说api的数据存储有关。先做了一个workaround,大家试试还有没有问题,偶晚上回去再好好看看:)
|
8
firsthym 2013-08-03 12:12:10 +08:00
蛮不错的
|
9
iZr 2013-08-03 21:49:48 +08:00
我没有,挺好的.
|
10
Kenny 2013-08-04 03:41:00 +08:00 via iPhone
想肉翻,关注一下
|
11
catsky OP @Kenny 多谢, 换了玉米 http://australian.sinaapp.com/, 欢迎长期关注,嘿嘿
|
12
catsky OP http://australian.sinaapp.com 上面那个链接多了个逗号
|
13
catsky OP 今天测试微信自动回复功能,本来一直正常,突然就收不到回复信息了!刚才折腾了好一会,终于找到问题了,其中有一篇文章含有敏感词,导致整条信息都被过滤了。看来要找一张敏感词表,发送微信之前先过滤一遍,否则肯定悲剧。
哪位v友有整理过这种表吗?谢 |
15
catsky OP @sugarit 是的,刚才程序自动回复的时候,包含一篇文章,其内容含有“大*纪*元”这三个字,client端无论如何都无法收到消息。当过滤掉这三个字后,就恢复正常了。
|
17
catsky OP |
18
likai 2013-08-07 21:52:13 +08:00 1
@catsky
出错了 Traceback (most recent call last): File "/data1/www/htdocs/947/goodbest/1/index.wsgi", line 3, in <module> from chartnet import app File "/data1/www/htdocs/947/goodbest/1/chartnet/__init__.py", line 21, in <module> import view File "/data1/www/htdocs/947/goodbest/1/chartnet/view/__init__.py", line 2, in <module> import views,models File "/data1/www/htdocs/947/goodbest/1/chartnet/view/views.py", line 10, in <module> from models import operatorDB File "/data1/www/htdocs/947/goodbest/1/chartnet/view/models.py", line 197 <<<<<<< HEAD ^ IndentationError: expected an indented block |
19
catsky OP |
20
xLzgkddTywk9ALsX 2013-08-07 23:28:35 +08:00
明天再来看看
|
21
ming 2013-08-08 03:00:29 +08:00
36kr这么难看的风格有什么好抄的 相当疑惑
|
22
GTim 2016-07-12 13:27:51 +08:00
超出配额了,明天来看?
|