版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、 werkzeug.exceptions.HTTPException.wrap.<locals>newcls: 400 Bad Request: KeyError: text /Werkzeug Debugger var TRACEBACK=140216382585264, CONSOLE_MODE=false, EVALEX=true, EVALEX_TRUSTED=false, SECRET=0ahkFwJ2JjkWA7JpnW06; werkzeug.exceptions.BadRequestKeyError werkzeug.exceptions.HTTPException
2、.wrap.<locals>newcls: 400 Bad Request: KeyError: textTraceback (most recent call last) File /root/anaconda3/lib/python3.7/site-packages/flask/app.py, line 2309, in _call_ def _call_(self, environ, start_response): """The WSGI server calls the Flask application object as the WSGI
3、 application. This calls :meth:wsgi_app which can be wrapped to applying middleware.""" return self.wsgi_app(environ, start_response) def _repr_(self): return <%s %r> % ( self._class_._name_, , File /root/anaconda3/lib/python3.7/site-packages/flask/app.py, line 2295, in
4、 wsgi_app try: ctx.push() response=self.full_dispatch_request() except Exception as e: error=e response=self.handle_exception(e) except: error=sys.exc_info()1 raise return response(environ, start_response) finally: File /root/anaconda3/lib/python3.7/site-packages/flask_cors/extension.py, line 161, i
5、n wrapped_function # Wrap exception handlers with cross_origin # These error handlers will still respect the behavior of the route if options.get(intercept_exceptions, True): def _after_request_decorator(f): def wrapped_function(*args, *kwargs): return cors_after_request(app.make_response(f(*args, *
6、kwargs) return wrapped_function if hasattr(app, handle_exception): app.handle_exception=_after_request_decorator( app.handle_exception) File /root/anaconda3/lib/python3.7/site-packages/flask/app.py, line 1741, in handle_exception # if we want to repropagate the exception, we can attempt to # raise i
7、t with the whole traceback in case we can do that # (the function was actually called from the except part) # otherwise, we just raise the error again if exc_value is e: reraise(exc_type, exc_value, tb) else: raise e self.log_exception(exc_type, exc_value, tb) if handler is None: File /root/anaconda
8、3/lib/python3.7/site-packages/flask/_compat.py, line 35, in reraise from io import StringIO def reraise(tp, value, tb=None): if value._traceback_ is not tb: raise value.with_traceback(tb) raise value implements_to_string=_identity else: text_type=unicode File /root/anaconda3/lib/python3.7/site-packa
9、ges/flask/app.py, line 2292, in wsgi_app ctx=self.request_context(environ) error=None try: try: ctx.push() response=self.full_dispatch_request() except Exception as e: error=e response=self.handle_exception(e) except: error=sys.exc_info()1 File /root/anaconda3/lib/python3.7/site-packages/flask/app.p
10、y, line 1815, in full_dispatch_request request_started.send(self) rv=self.preprocess_request() if rv is None: rv=self.dispatch_request() except Exception as e: rv=self.handle_user_exception(e) return self.finalize_request(rv) def finalize_request(self, rv, from_error_handler=False): ""&quo
11、t;Given the return value from a view function this finalizes the request by converting it into a response and invoking the File /root/anaconda3/lib/python3.7/site-packages/flask_cors/extension.py, line 161, in wrapped_function # Wrap exception handlers with cross_origin # These error handlers will s
12、till respect the behavior of the route if options.get(intercept_exceptions, True): def _after_request_decorator(f): def wrapped_function(*args, *kwargs): return cors_after_request(app.make_response(f(*args, *kwargs) return wrapped_function if hasattr(app, handle_exception): app.handle_exception=_aft
13、er_request_decorator( app.handle_exception) File /root/anaconda3/lib/python3.7/site-packages/flask/app.py, line 1718, in handle_user_exception return self.handle_http_exception(e) handler=self._find_error_handler(e) if handler is None: reraise(exc_type, exc_value, tb) return handler(e) def handle_ex
14、ception(self, e): """Default exception handling that kicks in when an exception occurs that is not caught. In debug mode the exception will File /root/anaconda3/lib/python3.7/site-packages/flask/_compat.py, line 35, in reraise from io import StringIO def reraise(tp, value, tb=None): i
15、f value._traceback_ is not tb: raise value.with_traceback(tb) raise value implements_to_string=_identity else: text_type=unicode File /root/anaconda3/lib/python3.7/site-packages/flask/app.py, line 1813, in full_dispatch_request self.try_trigger_before_first_request_functions() try: request_started.s
16、end(self) rv=self.preprocess_request() if rv is None: rv=self.dispatch_request() except Exception as e: rv=self.handle_user_exception(e) return self.finalize_request(rv) def finalize_request(self, rv, from_error_handler=False): File /root/anaconda3/lib/python3.7/site-packages/flask/app.py, line 1799
17、, in dispatch_request # request came with the OPTIONS method, reply automatically if getattr(rule, provide_automatic_options, False) and req.method=OPTIONS: return self.make_default_options_response() # otherwise dispatch to the handler for that endpoint return self.view_functionsrule.endpoint(*req.
18、view_args) def full_dispatch_request(self): """Dispatches the request and on top of that performs request pre and postprocessing as well as HTTP exception catching and error handling. File /home/google/flask_main.py, line 46, in google_translate if request.method=GET: text=request.args.get("text") src=request.args.get("src") dst=request.args.get("dst") elif request.method=POST:
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 村医考勤奖惩制度
- 2026年学校卫生保健工作情况的自查报告
- 四川省绵阳市事业单位2026年上半年公开考试招聘工作人员(279人)笔试模拟试题及答案解析
- 2026春季湖南长沙市一中城南中学编外合同制教职工招聘1人笔试备考试题及答案解析
- 2026上海金山区卫生健康系统部分事业单位招聘卫生专业技术人员112人笔试备考试题及答案解析
- 2026年上半年四川事业单位统考四川省通信管理局招聘9人笔试备考试题及答案解析
- 2026贵州装备制造职业学院高层次人才招聘22人笔试备考题库及答案解析
- 2026南昌航空大学高层次人才团队招聘装配与测试工程师笔试备考题库及答案解析
- 2026云南银卫达保安服务有限公司招聘1人笔试备考试题及答案解析
- 中国久远CAE软件事业部2026届春季招聘笔试备考试题及答案解析
- 2026年甘肃事业单位联考笔试易考易错模拟试题(共500题)试卷后附参考答案
- 《化工HSE与清洁生产》课件-项目6 危险化学品
- 2026年六安职业技术学院单招职业适应性考试题库含答案详解(考试直接用)
- 运输企业物流标准化管理制度
- 2026年《禁毒法》知识测试题及答案(全优)
- 2026陕煤集团榆林化学有限责任公司招聘(162人)笔试模拟试题及答案解析
- 人工智能与文学创作的未来
- 【544】人际心理治疗(IPT)
- 2026中国藏语系高级佛学院招聘应届高校毕业生6人考试备考试题及答案解析
- 2026年春季学期统编版三年级下册语文教学计划(含进度表)(2024新教材)
- 2023年边缘计算相关项目实施方案
评论
0/150
提交评论