Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error 405 method not allowed on client calls using Webclient #73

Closed
rohan-new opened this issue Jan 23, 2022 · 1 comment
Closed

Comments

@rohan-new
Copy link

I am making multiple client calls to other Microservices from the Weblux app using Weblcient. There are over 500 elements in a flux and each element makes several api calls(each publisher makes 10 client calls) to other microservices. For some reason , which I dont know, for some requests , I am getting the error 405 method not allowed, even though the request never changes for every item in the publisher.

Expected Behavior

It should never give request not allowed error.

        Mono<Map> responseMono = this.webClientBuilder.baseUrl(URI).build()
                .get()
                .retrieve()
                .bodyToMono(Map.class)
                .log()
                .retryWhen(Retry.fixedDelay(1, Duration.ofMillis(200)));
        return responseMono ;
    }

This is the method used by all the items inside the Flux to make a client call. I have tried shifting weblcient calls to different scheduler , so that they dont share the same thread pool as of the application server, but this hack didnt solve the issue.

@rohan-new rohan-new added the type/bug A general bug label Jan 23, 2022
@simonbasle
Copy link
Member

This issue doesn't belong in projectreactor.io repository which hosts the Reactor website.
I don't think it has anything to do with Reactor in particular, and the best place is probably to ask a question on StackOverflow

@simonbasle simonbasle removed the type/bug A general bug label Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants