当前位置:网站首页>当一个接口出现异常时候,你是如何分析异常的?
当一个接口出现异常时候,你是如何分析异常的?
2022-06-24 22:12:00 【双晨传奇科技(牛顿it学院)】
接口测试的过程中常见bug
常规错误,接口没实现,没按约定返回结果,边界值处理出错等;
输入异常值(空值、特殊字符、超过约定长度等),接口抛错,没做封装处理;
输入错误的参数、多输入、少输入参数,接口可能出现的错误;
安全性问题,如明文传输、返回结果含有敏感信息,没对用户身份信息做校验,没做恶意请求拦截等;
性能问题,如接口并发插入多条相同操作,响应时间过长,接口压测出现瓶颈等。
当接口出现异常时,该如何分析处理:
先抓包,用fiddler工具抓包;
或者浏览器上F12调试工具;
APP上的话,可以使用Fiddler做代理,通过手机设置代理去看请求和返回报文;
查看后端日志,如Linux系统通过xhell连上服务器,查看接口日志,查看是否有报错信息
(命令:tail -f 日志文件)
边栏推荐
- 谈谈飞书对开发工作的优势 | 社区征文
- php中preg_replace如何替换变量数据
- 百度语音合成语音文件并在网站中展示
- FTP协议讲解
- AssertionError: CUDA unavailable, invalid device 0 requested
- MeterSphere開源持續測試平臺與阿裏雲雲效DevOps的集成
- linux上查看mysql的密码_Linux下MySQL忘记密码「建议收藏」
- How to prepare for the last day of tomorrow's exam? Complete compilation of the introduction to the second building test site
- sql 聚合函数对 null 的处理[通俗易懂]
- write a number of lines to a new file in vim
猜你喜欢
![Search two-dimensional matrix [clever use of bisection + record solution different from inserting bisection]](/img/c9/afc03afd477bbfdd3c0dc54bacfd2d.png)
Search two-dimensional matrix [clever use of bisection + record solution different from inserting bisection]

Numerical scheme simulation of forward stochastic differential equations with Markov Switching

非凸联合创始人李佐凡:将量化作为自己的终身事业

Google browser console F12 how to set the Chinese / English switching method, we must see the last!!!

创新药二级市场审饼疲劳:三期临床成功、产品获批也不管用了

ICML2022 | 用神经控制微分方程建立反事实结果的连续时间模型

百度语音合成语音文件并在网站中展示

内网学习笔记(5)

Fake wireless speakers in stores? Sony responded: the product has reserved a wired connection interface, which can be used in complex scenarios

如何通过EasyCVR接口监测日志观察平台拉流情况?
随机推荐
你知道你的ABC吗(春季每日一题 1)
Numerical scheme simulation of forward stochastic differential equations with Markov Switching
Abnova BSG monoclonal antibody description in Chinese and English
創新藥二級市場審餅疲勞:三期臨床成功、產品獲批也不管用了
O (log (min (m, n))
js数组对象转对象
An Chaoyun: "one cloud with multiple cores" supports the implementation of the national information innovation government cloud
Unity C # e-learning (VI) -- FTP (II)
Basic layout -qhboxlayout class, qvboxlayout class, qgridlayout class
(CVPR 2020) Learning Object Bounding Boxes for 3D Instance Segmentation on Point Clouds
内网学习笔记(6)
Experiment 5 8254 timing / counter application experiment [microcomputer principle] [experiment]
Specific list of regular and safe domestic stock trading account opening
Multimodal emotion recognition_ Research on emotion recognition based on multimodal fusion
How to prepare for the last day of tomorrow's exam? Complete compilation of the introduction to the second building test site
非凸联合创始人李佐凡:将量化作为自己的终身事业
RedisTemplate操作Redis,这一篇文章就够了(一)[通俗易懂]
Search two-dimensional matrix [clever use of bisection + record solution different from inserting bisection]
Redis basic commands and types
AssertionError: CUDA unavailable, invalid device 0 requested