This is the exception message "Unable to read from stream"
What stream? There's no content to stream.
the error appears to have disappeared after replacing the curl request with an asynchronous request and ignoring the output.
This is the exception message "Unable to read from stream"