Error while reading line from the server