I will hazard to guess you are calling the function that sets the camera's rotation before _ready is called on the character.
The ready keyword is called after a node has been added to a scene tree and after all the child node _ready calls. If you are setting the camera rotation before adding your character to the scene tree you will have the problem you are seeing.
I would recommend you debug the situation by making a _ready function for your character and having it print out your camera property's name. This means you know that the camera property is non zero and that the character is in the scene tree.
Also add a print statement for the function that sets the camera's rotation. (or set a break point)
I suspect that the camera rotation setting function will be called before the character's ready() function, so you will see the camera rotating function print first (or the break point hit) and not see character.ready() print out its text.