Trouble logging into AnkiHub

I haven’t used Anki in a while, I have an active AnkiHub subscription and I can log into it on my browser, however it just says there’s an error and logging in is impossible, I have tried removing the add-on and downloading it again but it didn’t work, can someone help?

Error message (don't change this)
Anki 24.04 (429bc9e1)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.19044

Traceback (most recent call last):

  File "C:\Users\ezare\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 246, in _send_request_with_retry
    response = self._send_request_with_retry_inner(

  File "C:\Users\ezare\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity\__init__.py", line 289, in wrapped_f
    return self(f, *args, **kw)

  File "C:\Users\ezare\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity\__init__.py", line 379, in __call__
    do = self.iter(retry_state=retry_state)

  File "C:\Users\ezare\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity\__init__.py", line 326, in iter
    raise retry_exc from fut.exception()

tenacity.RetryError: RetryError[<Future at 0x19b32299370 state=finished raised SSLError>]


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "C:\Users\ezare\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 254, in _send_request_with_retry
    response = last_attempt.result()

  File "concurrent.futures._base", line 439, in result

  File "concurrent.futures._base", line 391, in __get_result

  File "C:\Users\ezare\AppData\Roaming\Anki2\addons21\1322529746\lib\tenacity\__init__.py", line 382, in __call__
    result = fn(*args, **kwargs)

  File "C:\Users\ezare\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 269, in _send_request_with_retry_inner
    response = session.send(request, stream=stream, timeout=timeout)

  File "requests.sessions", line 703, in send

  File "requests.adapters", line 517, in send

requests.exceptions.SSLError: HTTPSConnectionPool(host='app.ankihub.net', port=443): Max retries exceeded with url: /api/login/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1129)')))


The above exception was the direct cause of the following exception:


Traceback (most recent call last):

  File "C:\Users\ezare\AppData\Roaming\Anki2\addons21\1322529746\gui\menu.py", line 186, in login
    token = ankihub_client.login(credentials=credentials)

  File "C:\Users\ezare\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 275, in login
    response = self._send_request("POST", API.ANKIHUB, "/login/", json=credentials)

  File "C:\Users\ezare\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 228, in _send_request
    response = self._send_request_with_retry(

  File "C:\Users\ezare\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 256, in _send_request_with_retry
    raise AnkiHubRequestException(e) from e

1322529746.ankihub_client.ankihub_client.AnkiHubRequestException: AnkiHub request exception: HTTPSConnectionPool(host='app.ankihub.net', port=443): Max retries exceeded with url: /api/login/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1129)')))

Sentry link (for developers)

I haven’t used Anki in a while, I have an active AnkiHub subscription and I can log into it on my browser, however it just says there’s an error and logging in is impossible. I have tried removing the add-on and downloading it again, reseting the password, I verified the email that Anki sent me, I reset the password a second time but nothing seems to be working, can someone help?

Hello,

Can you take a screenshot on what the error message is?

Here you go, sorry for the delay.

Same thing is going on for me as well, I need help, too…

I am trying to figure it out since I am getting the same error as this person, does it have something to do with OpenSSL?.. I have no idea…

cc @abdo.nh

2 posts were merged into an existing topic: Step 1 and 2 overlap

The latest Anki release (released yesterday) should fix this. Can you try it and let us know whether the issue goes away?

EDIT: Just saw you’re using the latest version @Divi_filius

@mochibunny What’s your operating system? Can you go to Help > About, click Copy Debug Info and paste the text here?

@Divi_filius Do you have any trouble accessing https://app.ankihub.net/ on Microsoft Edge? Is the lock icon in the address bar saying something other than ā€œConnection is secureā€?

image

I noticed you have an older version of Windows 10. If you can, I recommend installing the latest Windows updates and see if that fixes the issue.

OK, I fixed it temporarily for now by just downgrading Anki to 23.12 via the old installer I had in my downloads folder back in January 2024 . . .

1 Like
Edition Windows 10 Home
Version 21H2
Installed on ā€Ž1.ā€Ž5.ā€Ž2023 ā€ŽŠ³.
OS build 19044.2846
Experience Windows Feature Experience Pack 120.2212.4190.0

image

It says ā€˜Connection is secure’, tell me if you need any other info, it’s still not fixed

I was able to reproduce the issue on a Windows sandbox and found a working solution. For anyone facing the issue, please try the following steps and let us know whether that works for you:

  1. Open https://app.ankihub.net/ in Microsoft Edge.
  2. Click the lock icon in the address bar then click on ā€œConnection is secureā€
  3. Click on the icon to the right
  4. Go to the Details tab and click the Export button
  5. Save the file somewhere (e.g. Downloads or Desktop)
  6. Open the file then click the Install Certificate button.
  7. Accept the default options by clicking Next


  8. After clicking Finish the following message should appear and you should now be able to log in to AnkiHub in the add-on.

If the above solution doesn’t work for you, please install the latest Windows updates

5 Likes
Error with signing in with ankihub
Brand new User expericing AnkiHub First time Login Error
I cannot sync to ankihub
Error code not allowing me to log into AnkiHub
Doesnt sync
Error with add ons
Cannot sign in to AnkiHub
Ankihub add on error on second device
I am unable to download new decks from Anki Hub into my anki
No functionality issues that I can find but this error pops up anytime I open or close anki
Can't login to ankihub
I just updated anki and when I attempt to sign into ankihub I get an error
Helppp
Cant download deck on windows 11?
Error - Please help
Sign in error
Can't load AnkiHub add-on on my main computer since update 24.04.1
AnkiHub not syncing after new update Anki Version ⁨24.04.1
Cannot sign into Anki-hub account on Anki application
Error Signing into AnkiHub
I cant get in my ankihub account
Error when trying to sign in
Anki Hub Add On Error
Error immediately after attempting to sign in on desktop app
Error signing in
Bug - syncing deck
Error
Error Signing into AnkiHub
Sing in
I created an Anki Hub Account and i still cant log in on my PC. Its always the same error i but below
Cosa fare?
I have a error
Error
Can't log into ankihub from app
Not letting me log in on anki. It says that there is an error
Add-on Error
Can't login into AnkiHub
Trying to login to Ankihub using the add-on error
Error Report Upon Syncing After Updating Anki
Ankihub add on wont let me log in
I am trying to access the V12 anking deck but I keep getting this error
AnkiHub add-on error
Login Error
How do I fix this on Windows?
I can't login ankihub on Anki desktop app
Ankihub addon not working
Ankihub addon not working
Error
Login error despite correct username and password
I'm getting this error when i try to sync from my desktop computer. PLz help!
Anki won't sync with anki-hub at all and just gives me this error
Can anyone help me try to set up Anki Hub?
Please help me connect to my anking account
Please help me connect to my ankihub account
Bug happened
Ankihub sign-in error on Desktop
Error. unable to use ankihub
Can not use ankihub
Error
Error when downgrading from Qt6 to Qt5
Cannot log into anki on desktop
Login to ankihub from anki problems
I am very frustrated
Can't sign in to Anikhub inside anki
Add on error
AnkiHub add-on error has occurred
Anki hub add on error
BUG -- cant use ankihub on anki app
I have the syc error!
Is Ankihub down? Bought a new PC and want to sign into Ankihub on it but it says to check the status of Ankihub.net/status whenever I try to log in
Using correct ankihub login but getting error message
šŸ“£ Latest Updates
Hello everyone, I have a problem with ankihub sync even my add-ons are up to date, any help please?
Can u help solving this
Help please!
Hello,
Error
Ankihub addon error. It isn't syncing with Ankihub and installing decks again and again
Add on error
Add on error
Anki won't sync with anki-hub
Error report
Anki hub add on error
Syncing issue
Error Syncing and Installing the AnKing Step Deck
Error
AnkiHub not syncing, an add-on error occurs
Why do i keep getting error and it wont sync
Error
Error
I have tried everything from subscribing unsbscribing, reinstalling everything, deleting all add ons, help me man, i just bought subscription today and this is a welcome party for me?
Ankihub error
"Oh no, an AnkiHub add-on error has occurred"
Ankihub Error
I'm having an issue downloading the deck on anki. it says there is an error once i start the download
New user - Not able to sync with AnkiHub
Difficulty syncing deck - error message
I can not sync the ankihub to my anki app. i have no idea how to solve it please someone help me
AnkiHub Add-on error: error sending request for url ()
SSL Certificate Error
Installing anki hub step deck
Trying to sign in, error every time, first time user
Error message
Ankihub addon cannot login keeps getting error
Cannot sign in to AnkiHub
AnkiHub login not working
PLEASE HELP ! Trying to login to Anki Hub but it will not let me
Unable to update AnkiHub
Trying to login to AnkiHub and got this error
First time sync error
Anki Hub Add on Error
Error using Anki-Hub - PopUp
New User. Can't use AnkiHub add on
Add on error
Unable to Sync on Anki 24.04

God bless you! I have been trying for hours and hours to fix this. How did you figure this out?? and reproduce it?

1 Like

Your fix worked somehow and I am eternally grateful for that, however I am now convinced you are some sort of mad genius wizard, like there’s no way you just found a way to reproduce this…

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

@ProductTeam we’re getting daily reports of this issue. I and @Ahmed7 have been redirecting users to the solution here. But I’m thinking maybe we can integrate an automatic solution into the add-on. (It’s possible by bundling the certificate).

2 Likes

It’s probably worth looking into an automatic solution, given the high number of reports