For the example astronomy/v3/src/main/kotlin/com/example/astronomy/AstronomyApplication.kt
, despite the statement “That try–catch block is working again” at the end of pg 37, when I change the URL to https://example.com
in AstronomyService.kt
, the Swing app hangs indefinitely with the “Loading your image…” message. Same if I use the correct URL but INVALID_KEY
for the apiKey
. The try-catch does not appear to be handling any errors. (There is no error or stacktrace written to the console either.)
This is in the B3 version of the book with the example code downloaded on 2025-04-19 at 14:42 EDT.