huaweicloud / spring-cloud-huawei

Spring Cloud Huawei is a framework that makes it easier and productive to develop microservices with Spring Cloud.
https://github.com/huaweicloud/spring-cloud-huawei/wiki
Apache License 2.0
516 stars 221 forks source link

服务开启异步调用,请求头做序列化时,报错空指针异常 #1389

Closed Vientu closed 3 days ago

Vientu commented 3 weeks ago

Describe the bug A clear and concise description of what the bug is. image image 报错堆栈 image

To Reproduce Sample code:

Expected behavior A clear and concise description of what you expected to happen.

Information

Spring Cloud Huawei version: Spring Cloud version(optional): Spring Boot version(optional): Spring version(optional):

Additional context Add any other context about the problem here.

Vientu commented 3 weeks ago

SDK版本 1.10.0-2021.0.X

chengyouling commented 3 weeks ago

1.10.1-2021.0.X及之后版本增加null判断修复此问题

根因:主要是在异步请求时无法获取到主线程的请求上下文信息。