Problem 3295 describes your scenario: "Invalid author name when pushing code to BitBucket repository"
The author line is what comes from the configuration on your computer (since you commit locally and click on Bitbucket).
You can set this line for Hg, this document is about it. Similarly, you can install Git author, this document about it.
, Bitbucket, , , "?" .
, "?", BB , BB .