Feign - Method has too many Body parameters

0

I have the following requestMethod in a RestController and it is working fine.

@RequestMapping(path = "/api/v1/rest/websearcher/search/results", method = RequestMethod.POST,
            produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public ResponseEntity<WebResultResponse> getSavedAvailability(@RequestBody final WebResultRequest navigationRequest, 
    @CookieValue(value = "forceSupplier", defaultValue = "") final String forceSupplier)

I also have a feign client that is also working well. I had to put an extra parameter that will go through a cookie and I added this parameter but now it seems that feign is not catching me well because it shows me the following error: Method has too many Body parameters I do not know very well because I'm receiving this error because the parameter is the same on both sides.

This method in the Feign client:

@RequestMapping(path = "/api/v1/rest/websearcher/search/results", method = RequestMethod.POST,
        produces = MediaType.APPLICATION_JSON_VALUE + ";charset=UTF-8")
ResponseEntity<WebResultResponse> getAndSavedAvailability(@RequestBody WebResultRequest webSearcherResultRequest, @CookieValue(value = "forceSupplier", defaultValue = "") String forceSupplier);

What am I doing wrong? Thanks

    
asked by hector s. 01.10.2018 в 12:00
source

0 answers