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

NativeApp: DisconnectErr:Access to the specified native messaging host is forbidden. #273

Open
supperrain opened this issue Jun 12, 2022 · 1 comment

Comments

@supperrain
Copy link

app.log:

Logfile created on 2022-06-12 21:47:08 +0800 by logger.rb/v1.5.0

I, [2022-06-12T21:47:08.780921 #25196] INFO -- : App Start
I, [2022-06-12T21:47:08.781182 #25196] INFO -- : Version: 0.2.9
I, [2022-06-12T21:47:08.781422 #25196] INFO -- : Ruby Version: 3.1.2
I, [2022-06-12T21:47:08.781683 #25196] INFO -- : Msg handler: default
I, [2022-06-12T21:47:08.781925 #25196] INFO -- : Encoding:
I, [2022-06-12T21:47:08.782015 #25196] INFO -- : Script => UTF-8
I, [2022-06-12T21:47:08.782100 #25196] INFO -- : Locale => GBK
I, [2022-06-12T21:47:08.782183 #25196] INFO -- : Filesystem => UTF-8
I, [2022-06-12T21:47:08.782268 #25196] INFO -- : Default external => UTF-8
I, [2022-06-12T21:47:08.782349 #25196] INFO -- : Default internal => nil

插件显示错误信息:
NativeApp: DisconnectErr:Access to the specified native messaging host is forbidden.

@mika-cn
Copy link
Owner

mika-cn commented Aug 8, 2022

奇怪,如果能產生日誌內容,那麼瀏覽器已經去啓動了本地程序,那麼應該已經對接成功了,怎麼還會顯示這個錯誤。

你下載的本地程序,是和瀏覽器相對應的嗎?

一般這個錯誤是安裝的 MaoXian 擴展的 ID ,不在 「本地程序」 manifest.json 里的百名單才會產生的。


你可以查看一下 MaoXian 擴展的 ID 是否在 「本地程序」的百名單里。

Chrome 和 Chromium 進入 about:extensions,然後打開 開發者模式,就能看到 MaoXian 擴展的 ID。

Firefox 請進入 about:debugging ,既可查看。

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