damirkusar / AspNetCore.Totp

Time-based One-time Password Algorithm to be used with Google Authenticator
MIT License
70 stars 28 forks source link

Unexpected result from the Google QR web site #12

Open StephanBis opened 7 months ago

StephanBis commented 7 months ago

This plugin has been running flawlessly for a year now, but since today (we just noticed it) we're getting the following error. Is there an issue with the Google QR website or does this library needs updating? Thank you in advance.

System.Net.Http.HttpRequestException: Unexpected result from the Google QR web site.
       ---> System.Exception: Unexpected result from the Google QR web site.
         at AspNetCore.Totp.TotpSetupGenerator.GetQrImage(String url, Int32 timeoutInSeconds)
         --- End of inner exception stack trace ---
         at AspNetCore.Totp.TotpSetupGenerator.GetQrImage(String url, Int32 timeoutInSeconds)
         at AspNetCore.Totp.TotpSetupGenerator.Generate(String issuer, String accountIdentity, String accountSecretKey, Int32 qrCodeWidth, Int32 qrCodeHeight, Boolean useHttps)
hafiz-personal commented 7 months ago

I'm also having this issue since yesterday.

robinvanderknaap commented 7 months ago

The Google Chart API has been deprecated since 2012 : https://developers.google.com/chart/image/. I've created a pull request (#11) a few months ago which replaces the Google Charts API.

bob520128 commented 7 months ago

Unexpected result from the Google QR web site. facing while generating the qrcode. please help on this.