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

2.1 Not working; cookie? #10

Closed
NAL100 opened this issue Jul 12, 2020 · 1 comment
Closed

2.1 Not working; cookie? #10

NAL100 opened this issue Jul 12, 2020 · 1 comment

Comments

@NAL100
Copy link

NAL100 commented Jul 12, 2020

On the latest version, trying to install the plugin. Getting the following error when I click on Get New Notes from Link:


Debug info:
Anki 2.1.26 (70784154) Python 3.8.0 Qt 5.13.1 PyQt 5.14.1
Platform: Mac 10.14
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-07-11 23:05:18
Add-ons possibly involved: ⁨Cambridge Dictionary⁩

Error in sys.excepthook:
Traceback (most recent call last):
  File "aqt/errors.py", line 19, in excepthook
  File "aqt/errors.py", line 48, in write
UnicodeEncodeError: 'ascii' codec can't encode character '\u2013' in position 458: ordinal not in range(128)

Original exception was:
Traceback (most recent call last):
  File "/Users/Jim/Library/Application Support/Anki2/addons21/1875288089/main.py", line 20, in ask_user_for_link
    window = LinkDialogue()
  File "/Users/Jim/Library/Application Support/Anki2/addons21/1875288089/gui.py", line 45, in __init__
    self.initUI()
  File "/Users/Jim/Library/Application Support/Anki2/addons21/1875288089/gui.py", line 50, in initUI
      File "aqt/__init__.py", line 185, in fn__
UnicodeEncodeError: 'ascii' codec can't encode character '\u2013' in position 137: ordinal not in range(128)

Also, I wasn't sure which cookie value exactly to paste into the cookie field from cambridge plus's site. I have like 10 of them, so I tried the JSESSIONID value. Some examples would be helpful.

In the config file it reads:

{
    "cookie": "54619xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-x1",
    "wordlist_ids": [
        "209xxxxx"
    ]
}

(I added x's as to not reveal the string)

Any help would be great, thanks.

@am-silex
Copy link
Owner

Hi.
I've just checked on the latest version from Anki Add-on site - creating note from link work like magic) Unfortunately, I'm on Windows, maybe that matter

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

2 participants