op cli: intermittent "(ERROR) unexpected end of JSON input"
I wish I could provide more detail but all I know is that sometimes, when using op
about 1 in 5 requests errors out with "(ERROR) unexpected end of JSON input"
Are there any undocumented commands I can use to receive more information?
1Password Version: 0.5.3
Extension Version: Not Provided
OS Version: OS X 10.13.6
Sync Type: Not Provided
Referrer: forum-search:op json input
Comments
-
@ejetherington That's not an error I've ever seen before. Could you tell me which command you've been seeing this with, or is it entirely random?
0 -
Thanks for your reply.
I've seen it fromop list documents
andop get item
.
We primarily useop
through a wrapper python script, but those are the commands getting executed by the wrapper.0 -
@ejetherington Alright thank you. I haven't been able to reproduce this myself, but I will dig a little deeper today to see if there's anything strange going on.
0 -
Yeah, intermittent failures are really tough to track down. Thanks for having a look!
0 -
I wonder if maybe one of your items somehow got invalid JSON put into it. Next time you experience this, could you maybe try to figure out which item it was dealing with? Then see if you can reproduce it reliably by manually invoking
op get item
on that item (or document if that's the case)?If we could narrow it down to a specific item we could then look at different ways of figuring out what went wrong.
Rick
0 -
I've been experiencing this as well.
With sometimes when I'm runningop get item
, on different items. If I retry it works perfectly.
Is there a way to get more logs from op or something?
Thanks0 -
I have no idea, since I'm running the command line automatically, I'll try to add logs and check
0 -
@cohix I have some new data.
It happened again.
I looked at my logs since 30 days ago, it only happened when I query few items in parallel. I'm not saying it has to be the parallel issue, but it might be a lead for something..
Might be some kind of a race condition in theop
code. Not sure that you meant for it to be able to run in parallel...Good news are that most of my calls in parallel do work, just around 1/500 calls I get this error :)
0 -
Thank you! We'll be in touch if need need more details. :)
0 -
@barnash could you please send me a direct message on this forum (or email connor [at] agilebits.com) using the email address associated with your account, letting me know (as close as you can) the date/time that one or more of these errors occured? My theory (repeated Request IDs) is looking more likely, and I'd like to look at our server logs to confirm.
0 -
Thanks!
0