当前位置:网站首页>webFlux 中使用 openFeign 实现远程调用遇到的问题
webFlux 中使用 openFeign 实现远程调用遇到的问题
2022-07-22 09:21:00 【单手入天象】
先沾上一段报错的控制台信息:
feign.FeignException$MethodNotAllowed: status 405 reading UserFeignService#getByUserName(String)
at feign.FeignException.clientErrorStatus(FeignException.java:167) ~[feign-core-10.4.0.jar:na]
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Error has been observed at the following site(s):
|_ checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain]
|_ checkpoint ⇢ HTTP GET "/getByUserName?username=liqiye" [ExceptionHandlingWebHandler]
Stack trace:
at feign.FeignException.clientErrorStatus(FeignException.java:167) ~[feign-core-10.4.0.jar:na]
at feign.FeignException.errorStatus(FeignException.java:141) ~[feign-core-10.4.0.jar:na]
at feign.FeignException.errorStatus(FeignException.java:133) ~[feign-core-10.4.0.jar:na]
at feign.codec.ErrorDecoder$Default.decode(ErrorDecoder.java:92) ~[feign-core-10.4.0.jar:na]
at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:151) ~[feign-core-10.4.0.jar:na]
at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:80) ~[feign-core-10.4.0.jar:na]
at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:103) ~[feign-core-10.4.0.jar:na]
at com.sun.proxy.$Proxy146.getByUserName(Unknown Source) ~[na:na]
at com.liqiye.springcloud.controller.Controller.hello(Controller.java:29) ~[classes/:na]
边栏推荐
- Method of getting node binding data data index by applet
- 06.里氏替换原则(Liskov Substitution Principle,LSP)
- Alibaba's previous SMS service is no longer available
- PTA search tree judgment
- AMH multiple MySQL versions coexist?
- ECSHOP prompts "the template file themesmobile/mo_paleng_mobile/index.dwt cannot be modified"?
- 01.开闭原则 Open-Closed Principle
- Go language learning: go language journey (III)
- PAT乙级1010一元多项式求导(题意理解)
- How PHP prevents CSRF attacks
猜你喜欢
PTA 6-11 求自定类型元素序列的中位数 (25 分)
Flink学习笔记(六)Flink的时间和窗口
bjyx
[Nordic] nrf52810 OTA upgrade (III) – DFU theoretical analysis
PTA 基础题7-28猴子选大王(简单方法)
06.里氏替换原则(Liskov Substitution Principle,LSP)
TCP and UDP, three handshakes and four waves
04.接口隔离原则(Interface Segregation Principle)
Leetcode 304. two dimensional area and retrieval - matrix immutable
VLFeat、pydot配置
随机推荐
sql 语法中 join 的所有用法总结(简单例子)
Qt | boîtes de dialogue modales et non modales qdialog
Summary 20220120
LeetCode 693. 交替位二进制数
Leetcode 2028. find out the missing observation data
Summary of various materials - Network
Leetcode 653. sum of two IV - input BST
6-2-depth first search underground maze exploration (30 points)
Wechat official account web page authorization ----- redirect_ The URI domain name is inconsistent with the background configuration, and the error code is 10003
LeetCode 105. 从前序与中序遍历序列构造二叉树
Go language learning: go language journey - exercise questions and reference answers
PTA习题8-6 删除字符
Summary 20220211
PTA基础题 7-23 币值转换 (20 分) (属实恶心)
Summary 20220121
Leetcode 105. constructing binary trees from preorder and inorder traversal sequences
LeetCode: 185. 部门工资前三高的所有员工
Qt | 模态对话框和非模态对话框 QDialog
Flink学习笔记(七)处理函数
1.QTimer::singleShot如何传参、2.QMetaObject::invokeMethod如何用函数传值