Title
#kolide
g

groob

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

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
9:06 PM
let me see the code
defensivedepth

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
?
defensivedepth

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?
defensivedepth

defensivedepth

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

groob

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

defensivedepth

10/01/2018, 9:11 PM
🙂
9:12 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>
9:13 PM