<div dir="ltr">As a workaround, this seems to work and $<span class="" id=":142.1" tabindex="-1" style="">sht</span>(server=><span class="" id=":142.2" tabindex="-1" style="">auth</span>::token) is always reported back by <span class="" id=":142.3" tabindex="-1" style="">kamcmd</span> <span class="" id=":142.4" tabindex="-1" style="">htable</span>.dump server :<div><br></div><div>





<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(47,180,29)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">route</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures">[HTTP_<span class="" id=":142.5" tabindex="-1" style="">AUTH</span>_REPLY]</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> {</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span><span class="" id=":142.6" tabindex="-1" style="">xinfo</span>("</span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)">[$<span class="" id=":142.7" tabindex="-1" style="">ci</span>][$rm]</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"> HTTP_<span class="" id=":142.8" tabindex="-1" style="">AUTH</span>_REPLY received")</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p class="gmail-p3" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span>if($http_<span class="" id=":142.9" tabindex="-1" style="">ok</span>) {</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">        </span><span class="" id=":142.10" tabindex="-1" style="">xinfo</span>("</span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)">[HTTP_<span class="" id=":142.11" tabindex="-1" style="">AUTH</span>_REPLY][$http_rs]</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"> request was <span class="" id=":142.12" tabindex="-1" style="">sucessful</span>")</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span>} else {</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">        </span><span class="" id=":142.13" tabindex="-1" style="">xinfo</span>("</span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)">[HTTP_<span class="" id=":142.14" tabindex="-1" style="">AUTH</span>_REPLY][$http_rs]</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"> request was <span class="" id=":142.15" tabindex="-1" style="">unsucessful</span>")</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span>}</span></p>
<p class="gmail-p3" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span>if($http_err) {</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">        </span><span class="" id=":142.16" tabindex="-1" style="">xinfo</span>("</span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)">[HTTP_<span class="" id=":142.17" tabindex="-1" style="">AUTH</span>_REPLY][ERROR]</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"> $http_err")</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span>}</span></p>
<p class="gmail-p3" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(47,180,29)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span class="gmail-Apple-converted-space">    </span><span class="" id=":142.18" tabindex="-1" style="">xinfo</span>("</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures">[HTTP_<span class="" id=":142.19" tabindex="-1" style="">AUTH</span>_REPLY][RESPONSE][BODY]</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> $http_<span class="" id=":142.20" tabindex="-1" style="">rb</span>")</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p class="gmail-p3" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="gmail-p4" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(64,11,217)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span class="gmail-Apple-converted-space">    </span></span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"># lock <span class="" id=":142.21" tabindex="-1" style="">auth</span> token</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span><span class="" id=":142.22" tabindex="-1" style="">sht</span>_lock("server=</span><span class="gmail-s5" style="font-variant-ligatures:no-common-ligatures;color:rgb(180,36,25)">><span class="" id=":142.23" tabindex="-1" style="">auth</span>::token")</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p class="gmail-p3" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="gmail-p4" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(64,11,217)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span class="gmail-Apple-converted-space">    </span></span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"># set token</span></p>
<p class="gmail-p5" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(180,36,25)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span class="gmail-Apple-converted-space">    </span>$<span class="" id=":142.24" tabindex="-1" style="">sht</span>(server=</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures">><span class="" id=":142.25" tabindex="-1" style="">auth</span>::token) = $http_<span class="" id=":142.26" tabindex="-1" style="">rb</span></span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p class="gmail-p3" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="gmail-p4" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(64,11,217)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span class="gmail-Apple-converted-space">    </span></span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"># unlock <span class="" id=":142.27" tabindex="-1" style="">auth</span> token</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span><span class="" id=":142.28" tabindex="-1" style="">sht</span>_unlock("server=</span><span class="gmail-s5" style="font-variant-ligatures:no-common-ligatures;color:rgb(180,36,25)">><span class="" id=":142.29" tabindex="-1" style="">auth</span>::token")</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures">}</span></p><p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><br></span></p></div><div>





<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(47,180,29)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">event_route</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures">[<span class="" id=":142.30" tabindex="-1" style="">htable</span>:expired:server]</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> {</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span><span class="" id=":142.31" tabindex="-1" style="">xinfo</span>("</span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)">[<span class="" id=":142.32" tabindex="-1" style="">HTABLE</span>:expired:server]</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"> initializing")</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p class="gmail-p3" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span>$http_<span class="" id=":142.33" tabindex="-1" style="">req</span>(all) =</span><span class="gmail-s5" style="font-variant-ligatures:no-common-ligatures;color:rgb(180,36,25)"> $null</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span>$http_<span class="" id=":142.34" tabindex="-1" style="">req</span>(timeout) =</span><span class="gmail-s5" style="font-variant-ligatures:no-common-ligatures;color:rgb(180,36,25)"> 100</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span>$http_<span class="" id=":142.35" tabindex="-1" style="">req</span>(method) =</span><span class="gmail-s5" style="font-variant-ligatures:no-common-ligatures;color:rgb(180,36,25)"> "POST"</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span>$http_<span class="" id=":142.36" tabindex="-1" style="">req</span>(suspend) =</span><span class="gmail-s5" style="font-variant-ligatures:no-common-ligatures;color:rgb(180,36,25)"> 1</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span></span></p>
<p class="gmail-p4" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(180,36,25)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span class="gmail-Apple-converted-space">    </span>$http_<span class="" id=":142.37" tabindex="-1" style="">req</span>(<span class="" id=":142.38" tabindex="-1" style="">hdr</span>) =</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"> "Content-Type: application/<span class="" id=":142.39" tabindex="-1" style="">json</span>"</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p class="gmail-p4" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(180,36,25)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span class="gmail-Apple-converted-space">    </span>$http_<span class="" id=":142.40" tabindex="-1" style="">req</span>(body) =</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"> '{"email": "<span class="" id=":142.41" tabindex="-1" style="">brandon</span>@<span class="" id=":142.42" tabindex="-1" style="">cryy</span>.com", "password":"<span class="" id=":142.43" tabindex="-1" style="">XXXX</span>"}'</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p class="gmail-p5" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(64,11,217)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span class="gmail-Apple-converted-space">    </span>http_<span class="" id=":142.44" tabindex="-1" style="">async</span>_query("https:</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures">//www.<span class="" id=":142.45" tabindex="-1" style="">cryy</span>.com/api/<span class="" id=":142.46" tabindex="-1" style="">auth</span>/token", "HTTP_<span class="" id=":142.47" tabindex="-1" style="">AUTH</span>_REPLY");</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures">}</span></p>
<p class="gmail-p3" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(47,180,29)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">event_route</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures">[<span class="" id=":142.48" tabindex="-1" style="">htable</span>:mod-<span class="" id=":142.49" tabindex="-1" style="">init</span>]</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> {</span></p>
<p class="gmail-p5" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(64,11,217)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span class="gmail-Apple-converted-space">    </span></span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"># generate <span class="" id=":142.50" tabindex="-1" style="">auth</span> token into<span class="gmail-Apple-converted-space"> </span></span></p>
<p class="gmail-p3" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="gmail-p5" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(64,11,217)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span class="gmail-Apple-converted-space">    </span>http_client_query("https:</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures">//www.<span class="" id=":142.51" tabindex="-1" style="">cryy</span>.com/api/<span class="" id=":142.52" tabindex="-1" style="">auth</span>/token", '{"email": "<span class="" id=":142.53" tabindex="-1" style="">brandon</span>@<span class="" id=":142.54" tabindex="-1" style="">cryy</span>.com", "password":"<span class="" id=":142.55" tabindex="-1" style="">XXXX</span>"}', "$var(result)");</span></p>
<p class="gmail-p3" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="gmail-p5" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(64,11,217)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span class="gmail-Apple-converted-space">    </span></span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"># lock <span class="" id=":142.56" tabindex="-1" style="">auth</span> token</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span><span class="" id=":142.57" tabindex="-1" style="">sht</span>_lock("server=</span><span class="gmail-s5" style="font-variant-ligatures:no-common-ligatures;color:rgb(180,36,25)">><span class="" id=":142.58" tabindex="-1" style="">auth</span>::token")</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p class="gmail-p3" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="gmail-p5" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(64,11,217)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span class="gmail-Apple-converted-space">    </span></span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"># set <span class="" id=":142.59" tabindex="-1" style="">auth</span> token</span></p>
<p class="gmail-p4" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(180,36,25)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span class="gmail-Apple-converted-space">    </span>$<span class="" id=":142.60" tabindex="-1" style="">sht</span>(server=</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures">><span class="" id=":142.61" tabindex="-1" style="">auth</span>::token) = $var(result)</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p class="gmail-p3" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="gmail-p5" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(64,11,217)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span class="gmail-Apple-converted-space">    </span></span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"># unlock <span class="" id=":142.62" tabindex="-1" style="">auth</span> token</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span><span class="" id=":142.63" tabindex="-1" style="">sht</span>_unlock("server=</span><span class="gmail-s5" style="font-variant-ligatures:no-common-ligatures;color:rgb(180,36,25)">><span class="" id=":142.64" tabindex="-1" style="">auth</span>::token")</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p class="gmail-p3" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span></span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span><span class="" id=":142.65" tabindex="-1" style="">xinfo</span>("<span class="" id=":142.66" tabindex="-1" style="">AUTH</span>_TOKEN_RECEIVED, $<span class="" id=":142.67" tabindex="-1" style="">sht</span>(server=</span><span class="gmail-s5" style="font-variant-ligatures:no-common-ligatures;color:rgb(180,36,25)">><span class="" id=":142.68" tabindex="-1" style="">auth</span>::token)")</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures">}</span></p><p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures"><br></span></p>Is working -- I have to use http_client on <span class="" id=":142.69" tabindex="-1" style="">htable</span> module initialization, as http_<span class="" id=":142.70" tabindex="-1" style="">async</span>_client seems to start its workers after mod-<span class="" id=":142.71" tabindex="-1" style="">init</span> and results in:</div><div><br></div><div>





<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Oct 31 21:04:37 main <span class="" id=":142.72" tabindex="-1" style="">kamailio</span>[2088]: ERROR: http_<span class="" id=":142.73" tabindex="-1" style="">async</span>_client [<span class="" id=":142.74" tabindex="-1" style="">async</span>_http.c:622]: <span class="" id=":142.75" tabindex="-1" style="">async</span>_push_query(): failed to pass the query to <span class="" id=":142.76" tabindex="-1" style="">async</span> workers</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Oct 31 21:04:37 main <span class="" id=":142.77" tabindex="-1" style="">kamailio</span>[2088]: ERROR: http_<span class="" id=":142.78" tabindex="-1" style="">async</span>_client [<span class="" id=":142.79" tabindex="-1" style="">async</span>_http.c:588]: <span class="" id=":142.80" tabindex="-1" style="">async</span>_send_query(): failed to relay query: <a href="https://www">https://www</a>.<span class="" id=":142.81" tabindex="-1" style="">cryy</span>.com/api/<span class="" id=":142.82" tabindex="-1" style="">auth</span>/token</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><b><br></b></span></p>(workers start after mod-<span class="" id=":142.83" tabindex="-1" style="">init</span> request) shown here:<p class="gmail-p1" style="margin:0px;font:11px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font:11px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Oct 31 21:04:38 main <span class="" id=":142.84" tabindex="-1" style="">kamailio</span>[2088]: INFO: http_<span class="" id=":142.85" tabindex="-1" style="">async</span>_client [<span class="" id=":142.86" tabindex="-1" style="">async</span>_http.c:84]: <span class="" id=":142.87" tabindex="-1" style="">async</span>_http_<span class="" id=":142.88" tabindex="-1" style="">init</span>_worker(): started worker process: 1</span></p><p class="gmail-p1" style="margin:0px;font:11px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Oct 31 21:04:38 main <span class="" id=":142.89" tabindex="-1" style="">kamailio</span>[2088]: INFO: http_<span class="" id=":142.90" tabindex="-1" style="">async</span>_client [<span class="" id=":142.91" tabindex="-1" style="">async</span>_http.c:84]: <span class="" id=":142.92" tabindex="-1" style="">async</span>_http_<span class="" id=":142.93" tabindex="-1" style="">init</span>_worker(): started worker process: 2</span></p><p class="gmail-p1" style="margin:0px;font:11px Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Oct 31 21:04:38 main <span class="" id=":142.94" tabindex="-1" style="">kamailio</span>[2088]: INFO: http_<span class="" id=":142.95" tabindex="-1" style="">async</span>_client [<span class="" id=":142.96" tabindex="-1" style="">async</span>_http.c:84]: <span class="" id=":142.97" tabindex="-1" style="">async</span>_http_<span class="" id=":142.98" tabindex="-1" style="">init</span>_worker(): started worker process: 3</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">








</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Oct 31 21:04:38 main <span class="" id=":142.99" tabindex="-1" style="">kamailio</span>[2088]: INFO: http_<span class="" id=":142.100" tabindex="-1" style="">async</span>_client [<span class="" id=":142.101" tabindex="-1" style="">async</span>_http.c:84]: <span class="" id=":142.102" tabindex="-1" style="">async</span>_http_<span class="" id=":142.103" tabindex="-1" style="">init</span>_worker(): started worker process: 4</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p>So I suspect there are two separate issues going on here, 1) handling <span class="" id=":142.104" tabindex="-1" style="">htable</span> in memory between <span class="" id=":142.105" tabindex="-1" style="">htable</span>-mod-<span class="" id=":142.106" tabindex="-1" style="">init</span> and <span class="" id=":142.107" tabindex="-1" style="">htable</span>:expired:server and 2) unable to use http_<span class="" id=":142.108" tabindex="-1" style="">async</span>_client inside <span class="" id=":142.109" tabindex="-1" style="">htable</span>-mod:<span class="" id=":142.110" tabindex="-1" style="">init</span>.  I've also double checked that these modules are loaded after <span class="" id=":142.111" tabindex="-1" style="">htable</span> in <span class="" id=":142.112" tabindex="-1" style="">kamailio</span> <span class="" id=":142.113" tabindex="-1" style="">config</span>.</div><div><br></div><div>I look forward to hearing any input anyone may have on this, thanks for your time in advance!</div><div><br></div><div>- Brandon</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 30, 2020 at 10:55 PM Brandon Armstead <<a href="mailto:brandon@cryy.com">brandon@cryy.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Running  5.5.0-dev3<br><br><span id="gmail-m_-8328524909826839330:ka.1">modparam</span>("<span id="gmail-m_-8328524909826839330:ka.2">htable</span>", "<span id="gmail-m_-8328524909826839330:ka.3">htable</span>", "<span id="gmail-m_-8328524909826839330:ka.4">ipban</span>=>size=8;<span id="gmail-m_-8328524909826839330:ka.5">autoexpire</span>=300;<span id="gmail-m_-8328524909826839330:ka.6">dmqreplicate</span>=1;")<br><span id="gmail-m_-8328524909826839330:ka.7">modparam</span>("<span id="gmail-m_-8328524909826839330:ka.8">htable</span>", "enable_<span id="gmail-m_-8328524909826839330:ka.9">dmq</span>", 1)<br><span id="gmail-m_-8328524909826839330:ka.10">modparam</span>("<span id="gmail-m_-8328524909826839330:ka.11">htable</span>", "<span id="gmail-m_-8328524909826839330:ka.12">dmq</span>_<span id="gmail-m_-8328524909826839330:ka.13">init</span>_sync", 1)<br><span id="gmail-m_-8328524909826839330:ka.14">modparam</span>("<span id="gmail-m_-8328524909826839330:ka.15">htable</span>", "timer_<span id="gmail-m_-8328524909826839330:ka.16">procs</span>", 4)<br><span id="gmail-m_-8328524909826839330:ka.17">modparam</span>("<span id="gmail-m_-8328524909826839330:ka.18">htable</span>", "timer_interval", 5)<br><span id="gmail-m_-8328524909826839330:ka.19">modparam</span>("<span id="gmail-m_-8328524909826839330:ka.20">htable</span>", "db_expires", 1)<br><span id="gmail-m_-8328524909826839330:ka.21">modparam</span>("<span id="gmail-m_-8328524909826839330:ka.22">htable</span>", "<span id="gmail-m_-8328524909826839330:ka.23">htable</span>", "account=>size=4;<span id="gmail-m_-8328524909826839330:ka.24">dmqreplicate</span>=1;")<br><span id="gmail-m_-8328524909826839330:ka.25">modparam</span>("<span id="gmail-m_-8328524909826839330:ka.26">htable</span>", "<span id="gmail-m_-8328524909826839330:ka.27">htable</span>", "server=>size=4;<span id="gmail-m_-8328524909826839330:ka.28">autoexpire</span>=15;")<br><div><br></div><div>I'm attempting to retrieve an <span id="gmail-m_-8328524909826839330:ka.29">auth</span> token in the <span id="gmail-m_-8328524909826839330:ka.30">init</span> process and also refresh the token upon expiration in the <span id="gmail-m_-8328524909826839330:ka.31">htable</span>:expired event.</div><div><br></div><div>I'm seeing some behavior where every other execution of <span id="gmail-m_-8328524909826839330:ka.32">htable</span>:expired the variable $<span id="gmail-m_-8328524909826839330:ka.33">sht</span>(server=><span id="gmail-m_-8328524909826839330:ka.34">auth</span>::token) is set per <span id="gmail-m_-8328524909826839330:ka.35">kamcmd</span> <span id="gmail-m_-8328524909826839330:ka.36">htable</span>.dump server, however <span id="gmail-m_-8328524909826839330:ka.37">xinfo</span>() reports that the token was retrieved in the variable $<span id="gmail-m_-8328524909826839330:ka.38">sht</span>(server=><span id="gmail-m_-8328524909826839330:ka.39">auth</span>::token).</div><div><br></div><div>Please see remaining event route <span id="gmail-m_-8328524909826839330:ka.40">config</span> below:</div><div><br></div><div>





<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(47,180,29)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">event_route</span><span style="font-variant-ligatures:no-common-ligatures">[<span id="gmail-m_-8328524909826839330:ka.41">htable</span>:mod-<span id="gmail-m_-8328524909826839330:ka.42">init</span>]</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> {</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(64,11,217)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span>    </span></span><span style="font-variant-ligatures:no-common-ligatures"># generate <span id="gmail-m_-8328524909826839330:ka.43">auth</span> token into<span> </span></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(64,11,217)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span>    </span>http_client_query("https:</span><span style="font-variant-ligatures:no-common-ligatures">//www.<span id="gmail-m_-8328524909826839330:ka.44">cryy</span>.com/api/<span id="gmail-m_-8328524909826839330:ka.45">auth</span>/token", '{"email": "<span id="gmail-m_-8328524909826839330:ka.46">brandon</span>@<span id="gmail-m_-8328524909826839330:ka.47">cryy</span>.com", "password":"<span id="gmail-m_-8328524909826839330:ka.48">XXXX</span>"}', "$var(result)");</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span>    </span><span id="gmail-m_-8328524909826839330:ka.49">sht</span>_lock("server=</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(180,36,25)">><span id="gmail-m_-8328524909826839330:ka.50">auth</span>::token")</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(180,36,25)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span>    </span>$<span id="gmail-m_-8328524909826839330:ka.51">sht</span>(server=</span><span style="font-variant-ligatures:no-common-ligatures">><span id="gmail-m_-8328524909826839330:ka.52">auth</span>::token) = $var(result)</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span>    </span><span id="gmail-m_-8328524909826839330:ka.53">sht</span>_unlock("server=</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(180,36,25)">><span id="gmail-m_-8328524909826839330:ka.54">auth</span>::token")</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"><span>    </span></span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span>    </span><span id="gmail-m_-8328524909826839330:ka.55">xinfo</span>("<span id="gmail-m_-8328524909826839330:ka.56">AUTH</span>_TOKEN_RECEIVED, $<span id="gmail-m_-8328524909826839330:ka.57">sht</span>(server=</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(180,36,25)">><span id="gmail-m_-8328524909826839330:ka.58">auth</span>::token)")</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">}</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(47,180,29)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)">event_route</span><span style="font-variant-ligatures:no-common-ligatures">[<span id="gmail-m_-8328524909826839330:ka.59">htable</span>:expired:server]</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"> {</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(64,11,217)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span>    </span></span><span style="font-variant-ligatures:no-common-ligatures"># process expired <span id="gmail-m_-8328524909826839330:ka.60">htable</span>, renew <span id="gmail-m_-8328524909826839330:ka.61">auth</span> token</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span>    </span><span id="gmail-m_-8328524909826839330:ka.62">xinfo</span>("<span id="gmail-m_-8328524909826839330:ka.63">AUTH</span>_TOKEN_EXPIRED, lets retrieve a new one")</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(64,11,217)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span>    </span>http_client_query("https:</span><span style="font-variant-ligatures:no-common-ligatures">//www.<span id="gmail-m_-8328524909826839330:ka.64">cryy</span>.com/api/<span id="gmail-m_-8328524909826839330:ka.65">auth</span>/token", '{"email": "<span id="gmail-m_-8328524909826839330:ka.66">brandon</span>@<span id="gmail-m_-8328524909826839330:ka.67">cryy</span>.com", "password":"<span id="gmail-m_-8328524909826839330:ka.68">XXXX</span>"}', "$var(result)");</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span>    </span><span id="gmail-m_-8328524909826839330:ka.69">sht</span>_lock("server=</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(180,36,25)">><span id="gmail-m_-8328524909826839330:ka.70">auth</span>::token")</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(180,36,25)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span>    </span>$<span id="gmail-m_-8328524909826839330:ka.71">sht</span>(server=</span><span style="font-variant-ligatures:no-common-ligatures">><span id="gmail-m_-8328524909826839330:ka.72">auth</span>::time) = $TS</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(180,36,25)"><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><span>    </span>$<span id="gmail-m_-8328524909826839330:ka.73">sht</span>(server=</span><span style="font-variant-ligatures:no-common-ligatures">><span id="gmail-m_-8328524909826839330:ka.74">auth</span>::token) = $var(result)</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span>    </span><span id="gmail-m_-8328524909826839330:ka.75">sht</span>_unlock("server=</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(180,36,25)">><span id="gmail-m_-8328524909826839330:ka.76">auth</span>::token")</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span>    </span><span id="gmail-m_-8328524909826839330:ka.77">xinfo</span>("<span id="gmail-m_-8328524909826839330:ka.78">AUTH</span>_TOKEN_RECEIVED, $<span id="gmail-m_-8328524909826839330:ka.79">sht</span>(server=</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(180,36,25)">><span id="gmail-m_-8328524909826839330:ka.80">auth</span>::token)")</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span>    </span><span id="gmail-m_-8328524909826839330:ka.81">xinfo</span>("<span id="gmail-m_-8328524909826839330:ka.82">AUTH</span>_TOKEN_TIME, $<span id="gmail-m_-8328524909826839330:ka.83">sht</span>(server=</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(180,36,25)">><span id="gmail-m_-8328524909826839330:ka.84">auth</span>::time)")</span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(64,11,217)">;</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">}</span></p><p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p>I've tried both with locking and unlocking.  Also one last thing worth mentioning is that on the alternation where <span id="gmail-m_-8328524909826839330:ka.85">kamcmd</span> <span id="gmail-m_-8328524909826839330:ka.86">htable</span>.dump server shows no <span id="gmail-m_-8328524909826839330:ka.87">auth</span> token, $<span id="gmail-m_-8328524909826839330:ka.88">sht</span>(server=><span id="gmail-m_-8328524909826839330:ka.89">auth</span>::time) is available, when the <span id="gmail-m_-8328524909826839330:ka.90">auth</span> token is visible in <span id="gmail-m_-8328524909826839330:ka.91">kamcmd</span> <span id="gmail-m_-8328524909826839330:ka.92">htable</span>.dump server there is no <span id="gmail-m_-8328524909826839330:ka.93">sht</span>(server=><span id="gmail-m_-8328524909826839330:ka.94">auth</span>::time) returned.</div><div><br></div><div>Also just to be explicitly clear -- xinfo() always returns <span id="gmail-m_-8328524909826839330gmail-:ka.56">AUTH</span>_TOKEN_RECEIVED correctly in both event routes.<br><br></div><div>Perhaps I'm over looking something -- thank you for the help in advance.</div><div><br></div><div>- Brandon</div></div>
</blockquote></div>