return 500 when no json received
test improved