Cant add Heroku API key

Im getting an error adding a key that was supplied by Heroku. I dont have any details other than the ‘contact us’ option shown (I removed my key from the text box for security in the screenshot) it says the key is invalid, but it’s the key supplied by Heroku:

Had to regenerate the key 3 times, but finally worked.