




已阅读5页,还剩28页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
werkzeug.exceptions.HTTPException.wrap.<locals>newcls: 400 Bad Request: KeyError: text /Werkzeug Debugger var TRACEBACK=140258492459832, 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年尘肺医师鉴定考试(职业性尘肺病及其他呼吸系统疾病)题库及答案
- 再生物资回收挑选工岗前考核试卷及答案
- 2025年江苏省书记员招聘考试题库及答案解析
- 2025年二建管理真题及答案回忆版已出,抢先看
- (2025年)汽车驾驶员(技师)证模拟考试题(含答案)
- 上海四级试卷真题及答案
- 国开2025年《行政领导学》形考作业1-4答案
- 养老护理员中级考试题库2025年(附答案)
- 2024年河北石家庄交通投资发展集团有限责任公司招聘考试真题
- 2025年南宁产业投资集团有限责任公司人员招聘笔试备考题库及答案详解(网校专用)
- 公安援疆工作总结
- 云南昆明元朔建设发展有限公司招聘笔试题库2025
- 湖南省益阳市2026届高三9月教学质量监测数学试题(含答案)
- 第8课《网络新世界》第一课时-统编版《道德与法治》四年级上册教学课件
- 2025秋人教版美术七年级第一单元 峥嵘岁月第1课 情感表达2
- 装饰工程拆除施工方案(3篇)
- 2025至2030年中国车载摄像头行业市场调研及投资战略规划建议报告
评论
0/150
提交评论