browserpass / browserpass-native

Browserpass native client app
ISC License
394 stars 50 forks source link

Native host exit with json parse error #120

Closed DanSnow closed 2 years ago

DanSnow commented 2 years ago

General information

Exact steps to reproduce the problem

  1. Open the popup and click on a password entry
  2. Browserpass said: Native host has exited

What should happen?

Fill in password

What happened instead?

error

Additional info

I extracted the message that sent to native host with devtool, it's (has removed some personal data) :

{
  "action": "fill",
  "login": {
    "index": 18,
    "store": {
      "id": "default",
      "name": "pass",
      "path": "/path/to/store",
      "settings": {},
      "when": 1651231044739
    },
    "login": "entry name",
    "allowFill": true,
    "host": "example.com",
    "inCurrentHost": true,
    "recent": {
      "when": 1650873370377,
      "count": 71
    },
    "path": "example.com/",
    "display": "display"
  }
}

(pretty-print with jq, it's in one line originally)

And send this to the native host in the terminal and got this message:

ERRO[2022-04-30T10:25:55+08:00] Unable to parse the browser request: invalid character 'i' in literal true (expecting 'r')
DanSnow commented 2 years ago

My bad. My password file is malformed.