metropolitan-bronze
metropolitan-bronze2mo ago

Browser extension not connected to anki

Anki extension 0.3.36 windows 11 Browser Thorium 130.0.6723.174 (chromium M130) Anki version 25.02 extension version 1.23.4 Everything was working fine until yesterday. Now inside anki it always says the browser extension is not connected. From the extension side it can see anki and send cards to it no problem which is strange.
59 Replies
unwilling-turquoise
unwilling-turquoise2mo ago
I'm having the same issue. I noticed it when the Global Hotkeys stopped working. Mac 14.7.5 Chrome for Mac Anki version 25.02 Extension version 1.23.4
flat-fuchsia
flat-fuchsia2mo ago
@Gainsly try with Chrome @Henrik (JST)
intermediate-olive
intermediate-olive2mo ago
I'm having the same problem, and I'm using Chrome Temporary workaround - The legacy extension still connects with anki and lets you add syntax etc.
flat-fuchsia
flat-fuchsia2mo ago
@Thinh maybe this is on the extension end?
metropolitan-bronze
metropolitan-bronzeOP2mo ago
ok I tried chrome, I tried on my laptop (normal chrome + windows 10 machine), I tried disabling every other anki addon, and tried restarting everything etc. problem was still there for me.
exotic-emerald
exotic-emerald2mo ago
same for me, I'm using the Early Access extension on Mac M-series. Here more info on my problem: https://discord.com/channels/752293144917180496/1366786968666771498
afraid-scarlet
afraid-scarlet2mo ago
Can you open a browser, and navigate to this website: http://localhost:44432/ If Anki sets its server up correctly, it should say: 404: Not Found on a white website, if it doesn't work, it should say "Refused to connect" or something like that
metropolitan-bronze
metropolitan-bronzeOP2mo ago
hey thanks for looking into this. I just checked, I get a white website with 404: not found
sunny-green
sunny-green2mo ago
Just run into the same issue - Anki server doesn't seem to be the issue going off of Henrik's ask
constant-blue
constant-blue2mo ago
Experiencing the same issue.
flat-fuchsia
flat-fuchsia2mo ago
@Henrik (JST)
afraid-scarlet
afraid-scarlet2mo ago
Can you guys tell me which Anki versions you're using? Also, please make sure that you test it with all other add-ons turned off. Also, which operating system are you using?
metropolitan-bronze
metropolitan-bronzeOP2mo ago
anki version 25.02. its happening for me on windows 11 and windows 10 machines. Yes every single other addon was disabled and it is still not working. To reiterate, I can send cards from the browser extension to anki and that works, but somewhere anki cannot handshake with the extension however you guys have done it. The main thing not working is card reading/pitch syntax generation in anki
exotic-emerald
exotic-emerald2mo ago
I’ve been using Anki 25.02.4 on a Mac M-series with MacOs Sequoia 15.4.1
conscious-sapphire
conscious-sapphire2mo ago
Same issue. Tried disabling all other add-ons and got the white website with the 404: not found. Mac M-Series MacOs Sequoia 15.4.1 Anki 25.02.4 Chrome Version 136.0.7103.49
unwilling-turquoise
unwilling-turquoise5w ago
I'm using anki 25.02. Issue persists.
constant-blue
constant-blue5w ago
@HulK (ping reply me)|🇭🇰 (8k) any word on when we can expect a fix for this issue? This feature is the singular reason I'm subscribed to Migaku and many others seem to be in a similar situation. 😅
flat-fuchsia
flat-fuchsia5w ago
I can't give you an ETA. It's being looked into.
optimistic-gold
optimistic-gold4w ago
Same issue here.
metropolitan-bronze
metropolitan-bronzeOP4w ago
so.. can you guys replicate? is this pending?
fascinating-indigo
fascinating-indigo4w ago
Having this same error thanks Bah didn’t mean for that sticker lol
constant-blue
constant-blue4w ago
@HulK (ping reply me)|🇭🇰 (8k) I totally understand that you can't provide a precise ETA, but would it be possible to get some insight into the current state of the process?
flat-fuchsia
flat-fuchsia4w ago
So far the team has been unable to replicate this issue.
conscious-sapphire
conscious-sapphire4w ago
I have lifetime early access ext but doesn't connect to Anki Version ⁨25.02.4 but connects to the standard. I'm running a Mac M4, Sequoia 15.4.1, , Chrome Version 136.0.7103.93 (Official Build) (arm64) Im new lol sorry for the redundant message for the same issue here with the mac/early access
metropolitan-bronze
metropolitan-bronzeOP4w ago
ok thank you for the update. that's interesting so it does seem specific to certain machines even though its happening across os's and different browser versions, ill try and test whatever I can. could you guys give any guidance on further ways we can help debug? is there a way we can log and report any errors on the addon python side
flat-fuchsia
flat-fuchsia4w ago
@Henrik (JST)
metropolitan-bronze
metropolitan-bronzeOP4w ago
does this look right? browser window and anki open, 13680 is the anki pid and the other one is a chrome process
netstat -aon | findstr :44432
TCP 0.0.0.0:44432 0.0.0.0:0 LISTENING 13680
TCP 127.0.0.1:44432 127.0.0.1:51938 ESTABLISHED 13680
TCP 127.0.0.1:51938 127.0.0.1:44432 ESTABLISHED 13064
TCP [::]:44432 [::]:0 LISTENING 13680
netstat -aon | findstr :44432
TCP 0.0.0.0:44432 0.0.0.0:0 LISTENING 13680
TCP 127.0.0.1:44432 127.0.0.1:51938 ESTABLISHED 13680
TCP 127.0.0.1:51938 127.0.0.1:44432 ESTABLISHED 13064
TCP [::]:44432 [::]:0 LISTENING 13680
metropolitan-bronze
metropolitan-bronzeOP4w ago
I found a clue! Here is what (chatGPT and) I found. inspecting the app window in the network tab I found there was only the srs-check get request working, there was nothing in the WS tab. according to chatgpt the migakuconnector class is a websocket endpoint so I literally just went in the console and typed:
new WebSocket("ws://localhost:44432/anki-connect")
new WebSocket("ws://localhost:44432/anki-connect")
and instantly the anki extension went green and said connected! BUT syntax generation failed with a "timed out" error. I think I just made a fake websocket that doesn't do anything, but it now seems pretty clear its a websocket problem on the extension side. No CSP errors occur in the app window, seems like permissions are sufficient. @HulK (ping reply me)|🇭🇰 (8k) @Thinh
No description
unwilling-turquoise
unwilling-turquoise3w ago
Thank you @Gainsly ! Hopefully this is a clue that will help the Migaku team finally figure this out. @HulK (ping reply me)|🇭🇰 (8k) , can you please investigate?
flat-fuchsia
flat-fuchsia3w ago
Thank you for the info. I'll pass it on to @Henrik (JST) .
afraid-scarlet
afraid-scarlet3w ago
I'm already on it. I was unable to resolve it last time, but that's a good clue
metropolitan-bronze
metropolitan-bronzeOP3w ago
I actually got it working but I don't understand why, I was trying to figure out where it opened the websocket in the sources js so I added a XHR/fetch Breakpoint for URL contains "ws://" and then reloaded the app window, after I did that a websocket showed up and all of the features are working in anki now.
No description
metropolitan-bronze
metropolitan-bronzeOP3w ago
haha no problem, I wanted it fixed soo bad so I thought I would take it as far as I could. if you want you could try and replicate what I did and see if it gets yours working. open the dictionary window -> right click -> inspect -> sources and then add a breakpoint like i did and reload the window. idk maybe it was a weird fluke but that is the last thing I did
afraid-scarlet
afraid-scarlet3w ago
Weird indeed
afraid-scarlet
afraid-scarlet3w ago
@debido @a.e.doza @T Λ I P Λ N @Heishiro97 @japanesen1study Could you guys go to this website: https://websocketking.com/. And enter the this address in the bar: ws://localhost:44432/anki-connect, and click connect. It should look like this:
WebSocket King client: A testing and debugging tool for WebSockets
A WebSocket client for designed for testing and debugging WebSocket connections.
No description
afraid-scarlet
afraid-scarlet3w ago
Of course, while having Anki open
unwilling-turquoise
unwilling-turquoise3w ago
Thank you! I did that (although it's all greek to me) and it did work for me too!
unwilling-turquoise
unwilling-turquoise3w ago
No description
conscious-sapphire
conscious-sapphire3w ago
It did connect but are we to be expected to do this everytime we want to use the extension? Once it was connected on anki I closed the page ans went back to anki and is reflected disconnected again. Also, does this extension work with hianime? I tried animelon and it runs but the site itself is just mollasses slow. Thanks for your hard work it and getting this patched for now.
Minoqi
Minoqi3w ago
Migaku doesn’t officially work with hianime but you can try and see if it’ll work
constant-blue
constant-blue3w ago
have the exact same output setting the breakpoint makes the connection show up as connected in anki, but still all my requests (generate definitions) time out
useful-bronze
useful-bronze3w ago
hi I think I have the same exact problem as you, when adding a breakpoint do I do it exactly like this? After that what do I do next?
No description
useful-bronze
useful-bronze3w ago
Hi man did you find a solution to this?
xenial-black
xenial-black3w ago
Been having this issue as well since late April. I found that changing the "send card to" from "Migaku Memory" to "Anki" would somehow fix the connection to Anki temporarily. Just have to redo that each time you use them together. Also strangely, if you leave the "send card to" set to "Anki" and then close the extension, it messes the process up. Have to leave it set to "Migaku Memory" before closing.
useful-bronze
useful-bronze3w ago
it's still not working ;-; ok apparently this worked and it did connect, however whenever I click create card it doesn't automatically fill in the boxes of the map field
xenial-black
xenial-black3w ago
yeah, I'm not sure about that aspect of it. I mostly just use it for the dictionary hotkeys while using Anki
useful-bronze
useful-bronze3w ago
xenial-black
xenial-black3w ago
sending cards seems to work fine on my end, even when it says the browser extension isn't connected
xenial-black
xenial-black3w ago
here's a video to demonstrate the behaviour of the connection based on what option is toggled when the extension is closed
useful-bronze
useful-bronze3w ago
Yeah safe to say that this happens exactly on my computer as well; it's just that even though its connected I still cant send any cards to anki
constant-blue
constant-blue3w ago
omg that works for me, thank you so much!!
sunny-green
sunny-green3w ago
Been on holiday so I haven't changed anything but it shows up as connected on my end again
No description
other-emerald
other-emerald3w ago
Same issue here. Trick chaning "send card to" back and forth didn't work. Always says browser extension is not connected.
xenial-black
xenial-black3w ago
Maybe you've already done it this way, but just to make sure. Set the toggle to "Migaku Memory" first and then close the extension completely. Re-open it and then toggling it to "Anki" should work. It's important to always set it back to "Migaku Memory" before closing the extension or else it does nothing. Reproducible 100% of the time on my end.
passive-yellow
passive-yellow3w ago
I probably have a related issue here. I want to connect Migaku to Anki to import on a deck from the second, to the first. But as you can see on the screenshot I can't do it as I get a "You need to update the Migaku Add-on to the latest version." even though I have the latest version.
No description
Minoqi
Minoqi3w ago
Are you on chrome?
passive-yellow
passive-yellow3w ago
I'm on Brave, so chromium yes
Minoqi
Minoqi3w ago
They only support officially chrome, try in there and see if you still have an issue
passive-yellow
passive-yellow3w ago
That was indeed the problem, thank you for your help

Did you find this page helpful?