Although I figured this out, I’ll post the answer here to help other save a few minutes
How can I add CharacterJoint at runtime and assign it a rigidbody? This error comes up but how else should a rigidbody be assigned?
//We have a rigidbody on this gameobject
CharacterJoint j = gameObject.AddComponent();
j.connectedBody = r;