vitor Posted May 23, 2023 Author Posted May 23, 2023 Welcome @Cristina, When asking about an existing Workflow, it’s best to use its own forum thread. While it may seem that starting a new thread could give your problem visibility, it fragments the discussion and makes it less likely the author and users of the workflow (the people who can help) will see it. I’ve moved your post to the correct location. Please follow the steps in the second post, namely running !1pdiagnostic.
Cristina Posted May 23, 2023 Posted May 23, 2023 Oh, my apologies, will definitely do that next time. Appreciate it.
vitor Posted May 23, 2023 Author Posted May 23, 2023 Did the second post fix your issue? If not, I’ll still need the diagnostic to look into it.
Cristina Posted May 23, 2023 Posted May 23, 2023 Hello, I set up 1Password 8 workflow: Installed 1P CLI Turned on CLI in 1P Developer tab Set up touch Logged in using CLI Added 1Password 8 workflow to Alfred Initially I was getting an error in the debugger: "json text did not start with array or object and option to allow fragments not set". After not finding much in the way of help, I decided to try: Force Update Items. Now the error is gone and I see logging of items in my vaults, but I still can't get any results when I type 1p. I also tried changing the config for 1p to something else and that doesn't seem to work either even after quitting and restarting Alfred. When I run `op item list` I do get the list of my items, no errors. Any ideas of what I could have missed? I am using zsh in case that is of consequence. Here is the diagnostics output: ### Workflow version 2023.7 ### Alfred version 5.1 ### macOS version 13.4 ### Architecture arm64 ### Preferences Dict { } ### 1Password version 8.10.6 ### op version 2.18.0 ### Launchd job Loaded: - 0 com.alfredapp.vitor.1password Installed
vitor Posted May 23, 2023 Author Posted May 23, 2023 32 minutes ago, Cristina said: Now the error is gone and I see logging of items in my vaults, but I still can't get any results when I type 1p. I think it’ll help to see a video with the debugger open. You can record your screen with built-in macOS tools. It’s fine to send via direct message.
vitor Posted June 2, 2023 Author Posted June 2, 2023 Updated to 2023.8.Add option to only show one entry even when multiple URLs.Rework checkboxes in Configuration.Simplify op path checks. Samplex 1
Faris Najem Posted June 17, 2023 Posted June 17, 2023 Hi every one, Since I started working on Alfred, I have repeatedly tried to run the 1Password workflow, but it never works. It just displays some options, for example, in "1Password Extras" it shows "manage vaults", and when I try to select one, it asks me to sign into my account, and after I attempt to sign in, everything disappears. The attached gif below demonstrates the problem. That's exactly what happens in other options. I have done everything I know to run the workflow. For example, I installed the 1Password CLI and configured it in the 1Password settings as shown in the attached image below. Can you please help? macOS Catalina 10.15.7 Alfred 5.1.1 1Password 8.10.7
Stephen_C Posted June 17, 2023 Posted June 17, 2023 When you post with a problem about a specific workflow please post in the relevant thread for that workflow. That way the developer will see your post more easily. Please also post the result of the debugger when running the workflow. Stephen
vitor Posted June 17, 2023 Author Posted June 17, 2023 You’re supposed to run 1p, without the colon. See the Workflow’s About for instructions, including how to report an issue.
caractacus07 Posted June 17, 2023 Posted June 17, 2023 First off, thank you @vitor for an amazing workflow! I LOVE and use(d) it constantly! However, I think I updated my computer or updated Alfred or something, and the workflow broke. :( Now, I'm struggling getting the new 1Password 8 workflow working again. I'm sure I just need to uncheck or recheck something? I'm not a developer and just fumbling my way through things. I've tried going through this forum, and I think I've tried everything, but maybe I missed a step? I *think* I've correctly installed the 1Password CLI and then clicked the "Connection to 1Password CLI" in Alfred's Developer settings. I know in one comment you said that the CLI is slow so I'm not sure how long is reasonable to wait ... 10 minutes? 2 hours? It's been stuck there for probably about an hour now. I've restarted the computer, tried :1pextras to reset the Workflow, as well as force updating the items. In the terminal, when I write "op item list" I get this (I assume broken pipe is not a good thing?): [ERROR] 2023/06/17 09:34:16 Get "https://my.1password.com/api/v2/account/keysets?__t=1687019656.003": write tcp [2600:8800:324:3500:f59e:759f:40cf:ef5d]:53137->[2600:1f18:60d5:4e00:79ba:3d49:8c30:c40e]:443: write: broken pipe And this is my diagnostic report (pretty darn short!): ### Workflow version 2023.8 ### Alfred version 5.1.1 ### macOS version 13.4 ### Architecture i386 ### Preferences Dict { } ### 1Password version 8.10.7 ### op version 2.18.0 ### Launchd job Loaded: - 0 com.alfredapp.vitor.1password Installed
vitor Posted June 17, 2023 Author Posted June 17, 2023 Thank you for the kind words. 1 hour ago, caractacus07 said: In the terminal, when I write "op item list" I get this Unfortunately, that’s not something I can fix. As you see, it’s caused by the 1Password tool so you’ll need to contact their support to solve it. Once it works in the terminal, it should work in the workflow. Your diagnostic is otherwise fine. caractacus07 1
Faris Najem Posted June 26, 2023 Posted June 26, 2023 On 6/17/2023 at 3:02 PM, Stephen_C said: When you post with a problem about a specific workflow please post in the relevant thread for that workflow. That way the developer will see your post more easily. Please also post the result of the debugger when running the workflow. Stephen On 6/17/2023 at 3:02 PM, Stephen_C said: When you post with a problem about a specific workflow please post in the relevant thread for that workflow. That way the developer will see your post more easily. Please also post the result of the debugger when running the workflow. Stephen Hi Stephen, I'm sorry I was a bit off work, so I couldn't see your response that I thank you for. This is result of the debugger: [10:03:05.152] Logging Started... [10:03:20.602] STDERR: 1Password[Run Script] panic: runtime error: index out of range [0] with length 0 goroutine 1 [running]: github.com/elastic/go-sysinfo/providers/darwin.kern_procargs(0xc0004c4098?, 0xc00007e0f0) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/elastic/go-sysinfo/providers/darwin/process_darwin.go:214 +0x62f github.com/elastic/go-sysinfo/providers/darwin.(*process).Info(0xc00007e0f0) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/elastic/go-sysinfo/providers/darwin/process_darwin.go:106 +0x1b4 go.1password.io/op/core/procinfo.process.Executable(...) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/process_darwin.go:37 go.1password.io/op/core/procinfo.findNearestChildProcessInfo({0x100d64a50?, 0xc00007a3a0?}, 0x1) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/session_info.go:47 +0x48 go.1password.io/op/core/procinfo.getSessionInfo() /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/session_info_unix.go:29 +0x12f go.1password.io/op/core/procinfo.CurrentSessionInfo(...) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/session_info.go:21 go.1password.io/op/op-cli/desktopapp/ipc.clientInfo() /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/ipc/ipc_darwin.go:77 +0x1e go.1password.io/op/op-cli/desktopapp/ipc.Connect({0x100d640e8, 0xc000469440}, {{0x100d61500, 0xc0003c0f60}, 0x7, {0x0, 0x0}, {0xc000320c00, 0x1, 0x1f4}, ...}) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/ipc/connection.go:61 +0xa5 go.1password.io/op/op-cli/desktopapp.connect({0x100d640b0?, 0xc00018e008?}) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/desktopapp.go:328 +0x9a go.1password.io/op/op-cli/desktopapp.ListAccounts() /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/desktopapp.go:93 +0x3e go.1password.io/op/op-cli/command.(*accountListCommand).Run(0xc00019ee10) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/account_list.go:47 +0x51 go.1password.io/op/op-cli/command.Bind.func3(0xc000435080?, {0xc000463890?, 0x0?, 0x3?}) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/command.go:71 +0x4e github.com/spf13/cobra.(*Command).execute(0xc000435080, {0xc000463860, 0x3, 0x3}) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/spf13/cobra/command.go:844 +0x67c github.com/spf13/cobra.(*Command).ExecuteC(0x101408ea0) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/spf13/cobra/command.go:952 +0x39d go.1password.io/op/op-cli/command.Execute() /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/root.go:331 +0x71 main.main() /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/main.go:15 +0x31 ./1password.js: execution error: Error: SyntaxError: JSON Parse error: Unexpected EOF (-2700) panic: runtime error: index out of range [0] with length 0 goroutine 1 [running]: github.com/elastic/go-sysinfo/providers/darwin.kern_procargs(0xc0000a3e00?, 0xc000109540) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/elastic/go-sysinfo/providers/darwin/process_darwin.go:214 +0x62f github.com/elastic/go-sysinfo/providers/darwin.(*process).Info(0xc000109540) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/elastic/go-sysinfo/providers/darwin/process_darwin.go:106 +0x1b4 go.1password.io/op/core/procinfo.process.Executable(...) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/process_darwin.go:37 go.1password.io/op/core/procinfo.findNearestChildProcessInfo({0x100d64a50?, 0xc0001fc7f0?}, 0x1) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/session_info.go:47 +0x48 go.1password.io/op/core/procinfo.getSessionInfo() /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/session_info_unix.go:29 +0x12f go.1password.io/op/core/procinfo.CurrentSessionInfo(...) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/session_info.go:21 go.1password.io/op/op-cli/desktopapp/ipc.clientInfo() /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/ipc/ipc_darwin.go:77 +0x1e go.1password.io/op/op-cli/desktopapp/ipc.Connect({0x100d640e8, 0xc0004f4fc0}, {{0x100d61500, 0xc000390f80}, 0x7, {0x0, 0x0}, {0xc0002f8c00, 0x1, 0x1f4}, ...}) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/ipc/connection.go:61 +0xa5 go.1password.io/op/op-cli/desktopapp.connect({0x100d640b0?, 0xc000126008?}) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/desktopapp.go:328 +0x9a go.1password.io/op/op-cli/desktopapp.ListAccounts() /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/desktopapp.go:93 +0x3e go.1password.io/op/op-cli/command.filterSystemAuthAccounts({0x0, 0x0}, {0x0, 0x0}) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/signin.go:295 +0x4e go.1password.io/op/op-cli/command.selectSystemAuthAccount({0x100d69b30, 0x101448588}, {0x0, 0x0}, {0x0?, 0x1b?}) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/signin.go:336 +0x85 go.1password.io/op/op-cli/command.SignInWithSystemAuth({0x100d69b30, 0x101448588}, {0x0?, 0x60?}) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/signin.go:215 +0x85 go.1password.io/op/op-cli/command.(*signinCommand).Run(0xc000398300) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/signin.go:153 +0x534 go.1password.io/op/op-cli/command.Bind.func3(0xc000327080?, {0xc0000a7a40?, 0x0?, 0x2?}) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/command.go:71 +0x4e github.com/spf13/cobra.(*Command).execute(0xc000327080, {0xc0000a7a20, 0x2, 0x2}) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/spf13/cobra/command.go:844 +0x67c github.com/spf13/cobra.(*Command).ExecuteC(0x101408ea0) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/spf13/cobra/command.go:952 +0x39d go.1password.io/op/op-cli/command.Execute() /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/root.go:331 +0x71 main.main() /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/main.go:15 +0x31 panic: runtime error: index out of range [0] with length 0 goroutine 1 [running]: github.com/elastic/go-sysinfo/providers/darwin.kern_procargs(0xc00042eb18?, 0xc0003b92c0) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/elastic/go-sysinfo/providers/darwin/process_darwin.go:214 +0x62f github.com/elastic/go-sysinfo/providers/darwin.(*process).Info(0xc0003b92c0) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/elastic/go-sysinfo/providers/darwin/process_darwin.go:106 +0x1b4 go.1password.io/op/core/procinfo.process.Executable(...) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/process_darwin.go:37 go.1password.io/op/core/procinfo.findNearestChildProcessInfo({0x100d64a50?, 0xc0003bee80?}, 0x1) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/session_info.go:47 +0x48 go.1password.io/op/core/procinfo.getSessionInfo() /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/session_info_unix.go:29 +0x12f go.1password.io/op/core/procinfo.CurrentSessionInfo(...) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/session_info.go:21 go.1password.io/op/op-cli/desktopapp/ipc.clientInfo() /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/ipc/ipc_darwin.go:77 +0x1e go.1password.io/op/op-cli/desktopapp/ipc.Connect({0x100d640e8, 0xc0001242a0}, {{0x100d61500, 0xc0003bef70}, 0x7, {0x0, 0x0}, {0xc00031ec00, 0x1, 0x1f4}, ...}) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/ipc/connection.go:61 +0xa5 go.1password.io/op/op-cli/desktopapp.connect({0x100d640b0?, 0xc00018e008?}) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/desktopapp.go:328 +0x9a go.1password.io/op/op-cli/desktopapp.ListAccounts() /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/desktopapp.go:93 +0x3e go.1password.io/op/op-cli/command.(*accountListCommand).Run(0xc0000124e0) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/account_list.go:47 +0x51 go.1password.io/op/op-cli/command.Bind.func3(0xc000461b80?, {0xc000465cb0?, 0x0?, 0x3?}) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/command.go:71 +0x4e github.com/spf13/cobra.(*Command).execute(0xc000461b80, {0xc000465c80, 0x3, 0x3}) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/spf13/cobra/command.go:844 +0x67c github.com/spf13/cobra.(*Command).ExecuteC(0x101408ea0) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/spf13/cobra/command.go:952 +0x39d go.1password.io/op/op-cli/command.Execute() /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/root.go:331 +0x71 main.main() /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/main.go:15 +0x31 ./1password.js: execution error: Error: SyntaxError: JSON Parse error: Unexpected EOF (-2700) /Users/farisal-mawwashi/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/2328B11F-82A9-480E-BB75-3558447A426D:13: no such file or directory: /Users/farisal-mawwashi/Library/Application Support/Alfred/Workflow Data/com.alfredapp.vitor.1password/items.json
vitor Posted June 26, 2023 Author Posted June 26, 2023 @Faris Najem Looks like your installation of the 1Password command-line tool might be broken. Reinstall it. Also, as requested, please follow the instructions on reporting an issue. A diagnostic is necessary.
Faris Najem Posted June 26, 2023 Posted June 26, 2023 11 hours ago, vitor said: @Faris Najem Looks like your installation of the 1Password command-line tool might be broken. Reinstall it. Also, as requested, please follow the instructions on reporting an issue. A diagnostic is necessary. Thank you for your response, I tried to re-install the 1Password command-line tool several times with no result! Any thing else I can do? Thank you again.
vitor Posted June 26, 2023 Author Posted June 26, 2023 Again, without a diagnostic it’s impossible to help further.
Faris Najem Posted June 26, 2023 Posted June 26, 2023 15 minutes ago, vitor said: Again, without a diagnostic it’s impossible to help further. Now it works!! I followed the link you put in your first answer, and disabled biometric unlock on the CLI tool (in the 1Password app → Preferences → Developer). Now everything works normally. Thank you very much.💐
Faris Najem Posted June 27, 2023 Posted June 27, 2023 (edited) 12 hours ago, Faris Najem said: Now it works!! I followed the link you put in your first answer, and disabled biometric unlock on the CLI tool (in the 1Password app → Preferences → Developer). Now everything works normally. Thank you very much.💐 A new addition to what happened later: After the workflow successfully showcased the items of 1Password, I discovered the following: 1. Autofill is not working. 2."Copy username" does not work. 3. "Copy Password" does not work. 4. "Copy OTP" does not work. I would like to add that the releases that are currently working in the workflow (only displaying the items without any other work) are the 2022.19 release and earlier... As for the releases that come after 2022.19, they do not work in the first place, that is, the first problem that occurs in them I talked about it in my first post a few days ago. For the 2022.19 release, I'm showing below debugger report, when I tried to copy a password: [12:53:02.146] Logging Started... [12:53:28.097] ERROR: 1Password[Run Script] panic: runtime error: index out of range [0] with length 0 goroutine 1 [running]: github.com/elastic/go-sysinfo/providers/darwin.kern_procargs(0xc000376098?, 0xc00034a8c0) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/elastic/go-sysinfo/providers/darwin/process_darwin.go:214 +0x62f github.com/elastic/go-sysinfo/providers/darwin.(*process).Info(0xc00034a8c0) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/elastic/go-sysinfo/providers/darwin/process_darwin.go:106 +0x1b4 go.1password.io/op/core/procinfo.process.Executable(...) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/process_darwin.go:37 go.1password.io/op/core/procinfo.findNearestChildProcessInfo({0x100d52a50?, 0xc000343c40?}, 0x1) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/session_info.go:47 +0x48 go.1password.io/op/core/procinfo.getSessionInfo() /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/session_info_unix.go:29 +0x12f go.1password.io/op/core/procinfo.CurrentSessionInfo(...) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/core/procinfo/session_info.go:21 go.1password.io/op/op-cli/desktopapp/ipc.clientInfo() /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/ipc/ipc_darwin.go:77 +0x1e go.1password.io/op/op-cli/desktopapp/ipc.Connect({0x100d520e8, 0xc0003f0d80}, {{0x100d4f640, 0xc000343470}, 0x7, {0x0, 0x0}, {0xc0000df200, 0x1, 0x1f4}, ...}) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/ipc/connection.go:61 +0xa5 go.1password.io/op/op-cli/desktopapp.connect({0x100d520b0?, 0xc000042060?}) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/desktopapp.go:328 +0x9a go.1password.io/op/op-cli/desktopapp.ListAccounts() /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/desktopapp/desktopapp.go:93 +0x3e go.1password.io/op/op-cli/command.(*accountListCommand).Run(0xc000264570) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/account_list.go:47 +0x51 go.1password.io/op/op-cli/command.Bind.func3(0xc0003bdb80?, {0xc0003ed620?, 0x0?, 0x3?}) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/command.go:71 +0x4e github.com/spf13/cobra.(*Command).execute(0xc0003bdb80, {0xc0003ed5f0, 0x3, 0x3}) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/spf13/cobra/command.go:844 +0x67c github.com/spf13/cobra.(*Command).ExecuteC(0x1013f0e60) /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/vendor/github.com/spf13/cobra/command.go:952 +0x39d go.1password.io/op/op-cli/command.Execute() /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/command/root.go:331 +0x71 main.main() /Users/iosdev/GitLab_CI_Builds/QNhFsVqy/0/dev/b5/op/op-cli/main.go:15 +0x31 ./1password.js: execution error: Error: SyntaxError: JSON Parse error: Unexpected EOF (-2700) -------------------------------------------------------- Thanks for any help. Edited June 27, 2023 by Faris Najem
vitor Posted June 27, 2023 Author Posted June 27, 2023 I’m trying to help you, but I can’t do that if you don’t provide a diagnostic, as pointed out in the last three replies. I have linked to the post that teaches how to do it. It has to be done in the most current version of the workflow (2023.8, as of this post). But your issue is caused by the 1Password command-line, that’s where the error is coming from, so ultimately you’ll have to end up contacting their support.
Faris Najem Posted June 27, 2023 Posted June 27, 2023 5 hours ago, vitor said: I’m trying to help you, but I can’t do that if you don’t provide a diagnostic, as pointed out in the last three replies. I have linked to the post that teaches how to do it. It has to be done in the most current version of the workflow (2023.8, as of this post). But your issue is caused by the 1Password command-line, that’s where the error is coming from, so ultimately you’ll have to end up contacting their support. Ok, I will ask them to help, Thank you so much.
ronaldpaek Posted July 15, 2023 Posted July 15, 2023 This is what shows up initially when I type 1p; this is just the first part then it's a log JSON string with the app the login and passwords; it's why I didn't post it all. [20:43:21.488] 1Password[Script Filter] Queuing argument '(null)' [20:43:21.607] 1Password[Script Filter] Script with argv '(null)' finished [20:43:21.611] 1Password[Script Filter] ]697;OSCLock=]697;PreExec]697;OSCLock=]697 After I see the long list in the debugger, I see this line. It's like it's getting the same list twice? [20:51:15.234] ERROR: 1Password[Script Filter] JSON error: JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0. in JSON: ]697;OSCLock=]697;PreExec]697;OSCLock=]697; I did the whole Reset and Force Update here is the result of that. [20:50:59.754] 1Password[List Filter] Processing complete [20:50:59.852] 1Password[List Filter] Passing output 'reset_workflow' to Conditional [20:50:59.853] 1Password[Conditional] Processing complete [20:50:59.853] 1Password[Conditional] Passing output 'reset_workflow' to JSON Config [20:50:59.854] 1Password[JSON Config] Processing complete [20:50:59.854] 1Password[JSON Config] Passing output '( "/Users/ronaldpaek/Library/Application Support/Alfred/Workflow Data/com.alfredapp.vitor.1password", "/Users/ronaldpaek/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.alfredapp.vitor.1password" )' to Automation Task [20:50:59.854] 1Password[Automation Task] Running task 'Send to Trash' with arguments ( "/Users/ronaldpaek/Library/Application Support/Alfred/Workflow Data/com.alfredapp.vitor.1password" ). Argument warnings: ( "Passed in file '/Users/ronaldpaek/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.alfredapp.vitor.1password' does not exist, discarding" ) [20:50:59.962] 1Password[Automation Task] Processing complete [20:50:59.966] 1Password[Automation Task] Passing output '' to Arg and Vars [20:50:59.967] 1Password[Arg and Vars] Processing complete [20:50:59.968] 1Password[Arg and Vars] Passing output '' to Run Script [20:51:07.382] 1Password[List Filter] Processing complete [20:51:07.390] 1Password[List Filter] Passing output 'update_items' to Conditional [20:51:07.392] 1Password[Conditional] Processing complete [20:51:07.393] 1Password[Conditional] Passing output 'update_items' to Junction [20:51:07.394] 1Password[Junction] Processing complete [20:51:07.394] 1Password[Junction] Passing output 'update_items' to Run Script [20:51:07.561] 1Password[Run Script] Processing complete [20:51:07.568] 1Password[Run Script] Passing output ']697;OSCLock=]697;PreExec' to Conditional [20:51:07.569] 1Password[Conditional] Processing complete [20:51:07.569] 1Password[Conditional] Passing output ']697;OSCLock=]697;PreExec' to Run Script [20:51:07.717] 1Password[Run Script] Processing complete [20:51:07.725] 1Password[Run Script] Passing output ']697;OSCLock=]697;PreExec' to Conditional [20:51:07.726] 1Password[Conditional] Processing complete [20:51:07.727] 1Password[Conditional] Passing output ']697;OSCLock=]697;PreExec' to Run Script [20:51:10.658] 1Password[Run Script] Processing complete [20:51:10.666] 1Password[Run Script] Passing output ']697;OSCLock=]697;PreExec]697;OSCLock=]697;PreExec]697;OSCLock=]697;PreExec]697;OSCLock=]697;PreExec]697;OSCLock=]697;PreExec]697;OSCLock=]697;PreExec]697;OSCLock=]697;PreExec]697;OSCLock=]697;PreExec' to Call External Trigger [20:51:10.667] 1Password[External] Processing complete [20:51:10.668] 1Password[External] Passing output '' to Run Script [20:51:10.783] 1Password[Run Script] Processing complete [20:51:10.790] 1Password[Run Script] Passing output ']697;OSCLock=]697;PreExec]697;OSCLock=]697;PreExec]697;OSCLock=]697;PreExec]697;OSCLock=]697;PreExec]697;OSCLock=]697;PreExec' to Run Script [20:51:15.102] 1Password[Script Filter] Queuing argument '(null)' [20:51:15.222] 1Password[Script Filter] Script with argv '(null)' finished [20:51:15.228] 1Password[Script Filter] ]697;OSCLock=]697;PreExec]697;OSCLock=]697; 1 password is working fine in Raycast, but I would prefer it to work in Alfred Also, 1 password seems to be working fine in the CLI as well I am able to view the list so I know 1 password and the CLI are talking to each other.
vitor Posted July 15, 2023 Author Posted July 15, 2023 @ronaldpaek Do you have a ~/.zshenv file which is outputting something?
ronaldpaek Posted July 16, 2023 Posted July 16, 2023 @vitor, I'm going to guess you mean if I see that variable in the debug log. nope
vitor Posted July 16, 2023 Author Posted July 16, 2023 I’m asking if you have that file in your home folder, because that looks like outside interference. Try this: install this version of the workflow and update Alfred to the 5.1.2 prerelease (you can do so in Alfred Preferences → Update (bottom left) → change the dropdown to pre-releases and update). Does that work?
TDube Posted July 17, 2023 Posted July 17, 2023 Having same issue w/ nothing showing up except w/ "1p" in alfred stating updating items.. below is the diagnostic you ask for... THANKS Todd ========================= ### Workflow version 2023.8 ### Alfred version 5.1.2 ### macOS version 13.4.1 ### Architecture arm64 ### Preferences Default ### 1Password version 8.10.8 ### op version 2.19.0 ### Launchd job Loaded: - 0 com.alfredapp.vitor.1password Installed =============================== Debug list: [08:41:12.822] 1Password[Script Filter] Queuing argument '(null)' [08:41:12.842] 1Password[Script Filter] Script with argv '(null)' finished [08:41:12.845] 1Password[Script Filter] {"rerun":0.1,"items":[{"title":"Updating items…","subtitle":"Will take a few seconds","valid":false}]} [08:41:12.948] 1Password[Script Filter] Queuing argument '(null)' [08:41:12.967] 1Password[Script Filter] Script with argv '(null)' finished [08:41:12.971] 1Password[Script Filter] {"rerun":0.1,"items":[{"title":"Updating items…","subtitle":"Will take a few seconds","valid":false}]} [08:41:13.074] 1Password[Script Filter] Queuing argument '(null)' [08:41:13.095] 1Password[Script Filter] Script with argv '(null)' finished [08:41:13.097] 1Password[Script Filter] {"rerun":0.1,"items":[{"title":"Updating items…","subtitle":"Will take a few seconds","valid":false}]} [08:41:13.204] 1Password[Script Filter] Queuing argument '(null)' [08:41:13.230] 1Password[Script Filter] Script with argv '(null)' finished [08:41:13.236] 1Password[Script Filter] {"rerun":0.1,"items":[{"title":"Updating items…","subtitle":"Will take a few seconds","valid":false}]} [08:41:13.337] 1Password[Script Filter] Queuing argument '(null)' [08:41:13.434] 1Password[Script Filter] Script with argv '(null)' finished [08:41:13.442] 1Password[Script Filter] {"rerun":0.1,"items":[{"title":"Updating items…","subtitle":"Will take a few seconds","valid":false}]} [08:41:13.531] 1Password[Script Filter] Queuing argument '(null)' [08:41:13.541] 1Password[Script Filter] Script with argv '(null)' finished [08:41:13.542] 1Password[Script Filter] {"rerun":0.1,"items":[{"title":"Updating items…","subtitle":"Will take a few seconds","valid":false}]} [08:41:13.648] 1Password[Script Filter] Queuing argument '(null)' [08:41:13.681] 1Password[Script Filter] Script with argv '(null)' finished [08:41:13.685] 1Password[Script Filter] {"rerun":0.1,"items":[{"title":"Updating items…","subtitle":"Will take a few seconds","valid":false}]} [08:41:13.785] 1Password[Script Filter] Queuing argument '(null)' [08:41:13.887] 1Password[Script Filter] Script with argv '(null)' finished [08:41:13.896] 1Password[Script Filter] {"rerun":0.1,"items":[{"title":"Updating items…","subtitle":"Will take a few seconds","valid":false}]}
vitor Posted July 17, 2023 Author Posted July 17, 2023 Welcome @TDube, You configuration seems OK, your problem is different. Please do the terminal part of the debugging (explanation in the second post).
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now