Appears this bug still exists.
In another post, the user was able to juju add-credential using a yaml instead of interactively.
The solution was to remove the ‘domain-name’ field is set in credentials.yaml
I’ve seen this before, I thought this bug had been squashed