reuseman / flashcards-obsidian

🎴 An Anki plugin for Obsidian.md
MIT License
915 stars 88 forks source link

Can't add any new card to Anki #105

Open mslxl opened 2 years ago

mslxl commented 2 years ago

Version:

After I have wrote my note, I try to run "Generate for the current file", but it doesn't work, both Anki and Obsidian didn't give me any error message. I tried to open Developer Tools to see if there are any thing useful, but I only got this message:

'NoneType' object has no attribute 'write'

it was throw here(I can't locate the code from typescript): image

I have already granted permission, the Test anki button tell me Anki works. here is my ankiconnect config:

{
    "apiKey": null,
    "apiLogPath": null,
    "ignoreOriginList": [],
    "webBindAddress": "127.0.0.1",
    "webBindPort": 8765,
    "webCorsOrigin": "http://localhost",
    "webCorsOriginList": [
        "http://localhost",
        "app://obsidian.md"
    ]
}

The config of Flashcards is default.

github-actions[bot] commented 2 years ago

Thank you for taking the time to report the issue and help me to make the project better! 🙂