reuseman / flashcards-obsidian

🎴 An Anki plugin for Obsidian.md
MIT License
872 stars 86 forks source link

Failed to load resource: net::ERR_CONNECTION_REFUSED #122

Open oliviercarizzoni opened 1 year ago

oliviercarizzoni commented 1 year ago

I have just opened Obsidian this day, and the entire app was frozen and consuming a lot of space with this error on the console :

image

At this point I am very very annoyed, the app require us to manually sync flashcards to Anki, for what reason does the plugin even try to connect to Anki at startup ?

This is clearly not a way to design the plugin, plus it is frozing the app, and keep on trying connecting indefinitely. It is also weird because it is the first time I see that behavior at startup.

github-actions[bot] commented 1 year ago

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

Comprehensive-Jason commented 1 year ago

I agree. Instead of attempting to connect to Anki constantly, the plugin should only try to connect to Anki when we send the Sync command.