首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
V2EX
›
反馈
清空 cookie 回复主题会产生一个小 bug
pimin
·
2014-10-15 13:06:51 +08:00
· 2653 次点击
这是一个创建于 3489 天前的主题,其中的信息可能已经有所发展或是发生改变。
对别的网站测试的时候情况了cookies,切换到v2ex的帖子忘记了,直接点了回复,结果就报错了
建议增加验证,虽然这种情况应该非常非常少。
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1346, in _when_complete
callback()
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1367, in _execute_method
self._when_complete(method(*self.path_args, **self.path_kwargs),
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 2522, in wrapper
raise HTTPError(403)
HTTPError: HTTP 403: Forbidden
另外今天多次遇到:
Access Denied
Please retry after 48505 seconds.
Cost: 8ms
Target: 221.178.189.236
不知道是什么原因
file
line
V2EX
4 条回复
1
pimin
OP
2014-10-15 13:14:59 +08:00
@
Livid
2
crysislinux
2014-10-15 14:22:34 +08:00
有什么问题么,没登陆没权限确实应该返回403啊
3
pimin
OP
2014-10-15 14:27:10 +08:00
1
@
crysislinux
难道不应该做些处理直接提示用户重新登陆么?
难道都是把错误信息打印给访问者的?
4
crysislinux
2014-10-15 20:29:04 +08:00
@
pimin
这个应该是直接抛出了这个异常。。我以为是自己用python写的登陆呢,才看出来是v2ex自己的代码报的错。。
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
我们的愿景
·
实用小工具
·
2396 人在线
最高记录 6543
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 30ms ·
UTC 07:37
·
PVG 15:37
·
LAX 00:37
·
JFK 03:37
Developed with
CodeLauncher
♥ Do have faith in what you're doing.