Commander icon indicating copy to clipboard operation
Commander copied to clipboard

download-membership keeps failing

Open mk-armanino opened this issue 11 months ago • 5 comments

Hello, I am currently running download-membership --source=lastpass and I receive the following response: 'utf-8' codec can't decode byte 0xf8 in position 0: invalid start byte No folder memberships downloaded.

The character in question is ø, this is a part of the name of a client, so it is legitimate, and I do want the non-Latin character exported.

What is the best way to go about running this to get the folder memberships?

mk-armanino avatar Mar 28 '25 14:03 mk-armanino

We receive reports like similar to this one periodically, but could never duplicate it. Non-Latin characters are loaded just fine providing that these characters are UTF-8 encoded. The data returned by LastPass seems to be encoded with Latin-1 code page in your case.

Loading shared folder membership for "Shared-BilløFolder"

What is the Commander version you are running? Do you use Windows 10 to run Commander? Can you try to rename this folder and type the same text? Probably the folder name will be saved in UTF-8 this time.

sk-keeper avatar Mar 29 '25 18:03 sk-keeper

Hey sk, thank you for the reply. Currently the commander version is v16.11.17. I'm using Windows 11 to run Commander. I renamed the folder to the same name and saved, unfortunately it did not work.

mk-armanino avatar Mar 31 '25 13:03 mk-armanino

The Commander shows debug information when debug mode is on. The debug command toggles the debug mode. import in the debug mode show requests to the LastPass backend. Here is the output

https://lastpass.com:443 "GET /iterations.php?email=lastpass%40gmail.com HTTP/1.1" 200 6
Starting new HTTPS connection (1): lastpass.com:443
https://lastpass.com:443 "POST /login.php HTTP/1.1" 200 3298
Starting new HTTPS connection (1): lastpass.com:443
https://lastpass.com:443 "GET /getaccts.php?mobile=1&requestsrc=cli&hasplugin=3.0.23 HTTP/1.1" 200 36387
Loading shared folder membership for "Shared-BilløFolder"
Starting new HTTPS connection (1): lastpass.com:443
https://lastpass.com:443 "GET /getSharedFolderMembers.php?mobile=1&requestsrc=cli&hasplugin=3.0.23&shareid=294724411 HTTP/1.1" 200 715

getaccts loads LastPass vault getSharedFolderMembers loads shared folder membership

Do you see that error after getaccts or getSharedFolderMembers request? It will help us to identify the area where this error occurs.

sk-keeper avatar Mar 31 '25 18:03 sk-keeper

Hey, My apologies on the delay. I see the error after getaccts: https://lastpass.com:443 "GET /getaccts.php?mobile=1&requestsrc=cli&hasplugin=3.0.23 HTTP/1.1" 200 None 'utf-8' codec can't decode byte 0xf8 in position 0: invalid start byte

mk-armanino avatar Apr 23 '25 12:04 mk-armanino

None means the response from Lastpass has no data. This API call returns Lastpass vault data including shared folders.

It is really hard to tell whygetaccts.php has empty output. Lastpass generally returns error description if the vault data cannot be returned. Do you have any proxy in your company that can abnormally cancel network requests? Do you know what Lastpass datastore your vault is located? US or EU?

The Commander's direct email is [email protected].

sk-keeper avatar Apr 23 '25 14:04 sk-keeper

Thank you, I was able to utilize Commander with a different LastPass tenant we were bringing into keeper, on our domain and it worked fine, I went back to the one I was working with, Deleted the record that contained the ø symbol. I Closed out of Commander and started it again fresh, unfortunately same issue. I figured maybe it was just the memberships, so I tried the import command. Here is the snip of the debug:

Starting new HTTPS connection (1): lastpass.com:443 https://lastpass.com:443 "GET /iterations.php?email=myemailaddress.com HTTP/1.1" 200 6 Starting new HTTPS connection (1): lastpass.com:443 https://lastpass.com:443 "POST /login.php HTTP/1.1" 200 3365 Starting new HTTPS connection (1): lastpass.com:443 https://lastpass.com:443 "GET /getaccts.php?mobile=1&requestsrc=cli&hasplugin=3.0.23 HTTP/1.1" 200 None 'utf-8' codec can't decode byte 0xf8 in position 0: invalid start byte Traceback (most recent call last): File "keepercommander\cli.py", line 425, in loop File "keepercommander\cli.py", line 270, in do_command File "keepercommander\importer\commands.py", line 182, in execute_args File "keepercommander\commands\base.py", line 544, in execute_args File "keepercommander\importer\commands.py", line 258, in execute File "keepercommander\importer\imp_exp.py", line 727, in _import File "keepercommander\importer\importer.py", line 296, in execute File "keepercommander\importer\lastpass\lastpass.py", line 153, in do_import File "keepercommander\importer\lastpass\vault.py", line 27, in open_remote File "keepercommander\importer\lastpass\vault.py", line 49, in init File "keepercommander\importer\lastpass\vault.py", line 118, in parse_accounts File "keepercommander\importer\lastpass\parser.py", line 190, in parse_ATTA UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf8 in position 0: invalid start byte An unexpected error occurred: 'utf-8' codec can't decode byte 0xf8 in position 0: invalid start byte. Type "debug" to toggle verbose error output

Any help is appreciated.

mk-armanino avatar May 08 '25 19:05 mk-armanino

[https://lastpass.com:443] "GET /getaccts.php?mobile=1&requestsrc=cli&hasplugin=3.0.23 HTTP/1.1" 200 None

None at the end of line is suspicious. It looks like the LastPass backend (or some proxy) cancelled the request with no response. Can you check the LastPass Admin Console for any issue?

sk-keeper avatar May 29 '25 17:05 sk-keeper

Update: I worked with the development team; the issue was fixed with the 17.1.14 Commander update. Thank you for your help!

mk-armanino avatar Aug 26 '25 12:08 mk-armanino