working type and request
fix "body is not defined"