I wanted to link my valorant profile to the valorant discord, so I clicked the link sent by the bot. I clicked grant access, entered my riot credentials and the error Unable to Get Stats showed up. The error code was unknown-401.
Update: I tried again and it gave me error code “unknown-500”. After one more try, it successfully worked. Thank you TRN devs.