I've encountered the same issue and figured out, that it works if you add following to your .csproj file:
<UseNativeHttpHandler>false</UseNativeHttpHandler>
With this option your app uses the managed implementation of HttpMessageHandler instead of the default platform implementation.
Hope this helps.