Fix getting request content when occurs php errors