当前位置:网站首页>当一个接口出现异常时候,你是如何分析异常的?
当一个接口出现异常时候,你是如何分析异常的?
2022-06-24 22:12:00 【双晨传奇科技(牛顿it学院)】
接口测试的过程中常见bug
常规错误,接口没实现,没按约定返回结果,边界值处理出错等;
输入异常值(空值、特殊字符、超过约定长度等),接口抛错,没做封装处理;
输入错误的参数、多输入、少输入参数,接口可能出现的错误;
安全性问题,如明文传输、返回结果含有敏感信息,没对用户身份信息做校验,没做恶意请求拦截等;
性能问题,如接口并发插入多条相同操作,响应时间过长,接口压测出现瓶颈等。
当接口出现异常时,该如何分析处理:
先抓包,用fiddler工具抓包;
或者浏览器上F12调试工具;
APP上的话,可以使用Fiddler做代理,通过手机设置代理去看请求和返回报文;
查看后端日志,如Linux系统通过xhell连上服务器,查看接口日志,查看是否有报错信息
(命令:tail -f 日志文件)
边栏推荐
- 现状分析:“一云多芯”如何推动信创项目快速部署
- June 24, 2022: golang multiple choice question, what does the following golang code output? A:1; B:3; C:4; D: Compilation failed. package main import ( “f
- Basic use of transformers Library
- 多模态情感识别_多模态融合的情感识别研究「建议收藏」
- Search two-dimensional matrix [clever use of bisection + record solution different from inserting bisection]
- mpls 笔记 part 1
- 明日考试 最后一天如何备考?二造考点攻略全整理
- Cake review fatigue in the secondary market of innovative drugs: phase III clinical success and product approval
- Full arrangement ii[duplicate removal of the same elements + standard backtracking]
- Excel Chinese character to pinyin "suggestions collection"
猜你喜欢

EasyCVR平台EHOME协议接入,视频播放出现断流是什么原因?

Abnova CSV magnetic beads description in Chinese and English
![Full arrangement ii[duplicate removal of the same elements + standard backtracking]](/img/d3/93ddb49e580be60be4f056f141b782.png)
Full arrangement ii[duplicate removal of the same elements + standard backtracking]

Fan benefits, JVM manual (including PDF)

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

内网学习笔记(5)

Q1季度逆势增长的华为笔电,正引领PC进入“智慧办公”时代

中文地址与英文地址

罗德与施瓦茨与中关村泛联院合作开展6G技术研究与早期验证

(CVPR 2020) Learning Object Bounding Boxes for 3D Instance Segmentation on Point Clouds
随机推荐
Smartctl 打开设备遇到 Permission denied 问题排查过程记录
多模态数据也能进行MAE?伯克利&谷歌提出M3AE,在图像和文本数据上进行MAE!最优掩蔽率可达75%,显著高于BERT的15%
Unity C# 网络学习(六)——FTP(一)
Ps5 connected to oppo K9 TV does not support 2160p/4k
Which account is safer and better for access letter
Search two-dimensional matrix [clever use of bisection + record solution different from inserting bisection]
泰山OFFICE技术讲座:竖排时中文标点的简单研究
Integration of metersphere open source continuous testing platform and Alibaba cloud cloud cloud efficient Devops
MeterSphere開源持續測試平臺與阿裏雲雲效DevOps的集成
Listen to the markdown file and hot update next JS page
广发期货安全吗?开户需要什么东西?
MPLS notes Part 1
非凸联合创始人李佐凡:将量化作为自己的终身事业
PS5连接OPPO K9电视不支持2160P/4K
poj3669 Meteor Shower(bfs预处理)
Fatigue liée à l'examen du marché secondaire des médicaments innovants: succès clinique de la phase III et approbation du produit
百度语音合成语音文件并在网站中展示
Q1季度逆势增长的华为笔电,正引领PC进入“智慧办公”时代
Android物联网应用程序开发(智慧园区)—— 设置传感器阈值对话框界面
Multimodal emotion recognition_ Research on emotion recognition based on multimodal fusion