今天在对一个老项目进行了微服务的拆分
用feign调用一个老服务的时候抛出了这样的异常

Error while extracting response for type [java.util.List<com.uxseeing.survey.entity.ext.SurveySimpleExt>] and content type [application/json;charset=utf-8];
nested exception is org.springframework.http.converter.HttpMessageNotReadableException:
JSON parse error: Cannot deserialize instance of `java.util.ArrayList` out of START_OBJECT token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException:Cannot deserialize instance of `java.util.ArrayList` out of START_OBJECT token\n at [Source: (PushbackInputStream); line: 1, column: 1]

居然说 Cannot deserialize ,所以一开始的方向就是以为是序列化的问题,尝试在SSM里面注册各种Convertor,然并卵。
也试了下对这个实体类实现序列化接口,还是然并卵。

最后!
在老服务那里发现连interceptor都没有进去
原来是请求直接被拦截了,接口直接返回了一个页面,你说他调用成功吧,他没有将我想要的数据给我,所以一直报序列化失败,我的数据啊可恶。你说他失败吧,他又没有报404给你一个友好的页面。
用PostMan没有发现问题是因为PostMan里面有我的cookies,唉,一杯茶一支烟,一个bug搞一天。

feign.codec.DecodeException: Error while extracting response for type报错记录相关推荐

  1. feign.codec.DecodeException: Error while extracting response for type

    报错信息 feign.codec.DecodeException: Error while extracting response for type [java.util.List<cn.xxx ...

  2. openfeign远程调用接口报错:feign.codec.DecodeException: Error while extracting response for type

    错误信息: feign.codec.DecodeException: Error while extracting response for type [java.util.List<xxxx. ...

  3. 记一次feign调用报错:feign.codec.DecodeException: Error while extracting response for type [java...

    弯路: 报错的内容就是feign被调用方返回的结果无法解析. 所以一直以为是被调用法的返回对象类型和调用方接收的对象类型不一致导致的解析失败,经检查字段完全一致: 又因为我们用了lombok,所以类上 ...

  4. feign.codec.DecodeException: Could not extract response: no suitable HttpMessageConverter found

    出错的代码: UserBaseDto lmsInfo = userBaseClient.getUserById(pointMqVo.getUserId(), pointMqVo.getPlatform ...

  5. Feign - Error while extracting response for type [class java.lang.String]

    定义Feign接口 @RequestMapping(produces = MediaType.APPLICATION_JSON_UTF8_VALUE, method = RequestMethod.G ...

  6. 【feign】feign.codec.DecodeException: Could not extract response: no suitable HttpMessageConverter

    问题描述 在springboot 2的版本中通过feign进行调用,在引入私服jar包并进行调用时,报错: feign.codec.DecodeException: Could not extract ...

  7. Error while extracting response for type [] and content type [],json返回值被解析为xml

    在使用restTemplate请求restful接口时,在特定情况下总会将返回的json数据解析为xml数据然后处理,接着就会爆出标题中的错误: Error while extracting resp ...

  8. Error while extracting response for type [class xxx] and content type application/xml;charset=UTF-8

    强烈推荐一个大神的人工智能的教程:http://www.captainbed.net/zhanghan [前言] 最近在用restTemplate进行一次http请求时发现了报错(Error whil ...

  9. error info: feign.codec.DecodeException: Could not extract response: no suitable HttpMessageConverte

    使用feign框架的@FeignClient调用GET请求,并接受json返回值的时候,会报Could not extract response: no suitable HttpMessageCon ...

最新文章

  1. Go 学习笔记(29)— range 作用于字符串、数组、切片、字典、通道
  2. 周围剃光头顶留长发型_2021年发型预测:这5位中长发男神,谁才是你心中的长发代表...
  3. 使用RegularExpressionValidator限制多行文本框的字数
  4. 几种C++ std::string和std::wstring相互转换的转换方法
  5. 《Nmap渗透测试指南》—第7章7.8节后台打印机服务漏洞
  6. LeetCode 1727. 重新排列后的最大子矩阵(前缀和+排序)
  7. c-free5.0运行程序错误_web前端之异常/错误监控
  8. 女程序员也会有35岁的危机焦虑吗?
  9. 【故障诊断分析】基于matlab概率神经网络柴油机故障诊断【含Matlab源码 1754期】
  10. 谷歌浏览器翻译设置_谷歌翻译网站最近有点“小脾气”
  11. C语言Float的存储大小
  12. sql服务器字段顺序怎么修改,你可能不知道SQL Server索引列的升序和降序带来的性能问题...
  13. java设置隐式事务_隐式事务 - -Timothy- - 博客园
  14. 手游脚本_开发与迭代
  15. c c++ 信息服务查询服务器
  16. VMware下配置kali-linux-2019.2-vmware-amd64 压缩包
  17. 收藏了800道Java后端经典面试题,分享给大家,希望你找到自己理想的Offer呀~
  18. 状态空间方程转换传递函数
  19. CF791A Bear and Big Brother 【题解】
  20. ansible-playbook实战之部署redis+sentinel+twemproxy

热门文章

  1. 机器学习——需求预测——准确性(误差)统计——MAE、MSE、MAPE、WMAPE
  2. 从标注好的xml文件中截取坐标点(人脸框四个点坐标)人脸图像并保存在指定文件夹
  3. 1.3 欠/过拟合,局部加权回归(Loess/LWR)及Python实现(基于随机梯度下降)
  4. SpringBoot的幕后推手,Java后端知识体系
  5. Js基础——变量类型和计算
  6. 2021 CCPC 哈尔滨 E. Power and Modulo (思维题)
  7. 【UE4_蓝图】map函数以及Clamped和Unclamped的区别
  8. Python编程之围圈报数
  9. 微擎模块 抖音口红机 3.2.0+wap登陆1.3.0增加首页banner跳转链接
  10. ionic 实现广告图片无限滚动标签介绍