Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
FirstLoveLife opened this issue Jul 20, 2018 · 3 comments

Comments

@FirstLoveLife
Copy link

What I have done

  • install anki-connect
  • install anki-editor
  • test with:
#+PROPERTY: ANKI_DECK Default

* Fact
  :PROPERTIES:
  :ANKI_NOTE_TYPE: Cloze
  :END:

** 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 <lambda>
    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
Copy link
Owner

louietan commented Jul 29, 2018

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

@FirstLoveLife
Copy link
Author

@

@Elilif
Copy link

Elilif commented Nov 11, 2019

I still have this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants