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

Workflow doesn't log in to Lastpass #33

Closed
RowanKaag opened this issue May 18, 2016 · 15 comments
Closed

Workflow doesn't log in to Lastpass #33

RowanKaag opened this issue May 18, 2016 · 15 comments

Comments

@RowanKaag
Copy link

RowanKaag commented May 18, 2016

lp a

Starting debug for 'LastPass CLI'

[2016-05-18 16:05:55][ERROR: input.scriptfilter] Code 1: <?xml version="1.0"?>
<items>
<item uid="error-login"><arg>scriptlocationnotset</arg><title>It appears you are not logged in to LastPass.</title><subtitle>Please login using the 'lplogin' command or press 'ctrl' + enter to login now.</subtitle><icon>icon.png</icon></item>
</items>

[2016-05-18 16:21:03][ERROR: action.script] Usage: /usr/local/bin/lpass show [--sync=auto|now|no] [--clip, -c] [--expand-multi, -x] [--all|--username|--password|--url|--notes|--field=FIELD|--id|--name] [--basic-regexp, -G|--fixed-strings, -F] [--color=auto|never|always] {UNIQUENAME|UNIQUEID}

lplogin

[2016-05-18 16:06:01][ERROR: action.script] 2845:2846: syntax error: Expected end of line but found “"”. (-2741)

lpass cli

$ lpass login *****@*****.**
Success: Logged in as ********

I'm supposing it has something to do with OS X 10.11.5 and/or Alfred 3.
Didn't have problems with the 'scriptlocationnotset' before.

@colbyfayock
Copy link

@stuartcryan this is fixed updating Alfred 2 to Alfred 3, for Alfred 3 users in here:

screen shot on 2016-05-19 at 14-03-49

Was thinking of doing a PR, but no idea how to compile Alfred workflows or how to handle using either version in there :)

@RowanKaag
Copy link
Author

RowanKaag commented May 19, 2016

@colbyfayock what did you do to fix it? I'm rather dependend on this workflow 😳

guessing it's this?:
set osascript to (system attribute "alfred_preferences") & "/workflows/" & (system attribute "alfred_workflow_uid") & "/passwordInput.osascript"

@stuartcryan
Copy link
Owner

Hi All,
Colby, thanks for pointing that out, can you both please test this new beta version. And ensure it resolves the issue.

Download from: https://dl.dropboxusercontent.com/u/9093155/LastPass%20CLI_1.4.6_beta1.alfredworkflow

Once you have confirmed I will prepare a cross compatible version and then update it.
Cheers,
Stuart

@colbyfayock
Copy link

Yup, that does the trick. Thanks :D

@RowanKaag
Copy link
Author

Did the trick indeed!

@zlanich
Copy link

zlanich commented May 21, 2016

That worked!

@johnnypea
Copy link

+1

@timshutes
Copy link

timshutes commented Jun 11, 2016

Any update on this? Still broken - lplogin not working

@colbyfayock
Copy link

@timshutes did you try the solution he provided above?

@timshutes
Copy link

the beta version is - but there is still no fix for the cross-compatible version

@joey-postma
Copy link

I was getting the same error:
[ERROR: action.script] 2845:2846: syntax error: Expected end of line but found “"”. (-2741)

I tried the beta version but now I get another error:
[ERROR: action.script] 2637:2649: execution error: The variable lpass_binary is not defined. (-2753)

I followed every step in the documentation: http://www.packal.org/workflow/lastpass-cli-workflow-alfred

However when I get to the login step, I don't get the popup because of this error.

Please let me know if there is something else I can try.

Thanks

@stuartcryan
Copy link
Owner

Ladies and gentlemen... this has now been fixed and merged in and is now released.

I sincerely apologise for the delay... my masters course at university was extremely intense for me this semester and had to take priority.

@joey-postma please try the new version out... if there are any issues please log a new issue.

@tshaiman
Copy link

Alfred version 4 with LastPass v1.4.7 still has this issue as of July 2019 :

[16:27:26.562] LastPass CLI[Keyword] Processing complete
[16:27:26.562] LastPass CLI[Keyword] Passing output 'tshaiman@outlook.com' to Run Script
[16:27:26.664] LastPass CLI[Run Script] Processing complete
[16:27:26.667] LastPass CLI[Run Script] Passing output 'tshaiman@outlook.com
' to Post Notification
[16:27:31.936] LastPass CLI[Keyword] Processing complete
[16:27:31.937] LastPass CLI[Keyword] Passing output '' to Run Script
[16:27:32.122] ERROR: LastPass CLI[Run Script] 2845:2846: syntax error: Expected end of line but found “"”. (-2741)

@yogipatel5
Copy link

@tshaiman Having another issues.. but similar ending. You seem to be getting farther than I am.

[16:51:38.119] LastPass CLI[Keyword] Processing complete
[16:51:38.121] LastPass CLI[Keyword] Passing output '' to Run Script
[16:51:38.319] ERROR: LastPass CLI[Run Script] 2843:2844: syntax error: Expected end of line but found “"”. (-2741)

@ascandroli
Copy link

@tshaiman @yogipatel5 I just found the solution for that issue in #55

GabLeRoux pushed a commit to GabLeRoux/lastpass-alfred-workflow that referenced this issue Sep 27, 2021
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

10 participants