Can't log in AnkiHub, given error message

I was trying to log in to AnkiHub on my Anki app via the add-on, and after entering my username and password, this message popped up under error details

Anki 2.1.61 (0c1eaf4c) Python 3.9.15 Qt 6.4.2 PyQt 6.4.0
Platform: Windows-10-10.0.22631
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2024-07-09 12:07:23

Traceback (most recent call last):

File “C:\Users\alexl\AppData\Roaming\Anki2\addons21\1322529746\gui\menu.py”, line 165, in login
raise e

File “C:\Users\alexl\AppData\Roaming\Anki2\addons21\1322529746\gui\menu.py”, line 156, in login
token = ankihub_client.login(credentials=credentials)

File “C:\Users\alexl\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py”, line 250, in login
raise AnkiHubHTTPError(response)

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 406 Not Acceptable

Error message (don't change this)
Anki 2.1.61 (0c1eaf4c) Python 3.9.15 Qt 6.4.2 PyQt 6.4.0
Platform: Windows-10-10.0.22631
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2024-07-09 12:07:23

Traceback (most recent call last):

  File "C:\Users\alexl\AppData\Roaming\Anki2\addons21\1322529746\gui\menu.py", line 165, in login
    raise e

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

  File "C:\Users\alexl\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 250, in login
    raise AnkiHubHTTPError(response)

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 406 Not Acceptable

Sentry link (for developers)

Please check for add-on updates from Tools > Add-ons > Check for Updates.