die if no payload is present or if we are not using and endpoint