Runtime error when automating with CLI
Im trying to do some automation through the CLI where i use the following "Op" commands:
op item get $line --vault private --field password
op item edit $line --vault private --generate-password='letters,digits,symbols,32'
30% of the time i run the script, i encounter a Runtime error: runtime: waitforsingleobject wait_failed; errno=6
fatal error: runtime.semasleep wait_failed.
Can anyone help me with why it fails 30% of the time, but works perfectly the other 70%? Its random if it breaks on the first try in my "For each" loop or somewhere in the middle.
Entire error:
runtime: waitforsingleobject wait_failed; errno=6
fatal error: runtime.semasleep wait_failed
runtime stack:
runtime.throw({0x8cabcf, 0x1d})
/usr/local/go/src/runtime/panic.go:1047 +0x4d fp=0x3509f6d0 sp=0x3509f6bc pc=0x148d5d
runtime.semasleep.func2()
/usr/local/go/src/runtime/os_windows.go:856 +0x70 fp=0x3509f6e0 sp=0x3509f6d0 pc=0x144f20
runtime.semasleep(0x186a0)
/usr/local/go/src/runtime/os_windows.go:854 +0xd1 fp=0x3509f724 sp=0x3509f6e0 pc=0x145001
runtime.notetsleep_internal(0xe65f6c, 0x186a0, 0x0, 0x0)
/usr/local/go/src/runtime/lock_sema.go:232 +0x125 fp=0x3509f748 sp=0x3509f724 pc=0x11aa55
runtime.notetsleep(0xe65f6c, 0x186a0)
/usr/local/go/src/runtime/lock_sema.go:283 +0x65 fp=0x3509f768 sp=0x3509f748 pc=0x11ac45
runtime.forEachP(0x913208)
/usr/local/go/src/runtime/proc.go:1645 +0x260 fp=0x3509f79c sp=0x3509f768 pc=0x14e5b0
runtime.gcMarkDone.func1()
/usr/local/go/src/runtime/mgc.go:814 +0x52 fp=0x3509f7b0 sp=0x3509f79c pc=0x128152
runtime.systemstack()
/usr/local/go/src/runtime/asm_386.s:370 +0x41 fp=0x3509f7b4 sp=0x3509f7b0 pc=0x175b81
goroutine 30 [GC worker (idle)]:
runtime.systemstack_switch()
/usr/local/go/src/runtime/asm_386.s:337 fp=0x12755f60 sp=0x12755f5c pc=0x175b30
runtime.gcMarkDone()
/usr/local/go/src/runtime/mgc.go:807 +0xda fp=0x12755f94 sp=0x12755f60 pc=0x1282fa
runtime.gcBgMarkWorker()
/usr/local/go/src/runtime/mgc.go:1367 +0x339 fp=0x12755ff0 sp=0x12755f94 pc=0x129dd9
runtime.goexit()
/usr/local/go/src/runtime/asm_386.s:1326 +0x1 fp=0x12755ff4 sp=0x12755ff0 pc=0x177001
created by runtime.gcBgMarkStartWorkers
/usr/local/go/src/runtime/mgc.go:1159 +0x25
etc.etc.etc.etc. Its too long to post.
1Password Version: 8.9.8
Extension Version: 2.7.3
OS Version: Windows 10 21H2
Browser:_ Not Provided