Yeah, sorry in advance for being a horrible developer and using some form of NMS (not sure if Mojang's Authlib counts), but this has worked fine in the past (tested in 1.16.5 Spigot as well, no problems) and even in earlier builds of Spigot 1.17 so I'm assuming something changed recently that caused this crash/error.
As of currently, the main reproducer of the bug - HeadsPlus - uses a method to set textures immediately and uses the profile field in the SkullMeta implementation (CraftMetaSkull) to do this. However, in the latest version (outlined above), this either crashes the server or simply drops an error.
The server only crashes if the username provided is invalid or the server is in cracked/offline mode. But an error is still thrown if the username is valid and the server is in online mode. I've compiled a minimal reproduction plugin for this with the main class below and jar file included:
In order to reproduce the error:
- Run the newest Spigot version with the skeleton plugin included
- Run /head headsplus
- An error is thrown as provided.
The stacktrace of the error and crash report is included in the files below.
If there is a better workaround for this or something I need to change, please let me know rather than dropping me to die in a ditch.