Closed dongchao-cn closed 10 years ago
[E 131113 23:38:44 web:1228] Uncaught exception DELETE /api/user/current/favour/52775d30ce03bd036414c71b/ (127.0.0.1) HTTPRequest(protocol='http', host='doufm.info', method='DELETE', uri='/api/user/current/favour/52775d30ce03bd036414c71b/', version='HTTP/1.0', remoteip='127.0.0.1', headers={'Origin': 'http://doufm.info', 'Accept-Language': 'zh-CN,zh;q=0.8,en-US;q=0.6,en;q=0.4', 'Accept-Encoding': 'gzip,deflate,sdch', 'X-Scheme': 'http', 'Host': 'doufm.info', 'Accept': 'application/json, text/javascript, /_; q=0.01', 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36', 'Connection': 'close', 'X-Requested-With': 'XMLHttpRequest', 'Referer': 'http://doufm.info/', 'X-Real-Ip': '10.170.57.145', 'Cookie': '_xsrf=499c63f416d24875abc8b2a8cafed501; user=6YeR6bKo6bG8|1384345944|a14ef6f60f94cf58de88d34798fa6972bd3d4060; _ga=GA1.2.487262127.1384345844'}) Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1141, in _when_complete callback() File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1162, in _execute_method self._when_complete(method(_self.path_args, _self.path_kwargs), File "/home/dc/miao_fm/Master/user/view.py", line 162, in delete user.remove_favour(music_id) File "/home/dc/miao_fm/Master/user/model.py", line 77, in remove_favour self.user_favour.remove(music_id) File "/usr/local/lib/python2.7/dist-packages/mongoengine/base/datastructures.py", line 146, in remove return super(BaseList, self).remove(_args, _kwargs) ValueError: list.remove(x): x not in list
[E 131113 23:38:44 web:1228] Uncaught exception DELETE /api/user/current/favour/52775d30ce03bd036414c71b/ (127.0.0.1) HTTPRequest(protocol='http', host='doufm.info', method='DELETE', uri='/api/user/current/favour/52775d30ce03bd036414c71b/', version='HTTP/1.0', remoteip='127.0.0.1', headers={'Origin': 'http://doufm.info', 'Accept-Language': 'zh-CN,zh;q=0.8,en-US;q=0.6,en;q=0.4', 'Accept-Encoding': 'gzip,deflate,sdch', 'X-Scheme': 'http', 'Host': 'doufm.info', 'Accept': 'application/json, text/javascript, /_; q=0.01', 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36', 'Connection': 'close', 'X-Requested-With': 'XMLHttpRequest', 'Referer': 'http://doufm.info/', 'X-Real-Ip': '10.170.57.145', 'Cookie': '_xsrf=499c63f416d24875abc8b2a8cafed501; user=6YeR6bKo6bG8|1384345944|a14ef6f60f94cf58de88d34798fa6972bd3d4060; _ga=GA1.2.487262127.1384345844'}) Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1141, in _when_complete callback() File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1162, in _execute_method self._when_complete(method(_self.path_args, _self.path_kwargs), File "/home/dc/miao_fm/Master/user/view.py", line 162, in delete user.remove_favour(music_id) File "/home/dc/miao_fm/Master/user/model.py", line 77, in remove_favour self.user_favour.remove(music_id) File "/usr/local/lib/python2.7/dist-packages/mongoengine/base/datastructures.py", line 146, in remove return super(BaseList, self).remove(_args, _kwargs) ValueError: list.remove(x): x not in list