线上出现问题,报错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 问题相关推荐

  1. postman发送post请求,服务器日志确保GET请求错误“ PageNotFound:208 Request method ‘GET‘ not supported”

    一.事件经过 这段时间在配置菲律宾项目上k8s,今天在测试生产环境时,报了一个错: PageNotFound:208 Request method 'GET' not supported.意思是:请求 ...

  2. 【SpringBoot的坑】Restful请求报错Request method 'POST' not supported,HiddenHttpMethodFilter无法将POST转换为PUT原因分析

    直接上结论: 因为 SpringBoot 版本原因,在我目前使用的 2.2.4 版本中,需要在springapplication.xml文件中 添加配置: spring.mvc.hiddenmetho ...

  3. 我遇到的问题之request method ‘post’ not supported

    文章目录 我遇到的问题之request method 'post' not supported 背景 尝试解决 源码大法好 总结 我遇到的问题之request method 'post' not su ...

  4. 解决Request method 'POST' not supported问题

    问题: login.html中表单提交方式为POST. 用户登录Controller层直接跳转login.html,可以跳转,但若登录用户名或密码错误再次跳转login.html,则报错:Reques ...

  5. org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'PUT' not supported

    错误描述: org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'PUT' not suppo ...

  6. Request method 'GET' not supported解决方式

    There was an unexpected error (type=Method Not Allowed, status=405). Request method 'GET' not suppor ...

  7. security工作笔记006---oauth2(spring security)报错method_not_allowed(Request method 'GET' not supported)解决

    JAVA技术交流QQ群:170933152 最近做智慧城市项目,太恶心了...各种不会,个人负责权限验证中心服务,...唉,慢慢研究吧.. 报错信息 <MethodNotAllowed> ...

  8. springmvc:405 request method post not supported

    $.ajax({type: "POST",url: "../userKvtableAll/bindOpt",data: "id="+id,d ...

  9. springboot项目中的 Request method 'POST' not supported问题

    我碰到问题的情况 前端点击发送验证码按钮,IDEA控制台出现 WARN 1776 --- [nio-8888-exec-2] .w.s.m.s.DefaultHandlerExceptionResol ...

  10. 警告: Request method ‘POST‘ not supported。的原因之一——空格毁一生

    操作中突然报 Request method 'POST' not supported 错 检查ip.端口.请求地址."传的参数".都正确.甚至在其他地方都可以正常调成功 仔细检查后 ...

最新文章

  1. VC维的来龙去脉(转)
  2. Swift标准库源码阅读笔记 - Array和ContiguousArray
  3. 转载一篇NAT实验,备忘
  4. Mantis安装过程笔记
  5. Maven的Archetype简介
  6. 如何将Chrome本地安装的扩展应用导出到本地
  7. 大话oraclerac集群、高可用性、备份与恢复_Oracle RAC结构
  8. phpexcel 获取工作簿名称_工作分享 | Excel快速汇总考勤
  9. octave与matlab语法,Octave与Matlab
  10. Spring JDBC 框架中, 绑定 SQL 参数的另一种选择:具名参数(named parameter)
  11. 浙大 博士 计算机视觉,95后浙大博士生开发全新视图合成系统Neural Body,稀疏视角输入即可合成360°人体视图|专访...
  12. Tomcat9一介绍与部署
  13. iptable 帮助
  14. java base64图片计算图片大小
  15. android 判断是否安装百度地图,判断手机是否安装高德/百度地图
  16. SAN存储和服务器虚拟化安装方案,ESX/ESXi虚拟化系统与SAN存储结构结合的配置安装流程...
  17. vue2 - 基于Export2Excel.js导出Excel案例(js-xlsx插件二次封装使用)
  18. 上海住房公积金的提取条件
  19. esxi迁移linux报错device eth0 does not seem tobe present,delaying
  20. ansys添加力矩_ANSYS转矩施加三种方法

热门文章

  1. python爬虫爬取图片详解_Python使用爬虫爬取静态网页图片的方法详解
  2. html将图片保存到文件夹,怎么把一张网页上的全部图片都保存到文件夹里
  3. 股票交易接口JavaScript开发
  4. MyGUI_Orge官网教程_5.窗口部件控制
  5. Pegasus 在 Apache Conf 上的分享
  6. Cyclical Quest CF235C
  7. 在线安装提示失败显示系统镜像MD5不正确怎么办
  8. Elasticsearch入门登录篇
  9. python爬取LOL皮肤
  10. css/js解决 页面多次点击时出现部分蓝色