On some environments the first http request is not processed. On those environments we could reproduce it like: Create a new project on start.spring.io containing starter-web and starter-actuator. Start application. Call actuator endpoint in postman. First request is not processed. Cancel the first request and then everything works.
java version "11.0.5" 2019-10-15 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.5+10-LTS) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.5+10-LTS, mixed mode)
macos version: 10.14.6 (18G9323) MacBook Pro (13-inch, 2019, Two Thunderbolt 3 ports) Processor 1,4 GHz Intel Core i5 Memory 16 GB 2133 MHz LPDDR3
springframework.boot: 2.5.6 (also: 2.4.5)
Comment From: bclozel
I can't reproduce this behavior. Have you tried with a different tool (like curl) or on a different host?
I've created a sample application like:
$ curl -G https://start.spring.io/starter.tgz -d dependencies=web,actuator -d type=gradle-project -d baseDir=demo | tar -xvzf -
$ cd demo
$ ./gradlew :bootRun
The first request to the actuator endpoint works:
$ curl localhost:8080/actuator
{"_links":{"self":{"href":"http://localhost:8080/actuator","templated":false},"health":{"href":"http://localhost:8080/actuator/health","templated":false},"health-path":{"href":"http://localhost:8080/actuator/health/{*path}","templated":true}}}%
Comment From: tmtszo4
It seems to be a Postman bug. The curls is working.
Thank you.
Comment From: bclozel
Thanks for letting us know! This might be an issue with a local DNS configuration or a browser proxy configuration.