raise error when stream is not readable