Open Damariobros opened 2 weeks ago
I found a temporary solution but it's fucked
First, download the latest CLI from Bitwarden's official CLI documentation on the Bitwarden website, then replace C:\Program Files\Auto-Type\bw.exe with the new one extracted from the archive.
Then, go to C:\Users\Damariobros\AppData\Roaming\Auto-Type and delete data.json.
If you didn't do so already, close AutoType. Then open it back up and login using your API key. Should sync successfully.
Also of note is that if you don't delete data.json and try to sync the M in the debug log will be capitalized instead of lowercase. Dunno if that's significant but it's something I noticed.
This problem needs to be fixed though.
Update: The above workaround seems to not remember your login. If you exit Autotype, the next time it opens it will ask for login again but then attempting to login will result in an error that says you are already logged in, resulting in you having to delete data.json again to be able to login. Fuck.
This issue where it gives the "m" in position 1 error is happening for EVERY version of Bitwarden CLI except for the latest version as downloaded from Bitwarden's CLI documentation, which instead glitches the login state on restart. I think Bitwarden maybe did something that broke this app.
Trying to click the logout button with the latest CLI installed also results in a glitched login state, and you have to delete data.json to log back in.
Syncing is failing every time now. I added a new URI for a login I wanted to autotype into one of my programs, synced it on Bitwarden, then waited a few minutes and synced it on Autotype, and now it is failing every single time and will not autofill anything at all. Logging out and back in, closing the application, syncing at different times, nothing is working.
Here is the error log:
{ "A_Error": { "Extra": "Unexpected character at position 1: 'm'", "File": "bw-at.exe", "Line": 832, "Message": "Failed to parse JSON (-1,0)", "What": "-1" }, "A_Info": { "locked": 0, "logged": 1, "portable": 0, "session": 1, "status": "unlocked", "sync": "2024-08-27T23:18:23.413Z", "version": "1.1.33.10", "windows": "10.0.19045" }, "ADVANCED": { "field": "auto-type", "NODE_EXTRA_CA_CERTS": "", "pin-length": "6", "reprompt-with-pin": "1", "server": "", "tcato-ksps": "10", "tcato-wait": "250", "update-frequency": "1" }, "CREDENTIALS": { "api-key": "1", "client-id": "Present", "client-secret": "Present", "tsl": "2", "user": "Present" }, "DATA": { "pin": "Present", "update": "1724798822", "version": "1.1" }, "GENERAL": { "action": "1", "favicons": "1", "pin": "1", "sync": "0", "tcato": "1", "timeout": "10", "totp": "0", "updates": "1" }, "GENERATOR": { "digits": "1", "exclude": "", "length": "39", "lower": "1", "symbols": "1", "upper": "1" }, "HOTKEYS": { "default": "#^!a", "password": "#^!p", "totp": "^!o", "username": "^!u" }, "SEQUENCES": { "default": "{ClearField}{Username}{SmartTab}{Password}{Enter}", "password": "{ClearField}{Password}{Enter}", "totp": "{TOTP}", "username": "{ClearField}{Username}" } }