前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Could not get any response postman报错 但是浏览器可以访问

Could not get any response postman报错 但是浏览器可以访问

作者头像
全栈程序员站长
发布2022-09-03 17:07:37
1K0
发布2022-09-03 17:07:37
举报

大家好,又见面了,我是你们的朋友全栈君。

答案在最后一张图片

案例分析

Could not get any response postman报错 但是浏览器可以访问
Could not get any response postman报错 但是浏览器可以访问

把postman报错的信息复制再这里,你去翻译一下

代码语言:javascript
复制
Could not get any response
There was an error connecting to http://118.xxx.xxx.10:11134/api-customer/terminal/user/information.
Why this might have happened:
The server couldn't send a response:
Ensure that the backend is working properly
Self-signed SSL certificates are being blocked:
Fix this by turning off 'SSL certificate verification' in Settings > General
Proxy configured incorrectly
Ensure that proxy is configured correctly in Settings > Proxy
Request timeout:
Change request timeout in Settings > General

老夫用网易有道翻译如下

代码语言:javascript
复制
没有得到任何回应
有一个错误连接到http://118.xxx.xxx.10:11134/api-customer/terminal/user/information。
原因:
服务器无法发送响应:
确保后端正常工作
自签名SSL证书被阻塞:
通过在设置> General中关闭“SSL证书验证”来修复这个问题
代理配置不正确
确保在设置>代理中正确配置了代理
请求超时:
更改>设置中的请求超时

此时按照教程和百度结果是叫你改设置

Could not get any response postman报错 但是浏览器可以访问
Could not get any response postman报错 但是浏览器可以访问
Could not get any response postman报错 但是浏览器可以访问
Could not get any response postman报错 但是浏览器可以访问
Could not get any response postman报错 但是浏览器可以访问
Could not get any response postman报错 但是浏览器可以访问

如果成功了,那就好了,如果不成功,那么是因为

原因1:头部传入了接口不需要的参数,并且body也传入了参数,如图

Could not get any response postman报错 但是浏览器可以访问
Could not get any response postman报错 但是浏览器可以访问

原因2:高频错误(输入格式不小心)

Could not get any response postman报错 但是浏览器可以访问
Could not get any response postman报错 但是浏览器可以访问
Could not get any response postman报错 但是浏览器可以访问
Could not get any response postman报错 但是浏览器可以访问

以下是热心网友遇到的问题,我在这里显示的展示出来,方便有相同问题的老铁少走弯路

Could not get any response postman报错 但是浏览器可以访问
Could not get any response postman报错 但是浏览器可以访问

当然顺便提一下:可能接口名称参数都正确,但是接口是使用的网关访问,结果postman压根没有反应,可能服务是ok的,但是网关getway挂了(针对微服务接口调试而言的)

不要偷懒,可能就是空格,大小写,甚至某个字母错了,赶紧重新添加上去,因为只有这些情况,如果还是没有解决,那么告诉我,留言,我去找postman,和它大战300回合

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/138412.html原文链接:https://javaforall.cn

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2022年5月3,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 答案在最后一张图片
相关产品与服务
SSL 证书
腾讯云 SSL 证书(SSL Certificates)为您提供 SSL 证书的申请、管理、部署等服务,为您提供一站式 HTTPS 解决方案。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档