Closed ebett-bayer closed 2 weeks ago
Deps
implementation 'org.springframework:spring-webmvc:6.1.13'
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign:4.1.3'
implementation 'com.playtika.reactivefeign:feign-reactor-core:4.2.1'
implementation 'com.playtika.reactivefeign:feign-reactor-spring-configuration:4.2.1'
implementation 'com.playtika.reactivefeign:feign-reactor-webclient:4.2.1'
implementation 'io.github.openfeign:feign-hc5:12.4'
implementation 'io.github.openfeign:feign-micrometer:12.4'
I found this No serializer found for class java.io.ByteArrayInputStream and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS)
After disable it, I get an exeption
MultipartFile resource [2018-01-01_2018-01-02.csv] cannot be resolved to absolute file path
Is the MultipartFile class right for feign-reactive?
NOTE: The file bytes comes form an string variable
I found the fix, I had to change MultipartFile class in method signature with org.springframework.core.io.Resource
Regards.
Hi, I need to send a PATCH multipart request like this.
I am also using this interceptor:
Is there any missing here? the request doesn't work.
Error while running request: ReactiveHttpRequest{, uri=https://xxxxx, target=HardCodedTarget(type=AdmaReactiveServiceClient, url=http://base-url)} \nType definition error: [simple type, class java.io.ByteArrayInputStream].",
Note that GetMapping requests works well.
StackTrace: