louietan / anki-editor

Emacs minor mode for making Anki cards with Org
705 stars 87 forks source link

Error communicating with AnkiConnect using cURL: exited abnormally with code 52 #23

Closed FirstLoveLife closed 6 years ago

FirstLoveLife commented 6 years ago

What I have done

** Text

Cards of this note wil be created in {{c1::Default::which deck ?}}

### Emacs
      :ANKI_FAILURE_REASON: Error communicating with AnkiConnect using cURL: exited abnormally with code 52

### Anki

Debug info: Anki 2.1.0beta40 Python 3.6.2 Qt 5.9.2 PyQt 5.9 Platform: Linux Flags: frz=True ao=True

Caught exception: File "/home/chenli/.local/share/Anki2/addons21/2055492159/init.py", line 297, in advance self.server.advance() File "/home/chenli/.local/share/Anki2/addons21/2055492159/init.py", line 205, in advance self.advanceClients() File "/home/chenli/.local/share/Anki2/addons21/2055492159/init.py", line 220, in advanceClients self.clients = list(filter(lambda c: c.advance(), self.clients)) File "/home/chenli/.local/share/Anki2/addons21/2055492159/init.py", line 220, in self.clients = list(filter(lambda c: c.advance(), self.clients)) File "/home/chenli/.local/share/Anki2/addons21/2055492159/init.py", line 127, in advance self.writeBuff += self.handler(req) File "/home/chenli/.local/share/Anki2/addons21/2055492159/init.py", line 239, 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 180, in default <class 'TypeError'>: Object of type 'map' is not JSON serializable

louietan commented 6 years ago

This is an issue from anki-connect, I have to summit a PR to fix this, see: FooSoft/anki-connect#85

FirstLoveLife commented 6 years ago

@

Elilif commented 4 years ago

I still have this problem.