return error when either peerid or peercred is not available on the platform