Just ran into this. Very confusing error message. Would be much better if it mentioned the public_name issue directly.
public_name