Skip to content

Instantly share code, notes, and snippets.

@aalemayhu
Created August 16, 2020 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aalemayhu/92f4068d241ff826993f257e2d340d03 to your computer and use it in GitHub Desktop.
Save aalemayhu/92f4068d241ff826993f257e2d340d03 to your computer and use it in GitHub Desktop.
Error with Polar Connect and Anki Version 2.1.30 (06a69c25)
Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.30 (06a69c25) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2
Platform: Mac 10.15.6
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-08-15 21:06:43
Add-ons possibly involved: ⁨Polar Connect - PDF and Incremental Reading with Anki Sync⁩
Caught exception:
Traceback (most recent call last):
File "/Users/scanf/Library/Application Support/Anki2/addons21/734898866/__init__.py", line 309, in advance
self.server.advance()
File "/Users/scanf/Library/Application Support/Anki2/addons21/734898866/__init__.py", line 217, in advance
self.advanceClients()
File "/Users/scanf/Library/Application Support/Anki2/addons21/734898866/__init__.py", line 232, in advanceClients
self.clients = list(filter(lambda c: c.advance(), self.clients))
File "/Users/scanf/Library/Application Support/Anki2/addons21/734898866/__init__.py", line 232, in <lambda>
self.clients = list(filter(lambda c: c.advance(), self.clients))
File "/Users/scanf/Library/Application Support/Anki2/addons21/734898866/__init__.py", line 139, in advance
self.writeBuff += self.handler(req)
File "/Users/scanf/Library/Application Support/Anki2/addons21/734898866/__init__.py", line 251, in handlerWrapper
body = makeBytes(json.dumps(self.handler(params)))
File "json/__init__.py", line 231, in dumps
File "json/encoder.py", line 199, in encode
File "json/encoder.py", line 257, in iterencode
File "json/encoder.py", line 179, in default
TypeError: Object of type RepeatedScalarContainer is not JSON serializable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment