anki-editor icon indicating copy to clipboard operation
anki-editor copied to clipboard

Submit error

Open peng051410 opened this issue 6 years ago • 10 comments

I use you sample org file to submit, got error: Fetching decks... anki-editor-insert-deck: Unexpected error communicating with AnkiConnect: End of file while parsing JSON, the response was ""

What should i do?

peng051410 avatar Apr 10 '18 07:04 peng051410

My environment is: MacOs 10.13.4 (17E199)

peng051410 avatar Apr 10 '18 07:04 peng051410

My curl show: image

peng051410 avatar Apr 10 '18 07:04 peng051410

Have you carried out the instructions given in https://foosoft.net/projects/anki-connect/#notes-for-mac-os-x-users ?

louietan avatar Apr 11 '18 04:04 louietan

And make sure the decks you submit already exist in your Anki collection.

louietan avatar Apr 11 '18 04:04 louietan

Yes,I execute the https://foosoft.net/projects/anki-connect/#notes-for-mac-os-x-users command, and the deck in the anki collection

peng051410 avatar Apr 11 '18 05:04 peng051410

image

peng051410 avatar Apr 11 '18 06:04 peng051410

What are the results of evaluating the following expressions ?

  • M-S-; anki-editor-anki-connect-listening-address
  • M-S-; anki-editor-anki-connect-listening-port
  • M-S-; (anki-editor--anki-connect-invoke "deckNames" 5)

louietan avatar Apr 11 '18 07:04 louietan

execute anki-editor-anki-connect-listening-address result: 127.0.0.1 execute anki-editor-anki-connect-listening-port result: 8765 (anki-editor--anki-connect-invoke "deckNames" 5) get error: json parse error, response war ""

peng051410 avatar Apr 12 '18 23:04 peng051410

Is there a way for me to add some key log prints to your program?

peng051410 avatar Apr 12 '18 23:04 peng051410

You may have to clone this repo to your local machine and debug the anki-editor--anki-connect-invoke function to see what's wrong with the invocation of shell-command-to-string which uses curl to send the request.

louietan avatar Apr 15 '18 03:04 louietan