This issue occurs because the
fly CLI does not handle the long token properly. For more information, refer to
fly: allow pasting long tokens into login #5770. This issue is resolved in Concourse 6.4.0+.
Note: Avoid upgrading only the fly CLI to v6.4.0, it will be incompatible with the Concourse system that is still on the old version.
In addition, if the login user is a member of many teams, the returned token could be very long. To work around this issue, remove the login user from some teams to reduce the token length.