title: What is causing WebClient to return null from a rest call?
body: <p>I have a basic Kotlin Spring app, and I want to make a rest call to return and print the json. I have the below code, but every time I make a call, it returns null. This happens to other rest calls as well. Do I need to make the call in a different way?</p>
  <pre><code>fun main(args: Array&lt;String&gt;) {
      val app = runApplication&lt;NestpublisherApplication&gt;(*args)
  
      val client = WebClient.create(&quot;https://api.kanye.rest&quot;)
      val type = object : ParameterizedTypeReference&lt;String&gt;() {}
  
      val result : Flux&lt;String&gt; = client.get()
              .retrieve()
              .bodyToFlux(type)
              .doOnNext{println(&quot;Iterating through&quot;)}
              .doOnError { println(&quot;ERROR: ${it.message}&quot;) }
  }
  </code></pre>