Open akiesh22 opened 2 years ago
Please mention the version of Grails with steps to replicate and details of the error. Thank you!
grails-micronaut-http-master.zip
Please find the attachment, this is reproduced from https://guides.grails.org/grails-micronaut-http/guide/index.html.
As per the micronaut-http-document: https://docs.micronaut.io/latest/guide/#clientConfiguration, adding following configuration in application.yml file should load these configuration to http client. However the client is not respecting the configuration and always defaults to 10s.
The http client is defined in grails-micronaut-http-master/complete/grails-app/services/example/grails/ItuneSearchService.groovy.
Currently I am making request via url: http://localhost:8080/api/search?searchTerm=c. The end point in this case is just another grails app running in http://localhost:8090/. To replicate the behavior where the end point takes longer time to response I used intellij debugger.
micronaut:
http:
client:
read-timeout: 5s
Please let me know if I can provide further information here.
Is there any update on this? Am I missing something ?
Thank you for sharing the sample application. I will look into this soon.
Issue description
I am new to the concept of micronaut-http-client and it's inner working. I have been following https://guides.grails.org/grails-micronaut-http/guide/index.html and https://docs.micronaut.io/latest/guide/#clientConfiguration. With these I am able to make a blocking http request to my service. However, I have tirelessly tried and failed to inject configuration via application.yml
code to make http blocking call
When I make an http request as per the configuration the request doesn't wait until 30s before timing out but resorts to default always.