https://github.com/osquery/osquery logo
Title
g

groob

10/01/2018, 8:22 PM
invite_token_validity_period
d

defensivedepth

10/01/2018, 9:05 PM
@groob So the docs state that the format should be
1d
, but I get errors (InvalidArgument) when I do that. It looks like I should just use an integer, but not sure if this means hours, days... ?
g

groob

10/01/2018, 9:06 PM
can you paste the full error. 1d sounds like it should work to me
let me see the code
d

defensivedepth

10/01/2018, 9:07 PM
panic: Unable to cast to duration for key app.invite_token_validity_period: time: unknown unit dns in duration 1dns
g

groob

10/01/2018, 9:08 PM
1d
not,
1dns
?
d

defensivedepth

10/01/2018, 9:08 PM
That is the error, and I have confirmed that my config is
1d
g

groob

10/01/2018, 9:10 PM
can you try
24h
instead?
d

defensivedepth

10/01/2018, 9:11 PM
that works
g

groob

10/01/2018, 9:11 PM
this is an interesting bug, thanks!
d

defensivedepth

10/01/2018, 9:11 PM
🙂
Ok, so for now, I should specify hours?
g

groob

10/01/2018, 9:12 PM
ah, confirmed
<https://play.golang.org/p/br_gVB_IKXK>
👍 1
down the rabbit hole we go https://github.com/golang/go/issues/11473
🍻 1