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

Coding systems errors #51

Open
rogorido opened this issue Jul 25, 2019 · 5 comments · Fixed by #53
Open

Coding systems errors #51

rogorido opened this issue Jul 25, 2019 · 5 comments · Fixed by #53

Comments

@rogorido
Copy link

I'm getting strange coding systems errors if I try to push notes to anki. I'm using Anki 2.1.14 (7b93e985) and I have downgraded request.el to request 0.3.1, but I get still the error below. I'm pretty sure this not a problem of encoding in the files: I get the errors even if I make a very simple file like this http://ix.io/1PtE. Sometimes as you see I get a failure reason (but I have thee impression not always)...

:ANKI_FAILURE_REASON: Wrong number of arguments: (8 . 8), 10

These default coding systems were tried to encode text
in the buffer ‘ temp file’:
(utf-8-unix (245 . 4194242) (246 . 4194239) (249 . 4194243) (250 .
4194209) (607 . 4194242) (608 . 4194239) (611 . 4194243) (612 .
4194217) (961 . 4194243) (962 . 4194221) (1014 . 4194243))
However, each of them encountered characters it couldn’t encode:
utf-8-unix cannot encode these: ...
[etc.]

raw-text no-conversion

@rogorido
Copy link
Author

I thinks this is related to this issue: tkf/emacs-request#77

@rogorido
Copy link
Author

rogorido commented Aug 5, 2019

If I apply the patches which are available here: #53 it works again.

@rogorido
Copy link
Author

rogorido commented Aug 5, 2019

Well, it does not seem to work really. Some cards get stuck.

@rogorido
Copy link
Author

rogorido commented Aug 5, 2019

I enabled request-log-level to debug and I get this: http://ix.io/1QHy with this simple file: http://ix.io/1QHz. I had to cancel the process with C-g because emacs was consuming 100% CPU...

@louietan
Copy link
Owner

With the latest version of request.el, Emacs won't hang, instead, I guess that you would get error "Got empty reply from AnkiConnect", if I'm right, could you try with turning off global-auto-revert-mode to see if everything works.
I'm also having the issue with the requesting, after debugging the Emacs source code and discussing with the maintainer of request.el, the workaround of turning off global-auto-revert-mode works for me.

@louietan louietan reopened this Sep 22, 2019
tarsius pushed a commit to emacsmirror/anki-editor that referenced this issue May 18, 2024
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

Successfully merging a pull request may close this issue.

2 participants