fixed entry file
fail gracefully when the payload is not JSON