This keeps popping up and will crash Anki

Before the error happened, I was…
[Replace this text.]

Error message (don't change this)
Anki 25.02.6 (6381f184)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: macOS-13.4.1-arm64-arm-64bit

Traceback (most recent call last):

  File "aqt.webview", line 188, in cmd

  File "aqt.webview", line 275, in _onCmd

  File "aqt.webview", line 797, in _onBridgeCmd

  File "_aqt.hooks", line 5416, in __call__

  File "/Users/doveyhochberg/Library/Application Support/Anki2/addons21/1322529746/gui/editor.py", line 382, in _on_js_message
    _refresh_buttons(context)

  File "/Users/doveyhochberg/Library/Application Support/Anki2/addons21/1322529746/gui/editor.py", line 294, in _refresh_buttons
    if ah_note := AnkiHubNote.get_or_none(anki_note_id=note.id):

  File "/Users/doveyhochberg/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 6806, in get_or_none
    return cls.get(*query, **filters)

  File "/Users/doveyhochberg/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 6801, in get
    return sq.get()

  File "/Users/doveyhochberg/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 7249, in get
    return clone.execute(database)[0]

  File "/Users/doveyhochberg/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 4548, in __getitem__
    self.fill_cache(item if item > 0 else 0)

  File "/Users/doveyhochberg/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 4596, in fill_cache
    iterator.next()

  File "/Users/doveyhochberg/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 4651, in next
    self.cursor_wrapper.iterate()

  File "/Users/doveyhochberg/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 4571, in iterate
    result = self.process_row(row)

  File "/Users/doveyhochberg/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 7878, in process_row
    data = super(ModelObjectCursorWrapper, self).process_row(row)

  File "/Users/doveyhochberg/Library/Application Support/Anki2/addons21/1322529746/lib/peewee.py", line 7844, in process_row
    result[attr] = converters[i](row[i])

  File "/Users/doveyhochberg/Library/Application Support/Anki2/addons21/1322529746/db/models.py", line 66, in python_value
    return json.loads(value)

  File "json", line 346, in loads

  File "json.decoder", line 337, in decode

  File "json.decoder", line 355, in raw_decode

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Sentry link (for developers)

Hello,

Can you try updating the AnkiHub addon?

  1. Go to Tools in Anki
  2. Go to add-ons
  3. Check for updates

Then try again and see if that fixes things

If you keep getting this, does resetting local changes from the browser help?