Help with bulk suggesting notes ERROR

**Before the error happened, I was. trying to upload new content to our Ankihub deck

Error message (don't change this)
Anki 23.12.1 (1a1d4d54)  (ao)
Python 3.9.15 Qt 6.6.1 PyQt 6.6.1
Platform: Windows-10-10.0.19045

Traceback (most recent call last):

  File "aqt.taskman", line 142, in _on_closures_pending

  File "aqt.taskman", line 86, in <lambda>

  File "aqt.taskman", line 106, in wrapped_done

  File "C:\Users\Anthony-Desktop\AppData\Roaming\Anki2\addons21\1322529746\gui\", line 305, in <lambda>
    on_done=lambda future: _on_suggest_notes_in_bulk_done(future, parent),

  File "C:\Users\Anthony-Desktop\AppData\Roaming\Anki2\addons21\1322529746\gui\", line 391, in _on_suggest_notes_in_bulk_done
    raise e

  File "C:\Users\Anthony-Desktop\AppData\Roaming\Anki2\addons21\1322529746\gui\", line 379, in _on_suggest_notes_in_bulk_done
    suggestions_result: BulkNoteSuggestionsResult = future.result()

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

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

  File "concurrent.futures.thread", line 58, in run

  File "C:\Users\Anthony-Desktop\AppData\Roaming\Anki2\addons21\1322529746\gui\", line 297, in <lambda>
    task=lambda: suggest_notes_in_bulk(

  File "C:\Users\Anthony-Desktop\AppData\Roaming\Anki2\addons21\1322529746\main\", line 183, in suggest_notes_in_bulk
    errors_by_nid_int = client.create_suggestions_in_bulk(

  File "C:\Users\Anthony-Desktop\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\", line 960, in create_suggestions_in_bulk
    errors_for_new_note_suggestions = self._create_suggestion_in_bulk_inner(

  File "C:\Users\Anthony-Desktop\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\", line 987, in _create_suggestion_in_bulk_inner
    raise AnkiHubHTTPError(response)

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 500 Internal Server Error

Sentry link (for developers)

Are you still having the issue? The logs suggest you’re hitting some database limit.

Hello, just tried it uploading to ankihub and I still hit the error.

Is there a solution for this?
Especially that I hit a database limit?

Can you go to AnkiHub > Help > Upload logs and post the filename shown?


Can you also export the notes as apkg and upload the file here?

Selected Notes_submit to Ankihub.apkg (535.4 KB)

Another user hit the same issue and the same solution should work for you:

I tried this and it still doesnt work
The error keeps showing up

However, I noticed the issue only to occur when Im utilizing notes created by PDF2-Anki

The image included are the pdf slide of the corresponding question
Is there a workaround for this?

OK, I’ll do more testing and get back to you.

Thank you very much
Please let me know how I can help

Just noticed the logs show a different error code than the one in the post’s text. Can you check for add-on updates from Tools > Add-ons > Check for Updates then try again?

Just did, no new updates and same issue

OK, I found the source of the error. PDF2-Anki is apparently generating large IDs that AnkiHub can’t handle and this was causing a database error. Please follow the steps to fix the issue:

  1. Back up your collection to be safe using File > Create Backup.
  2. Select all PDF2-Anki notes in the browser.
  3. Open the debug console and paste the following code:
from anki.utils import guid64
from aqt import dialogs, mw

browser ="Browser", mw)
notes = []
for nid in browser.selected_notes():
    note = mw.col.get_note(nid)
    note.guid = guid64()

  1. Press Ctrl+Enter and close the debug console.

You should now able to suggest the notes.


Can you link to the PDF2-Anki tool you used to create the notes?

I see. Your findings are very interesting and helpful.
I’ll try debugging and see if it works

Here is the link to the tool:

WOW This solution worked.
Debugging helped

I will save this and this will definitely help a lot of people in the future
Thank you thank you

1 Like

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