Alright so I was about to post details and everything but cannot therefore I just gonna say that I face the exact same issue.
When I compare a caller
principal in a query called from a NodeJS script, in which I used my private key, with the self fromActor
principal, I get an error respectively both principals are not the same.