{"action":"created","issue":{"url":"https://api.github.com/repos/passff/passff/issues/320","repository_url":"https://api.github.com/repos/passff/passff","labels_url":"https://api.github.com/repos/passff/passff/issues/320/labels{/name}","comments_url":"https://api.github.com/repos/passff/passff/issues/320/comments","events_url":"https://api.github.com/repos/passff/passff/issues/320/events","html_url":"https://github.com/passff/passff/issues/320","id":310224953,"number":320,"title":"Connection to the host app failed or returned an unexpected result","user":{"login":"kode9","id":1242014,"avatar_url":"https://avatars2.githubusercontent.com/u/1242014?v=4","gravatar_id":"","url":"https://api.github.com/users/kode9","html_url":"https://github.com/kode9","followers_url":"https://api.github.com/users/kode9/followers","following_url":"https://api.github.com/users/kode9/following{/other_user}","gists_url":"https://api.github.com/users/kode9/gists{/gist_id}","starred_url":"https://api.github.com/users/kode9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kode9/subscriptions","organizations_url":"https://api.github.com/users/kode9/orgs","repos_url":"https://api.github.com/users/kode9/repos","events_url":"https://api.github.com/users/kode9/events{/privacy}","received_events_url":"https://api.github.com/users/kode9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-31T08:49:27Z","updated_at":"2018-04-01T09:11:04Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nWhen I click on the passff button, I have the following message instead of the normal menu:\r\n\r\n```\r\nConnection to the host app failed or returned an unexpected result!\r\n\r\nMake sure you have the latest version of the PassFF host app installed by following the installation instructions on GitHub.\r\n```\r\n\r\nI'm on `Arch Linux`, `Firefox 59.0.2 (64-bit)`, `pass v1.7.1`, `PassFF 1.3b`, `Host app 1.0.1.r9.bbf47a444`.\r\n\r\nIf I enable add-ons debugging, disable passff then enabled it again, I have this in the debug console :\r\n\r\n```\r\n[PassFF] Message Pass.loadItems received in background  util.js:36:9\r\n[PassFF] Error executing pass script Error: An unexpected error occurred  util.js:36:9\r\n\tlogPrototype moz-extension://87812f35-03bc-4333-951a-027f5598c0ce/modules/util.js:36:9\r\n\tPassFF.Pass.executePass</< moz-extension://87812f35-03bc-4333-951a-027f5598c0ce/modules/pass.js:207:13\r\n[PassFF] loadItems failed!  util.js:36:9\r\n[PassFF] Init auth module  util.js:36:9\r\n[PassFF] Awaiting tab init... 50 about:addons  util.js:36:9\r\n[PassFF] Tab init done 50 about:addons  util.js:36:9\r\n[PassFF] Awaiting tab init... 50 about:addons  util.js:36:9\r\n[PassFF] Tab init done 50 about:addons  util.js:36:9\r\n```\r\n\r\nI then have this every time I click on the passff button :\r\n\r\n```\r\n[PassFF] Awaiting tab init... 50 about:addons  util.js:36:9\r\n[PassFF] 0 matches for about:addons  util.js:36:9\r\n[PassFF] Tab init done 50 about:addons  util.js:36:9\r\n[PassFF] Message Pass.loadItems received in background  util.js:36:9\r\n[PassFF] Message Menu.getLastState received in background  util.js:36:9\r\n[PassFF] Create menu list Array [  ]  util.js:36:9\r\n[PassFF] Create children menu list Array [  ] true  util.js:36:9\r\n[PassFF] Awaiting tab init... 50 about:addons  util.js:36:9\r\n[PassFF] Tab init done 50 about:addons  util.js:36:9\r\n```\r\n\r\nUsing the host app directly:\r\n\r\n```\r\n➤ echo -e \"\\x02\\x00\\x00\\x00[]\" | /usr/lib/mozilla/native-messaging-hosts/passff.py |  tail -c +4; ech\r\n\r\n|{\"exitCode\": 0, \"stdout\": \"Password Store\\n\r\n\r\n\"stderr\": \"\", \"version\": \"1.0.1.r9.bbf47a4443\"\r\n```\r\n\r\nwith pass entries names in-between.\r\n\r\n`pass` itself works correctly.\r\n"},"comment":{"url":"https://api.github.com/repos/passff/passff/issues/comments/377773559","html_url":"https://github.com/passff/passff/issues/320#issuecomment-377773559","issue_url":"https://api.github.com/repos/passff/passff/issues/320","id":377773559,"user":{"login":"kode9","id":1242014,"avatar_url":"https://avatars2.githubusercontent.com/u/1242014?v=4","gravatar_id":"","url":"https://api.github.com/users/kode9","html_url":"https://github.com/kode9","followers_url":"https://api.github.com/users/kode9/followers","following_url":"https://api.github.com/users/kode9/following{/other_user}","gists_url":"https://api.github.com/users/kode9/gists{/gist_id}","starred_url":"https://api.github.com/users/kode9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kode9/subscriptions","organizations_url":"https://api.github.com/users/kode9/orgs","repos_url":"https://api.github.com/users/kode9/repos","events_url":"https://api.github.com/users/kode9/events{/privacy}","received_events_url":"https://api.github.com/users/kode9/received_events","type":"User","site_admin":false},"created_at":"2018-04-01T09:11:04Z","updated_at":"2018-04-01T09:11:04Z","author_association":"NONE","body":"@tuxor1337 The version string is set by the packaging script [0].\r\n\r\nIs installed the `git` version of the package to see if it would resolve the problem. \r\nI installed back the `stable` version of the package [1], now the version string is `1.0.1` but I still have the issue\r\n\r\n```\r\n➤ echo -e \"\\x02\\x00\\x00\\x00[]\" | /usr/lib/passff/passff.py |  tail -c +4; echo\r\n{\"exitCode\": 0, \"stdout\": \"Password Store\\n\r\n\r\n, \"stderr\": \"\", \"version\": \"1.0.1\"}\r\n```\r\n\r\n[0] https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=passff-host-git#n25\r\n[1] https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=passff-host#n2"}}
{"actor":{"display_login":"kode9"}}