Throw an error when we don't receive any data to prevent executing
code that doesn't need to be executed.