Closed rafael-coelho-amaro closed 3 years ago
We are in the middle of migrating all the guides to the new infrastructure. See this for more information: https://micronaut.io/2021/04/12/improving-the-micronaut-guides-infrastructure/
Please take a look at the updated version of the guide: https://micronaut-projects.github.io/micronaut-guides-poc/latest/micronaut-http-client.html
Good morning,
So, I need to proxy the role request and then return role response using this Filter. Anyway I try I get the same error, like:
override fun doFilterOnce(request: HttpRequest<*>?,
chain: ServerFilterChain?):
Publisher<MutableHttpResponse<*>> {
var resp = client.exchange(request).blockingFirst()
return Publishers.just(HttpResponse.ok(String))
}
I Looked at the links you sent, but I did not find anything that I can use. Because I need to redirect role Request and Response, not just the body.
*in this case, the command "client.exchange(request).blockingFirst()" return the same casting error
Could you help me?
You opened the issue on this guide and I linked you to the new guide. If you are looking for other thing, please ask the question on our Gitter Channel: https://gitter.im/micronautfw/
Thanks!
I am getting the error below when I they to proxy a API call:
My code is:
The error occurs when the command
client.proxy(request)
is executed.