alfredapp/1password-workflow

actioning an Alfred Result does nothing

godbout opened this issue · 14 comments

Diagnostic

Workflow version

2023.10

Alfred version

5.1.2

macOS version

13.5.2

Architecture

arm64

Preferences

Dict {
logins_only = true
}

1Password version

8.10.13

op version

2.21.0

Launchd job

Loaded: - 0 com.alfredapp.vitor.1password
Installed

Debugger output

[01:23:22.499] 1Password[Script Filter] Queuing argument '(null)'
[01:23:22.578] 1Password[Script Filter] Script with argv '(null)' finished
[01:23:22.582] 1Password[Script Filter] {"items":[{"uid":"ivfwtrqwfulhcyavzan2mllghm",
.........
.........
........CUT BECAUSE THIS IS TOO HUGE FOR GITHUB AND ALSO CONTAINS PRIVATE INFO??
........
........
"url":"https://www.elance.com/php/reg/main/createAccount.php?job=1"}},"shift" [truncated]
[01:23:37.272] 1Password[Script Filter] Processing complete
[01:23:37.272] 1Password[Script Filter] Passing output '' to Junction
[01:23:37.272] 1Password[Junction] Processing complete
[01:23:37.272] 1Password[Junction] Passing output '' to Automation Task
[01:23:37.274] 1Password[Automation Task] Running task 'Is App Running?' with arguments (
    "com.1password.1password"
)
[01:23:37.309] 1Password[Automation Task] Processing complete
[01:23:37.310] 1Password[Automation Task] Passing output 'true
' to Conditional
[01:23:37.310] 1Password[Conditional] Processing complete
[01:23:37.310] 1Password[Conditional] Passing output 'true
' to Conditional

More details

i've updated the Workflow to the latest version, then it stopped working. i've reseted the Workflow, updating the items again, but same thing. i feel lost and sad.

i've cut the middle of the debug output because it was too long to paste (65536 characters max in field). AND ALSO WAS CONTAINING SENSITIVE INFO>

  1. Was 1Pasword running at the time?
  2. Which modifier did you use?
  3. What was the action that you wanted?
  • Was 1Pasword running at the time?

yes.

  • Which modifier did you use?

command. but also none.

  • What was the action that you wanted?

Safari opens with the URL of the Alfred Result selected, and fills the logins. kinda like usual. but maybe i'm missing something?

Can you try this version? You’ll need to Force Update Items again.

Can you try this version? You’ll need to Force Update Items again.

we have a winner 🧁️

Thank you for the fast feedback. Released 2023.11, will be in the Gallery in a moment.

2023.11 works great. thanks!

@vitorgalvao ok, back here. it does work on my Mac mini M2, but it doesn't work anymore on my MBP Intel... then i've reset the Workflow on that MBP, signed in again (got the popup), and then nothing happens. 1p now keep showing Sign in and update items. i've rebooted blah blah blah.

what do you want me to do now? open a new issue? paste the diagnostic of the MBP here?

fyi, when i reset the Workflow on the MBP:

[13:52:43.709] ERROR: 1Password[Automation Task] Task Argument Error: Expecting single or multiple inputs. Warnings: ( "Passed in file '/Users/guill/Library/Application Support/Alfred/Workflow Data/com.alfredapp.vitor.1password' does not exist, discarding", "Passed in file '/Users/guill/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.alfredapp.vitor.1password' does not exist, discarding" )

i sync my Settings through Dropbox.

paste the diagnostic of the MBP here?

Yes, please. Plus the debugger when trying to sign in.

Diagnostic

Workflow version

2023.11

Alfred version

5.1.2

macOS version

14.0

Architecture

i386

Preferences

Default

1Password version

8.10.16-43.BETA

op version

2.21.0

Launchd job

NOT loaded
NOT installed

Debugger

[02:22:22.726] 1Password[Script Filter] Queuing argument '(null)'
[02:22:22.809] 1Password[Script Filter] Script with argv '(null)' finished
[02:22:22.814] 1Password[Script Filter] {
"rerun": 0.1,
"items": [{
"variables": { "action": "update_items" },
"title": "Sign in and update items",
"arg": "update_items",
"icon": { "path": "composite_icon.png" }
}]
}
[02:22:22.914] 1Password[Script Filter] Queuing argument '(null)'
[02:22:23.006] 1Password[Script Filter] Script with argv '(null)' finished
[02:22:23.009] 1Password[Script Filter] {
"rerun": 0.1,
"items": [{
"variables": { "action": "update_items" },
"title": "Sign in and update items",
"arg": "update_items",
"icon": { "path": "composite_icon.png" }
}]
}
[02:22:23.103] 1Password[Script Filter] Queuing argument '(null)'
[02:22:23.184] 1Password[Script Filter] Script with argv '(null)' finished
[02:22:23.193] 1Password[Script Filter] {
"rerun": 0.1,
"items": [{
"variables": { "action": "update_items" },
"title": "Sign in and update items",
"arg": "update_items",
"icon": { "path": "composite_icon.png" }
}]
}
[02:22:23.291] 1Password[Script Filter] Queuing argument '(null)'
[02:22:23.316] 1Password[Script Filter] Script with argv '(null)' finished
[02:22:23.322] 1Password[Script Filter] {
"rerun": 0.1,
"items": [{
"variables": { "action": "update_items" },
"title": "Sign in and update items",
"arg": "update_items",
"icon": { "path": "composite_icon.png" }
}]
}
[02:22:23.421] 1Password[Script Filter] Queuing argument '(null)'
[02:22:23.467] 1Password[Script Filter] Processing complete
[02:22:23.474] 1Password[Script Filter] Passing output 'update_items' to Junction
[02:22:23.476] 1Password[Junction] Processing complete
[02:22:23.478] 1Password[Junction] Passing output 'update_items' to Automation Task
[02:22:23.480] 1Password[Automation Task] Running task 'Is App Running?' with arguments (
"com.1password.1password"
)
[02:22:23.563] 1Password[Automation Task] Processing complete
[02:22:23.569] 1Password[Automation Task] Passing output 'true
' to Conditional
[02:22:23.570] 1Password[Conditional] Processing complete
[02:22:23.573] 1Password[Conditional] Passing output 'true
' to Conditional
[02:22:23.574] 1Password[Conditional] Processing complete
[02:22:23.575] 1Password[Conditional] Passing output 'true
' to Run Script
[02:22:23.727] 1Password[Run Script] Processing complete
[02:22:23.736] 1Password[Run Script] Passing output '' to Conditional
[02:22:23.739] 1Password[Conditional] Processing complete
[02:22:23.741] 1Password[Conditional] Passing output '' to Run Script
[02:22:23.826] 1Password[Run Script] Processing complete
[02:22:23.827] 1Password[Run Script] Passing output '' to Conditional
[02:22:23.829] 1Password[Conditional] Processing complete
[02:22:23.834] 1Password[Conditional] Passing output '' to Run Script

Does op item list work in a terminal? Where is op on that Mac? Have you installed it with Homebrew too?

Does op item list work in a terminal?

not working. interesting. just seems to be hanging.

Where is op on that Mac? Have you installed it with Homebrew too?

/usr/local/bin/op. installed through Homebrew yes. version 2.21.0.

will remove and reinstall and see.

not working. interesting. just seems to be hanging.

will remove and reinstall and see.

after removing and reinstalling, it works in the Terminal. still not through Alfred tho. will explore the debug info and diagnostic and will come back to you.

debug looks clean:

[15:13:22.296] 1Password[Script Filter] Queuing argument '(null)'
[15:13:22.362] 1Password[Script Filter] Processing complete
[15:13:22.367] 1Password[Script Filter] Passing output 'update_items' to Junction
[15:13:22.369] 1Password[Junction] Processing complete
[15:13:22.370] 1Password[Junction] Passing output 'update_items' to Automation Task
[15:13:22.371] 1Password[Automation Task] Running task 'Is App Running?' with arguments (
"com.1password.1password"
)
[15:13:22.414] 1Password[Automation Task] Processing complete
[15:13:22.418] 1Password[Automation Task] Passing output 'true
' to Conditional
[15:13:22.420] 1Password[Conditional] Processing complete
[15:13:22.421] 1Password[Conditional] Passing output 'true
' to Conditional
[15:13:22.422] 1Password[Conditional] Processing complete
[15:13:22.424] 1Password[Conditional] Passing output 'true
' to Run Script
[15:13:22.509] 1Password[Run Script] Processing complete
[15:13:22.510] 1Password[Run Script] Passing output '' to Conditional
[15:13:22.511] 1Password[Conditional] Processing complete
[15:13:22.517] 1Password[Conditional] Passing output '' to Run Script
[15:13:22.596] 1Password[Run Script] Processing complete
[15:13:22.597] 1Password[Run Script] Passing output '' to Conditional
[15:13:22.603] 1Password[Conditional] Processing complete
[15:13:22.604] 1Password[Conditional] Passing output '' to Run Script

i'm on the latest macOS 14 public beta tho. so maybe it's something related to that. i think the dialog to give access to op for Alfred is kinda new. maybe we don't bother with the issue until macOS 14 is properly released. at that time if it's a common issue you should get more reports. till now i guess it's fine, i'll just dig into it myself.