We\'ve incorporated two factor authentication into one of our applications using Google Authenticator. In QA, something really weird turned up. While I managed to fix it,
It is not only the key lenght that is important
Here is how a sample URI should look like: otpauth://totp/Example:alice@google.com?secret=JBSWY3DPEHPK3PXP&issuer=Example
In your case, there is no "issuer" or "accountname" in the URI, both are recommended.
PS. just for your info , Google Authenticatior does not support very long keys as well.