线上Request method ‘GET‘ not supported 问题
线上出现问题,报错Request method ‘GET‘ not supported。
请求方为SDK,服务方为后台服务器
报错信息截图如下:
1. 确认服务方接口为POST接口,怀疑SDK方使用方式错误。
与调用方确实使用方式为POST,非GET。
2. 使用postman测试,url为报错url,调用方式为POST,响应正常。
网上搜索,怀疑与打开http跳转https有关。
3. 使用postman测试,url修改为http开头,调用方式为POST,错误重现。
4. 找运维同学关闭http自动跳转https开关(阿里云的解析服务,是个坑),服务恢复。
总结:日志显示https地址实际为跳转后地址,所以第一次post测试没有复现。sdk调用实际使用http方式,导致服务拒绝。其实还是阿里云服务跳转逻辑的问题,运维反馈无法修改,阿里云不支持post重定向。
参考文章:
nginx配置导致 Request method ‘GET‘ not supported 错误_Streameryears的博客-CSDN博客_nginx request_method
线上Request method ‘GET‘ not supported 问题相关推荐
- postman发送post请求,服务器日志确保GET请求错误“ PageNotFound:208 Request method ‘GET‘ not supported”
一.事件经过 这段时间在配置菲律宾项目上k8s,今天在测试生产环境时,报了一个错: PageNotFound:208 Request method 'GET' not supported.意思是:请求 ...
- 【SpringBoot的坑】Restful请求报错Request method 'POST' not supported,HiddenHttpMethodFilter无法将POST转换为PUT原因分析
直接上结论: 因为 SpringBoot 版本原因,在我目前使用的 2.2.4 版本中,需要在springapplication.xml文件中 添加配置: spring.mvc.hiddenmetho ...
- 我遇到的问题之request method ‘post’ not supported
文章目录 我遇到的问题之request method 'post' not supported 背景 尝试解决 源码大法好 总结 我遇到的问题之request method 'post' not su ...
- 解决Request method 'POST' not supported问题
问题: login.html中表单提交方式为POST. 用户登录Controller层直接跳转login.html,可以跳转,但若登录用户名或密码错误再次跳转login.html,则报错:Reques ...
- org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'PUT' not supported
错误描述: org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'PUT' not suppo ...
- Request method 'GET' not supported解决方式
There was an unexpected error (type=Method Not Allowed, status=405). Request method 'GET' not suppor ...
- security工作笔记006---oauth2(spring security)报错method_not_allowed(Request method 'GET' not supported)解决
JAVA技术交流QQ群:170933152 最近做智慧城市项目,太恶心了...各种不会,个人负责权限验证中心服务,...唉,慢慢研究吧.. 报错信息 <MethodNotAllowed> ...
- springmvc:405 request method post not supported
$.ajax({type: "POST",url: "../userKvtableAll/bindOpt",data: "id="+id,d ...
- springboot项目中的 Request method 'POST' not supported问题
我碰到问题的情况 前端点击发送验证码按钮,IDEA控制台出现 WARN 1776 --- [nio-8888-exec-2] .w.s.m.s.DefaultHandlerExceptionResol ...
- 警告: Request method ‘POST‘ not supported。的原因之一——空格毁一生
操作中突然报 Request method 'POST' not supported 错 检查ip.端口.请求地址."传的参数".都正确.甚至在其他地方都可以正常调成功 仔细检查后 ...
最新文章
- VC维的来龙去脉(转)
- Swift标准库源码阅读笔记 - Array和ContiguousArray
- 转载一篇NAT实验,备忘
- Mantis安装过程笔记
- Maven的Archetype简介
- 如何将Chrome本地安装的扩展应用导出到本地
- 大话oraclerac集群、高可用性、备份与恢复_Oracle RAC结构
- phpexcel 获取工作簿名称_工作分享 | Excel快速汇总考勤
- octave与matlab语法,Octave与Matlab
- Spring JDBC 框架中, 绑定 SQL 参数的另一种选择:具名参数(named parameter)
- 浙大 博士 计算机视觉,95后浙大博士生开发全新视图合成系统Neural Body,稀疏视角输入即可合成360°人体视图|专访...
- Tomcat9一介绍与部署
- iptable 帮助
- java base64图片计算图片大小
- android 判断是否安装百度地图,判断手机是否安装高德/百度地图
- SAN存储和服务器虚拟化安装方案,ESX/ESXi虚拟化系统与SAN存储结构结合的配置安装流程...
- vue2 - 基于Export2Excel.js导出Excel案例(js-xlsx插件二次封装使用)
- 上海住房公积金的提取条件
- esxi迁移linux报错device eth0 does not seem tobe present,delaying
- ansys添加力矩_ANSYS转矩施加三种方法