If one retrieves a key from a keyserver and the keyserver serves a key without user ID then this is not reflected in the no_user_id count of the IMPORT_RES status message.
$ gpg --version gpg (GnuPG) 2.5.25-beta29 libgcrypt 1.12.4 $ gpg --status-fd 2 --keyserver keys.openpgp.org --recv-keys 0xAEA84EDCF01AD86C4701C85C63113AE866587D0A gpg: key 63113AE866587D0A: no user ID gpg: Total number processed: 1 [GNUPG:] IMPORT_RES 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [GNUPG:] FAILURE gpg-exit 33554433
I think the correct status message would be
[GNUPG:] IMPORT_RES 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0
Accidental finding: The "General Error" failure reported on gpg-exit seems wrong. It doesn't happen with gnupg 2.2.55-beta7.