




已阅读5页,还剩29页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
werkzeug.exceptions.HTTPException.wrap.<locals>newcls: 400 Bad Request: KeyError: text /Werkzeug Debugger var TRACEBACK=140258257812336, CONSOLE_MODE=false, EVALEX=true, EVALEX_TRUSTED=false, SECRET=yqfTpa0Sxt0TCyiyAopL; werkzeug.exceptions.BadRequestKeyError werkzeug.exceptions.HTTPException.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 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 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, in 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, *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 it 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/anaconda3/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-packages/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.py, 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): """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 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, *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 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_exception(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): 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-packages/flask/app.py, line 1813, in full_dispatch_request self.try_trigger_before_first_request_functions() try: 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): File /root/anaconda3/lib/python3.7/site-packages/flask/app.py, line 1799, 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.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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 青岛版(六三制)数学四年级上册第六、七单元综合素质达标试卷(含解析)
- 2025年公需科考试试题(含答案)
- 2025年秋季新学期第一次班主任工作培训会校长讲话:凝心抓班级管理携手促育人实效
- 2025年高校大学生群体常见诈骗手法测试题(附答案)
- 2025年高考政治时政热点题及答案
- 长沙民政学院试题及答案
- 香港雅思考试题库及答案
- 宇宙英语试题及答案
- 宗教与教育领域-洞察及研究
- 中介合作机构管理办法
- 公路声屏障安装施工合同
- T/CECS 10400-2024固废基胶凝材料
- 劳动纪律管理培训
- 《文字之旅》教学课件-2024-2025学年苏少版(2024)初中美术七年级上册
- 《胰高糖素样肽-1受体激动剂联合胰岛素治疗2型糖尿病专家共识(2025版)》解读课件
- 精酿啤酒介绍
- 2023年护理质控工作总结
- 大学生创新创业基础(大赛案例版)课件 第12章 大学生创新创业大赛
- GB/T 1040.1-2025塑料拉伸性能的测定第1部分:总则
- 河北版初中《信息技术》第二册全册
- 电竞青训合同协议
评论
0/150
提交评论