title: Didn't get response from dataTaskPublisher with URLSession in Swift
body: <p>I was trying to use dataTaskPublisher in my project.</p>
  <p>I already use dataTask successfully.</p>
  <p>This is the code that I use it, it works when I use dataTask, but in this case with dataTaskPublisher it didn't get response from the print statements. Why is this happening ?</p>
  <pre><code>    var cancels: Set&lt;AnyCancellable&gt; = []
      
      let request = URLSessionHelper.getRequestWithUrl(endpointUrl: url, httpMethod: HTTPMethod.get, jsonBodyData: nil)
      let session = URLSession(configuration: URLSessionHelper.sessionConfiguration, delegate: SessionDelegate(), delegateQueue: nil)
      
      session.dataTaskPublisher(for: request)
          .map(\.data)
          .compactMap { String(data: $0, encoding:. utf8) }
          
          .sink { error in
                      print(&quot;error: \(error)&quot;)
                      // Cannot assign value of type 'Subscribers.Completion&lt;Error&gt;' to type 'Error?'
                   } receiveValue: { resutl in
                       print(&quot;resutl: \(resutl)&quot;)
                   }
          .store(in: &amp;cancels)
  </code></pre>