<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Ben,</tt>
<p>We are actually dealing with two bugs here, which may or may not
be related to one another.</p>
<p>Bug #1: bad? variable during a route() call<br>
-------------------------------------------------------<br>
</p>
<p>For this one, can you enumerate all "route()" calls in your
script which pass at least one variable, along with their full
parameter call syntax? Example call:</p>
<p>route(sequential_requests, $rm, $avp(myinfo));</p>
<p>Bug #2: bad "key variable" during a $json expansion<br>
----------------------------------------------------------------------</p>
<p>For this one, can you enumerate all $json() variable appearances
which include at least one parameterized key access? I realize
there may be lots of these, but you may group them into
"categories" and print out a few ones that might be relevant (i.e.
their index may contain an INT-only variable, which is
>wrong<). Example appearances:</p>
<p>$json(http_body/$var(tag))<br>
$json(http_body/users[0]/$avp(username))<br>
</p>
<p>Best regards,<br>
</p>
<pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 24.01.2019 01:37, Ben Newlin wrote:<br>
</div>
<blockquote type="cite"
cite="mid:FC8A1F10-B408-4B6A-B6A2-49667C4F9042@genesys.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Courier New \;color\:\#333333";
panose-1:2 7 3 9 2 2 5 2 4 4;}
@font-face
{font-family:"Courier New \;color\:\#F54E25";
panose-1:2 7 3 9 2 2 5 2 4 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
tt
{mso-style-priority:99;
font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
span.EmailStyle22
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.dt1
{mso-style-name:dt1;}
span.EmailStyle24
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Liviu,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thank you
for the quick response. I do see 2 such errors shortly after
startup:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"
style="line-height:11.25pt;background:white"><span
style="font-size:9.0pt;font-family:"Courier
New";color:#F54E25">ERROR</span><span
style="font-size:8.5pt;font-family:"Courier
New";color:#333333">:core:pv_get_param: cannot get spec
value<o:p></o:p></span></p>
<p class="MsoNormal"
style="line-height:11.25pt;background:white"><span
style="font-size:9.0pt;font-family:"Courier
New";color:#F54E25">ERROR</span><span
style="font-size:8.5pt;font-family:"Courier
New";color:#333333">:core:pv_get_param: cannot get spec
value<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">However,
after that it just continues on with more of the same errors
that keep scrolling. There is a variation of the scrolling
errors that was I didn’t included before, in case it helps:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"
style="line-height:11.25pt;background:white"><span
style="font-size:9.0pt;font-family:"Courier
New";color:#F54E25">ERROR</span><span
style="font-size:8.5pt;font-family:"Courier
New";color:#333333">:core:comp_scriptvar: cannot get
left var value<o:p></o:p></span></p>
<p class="MsoNormal"
style="line-height:11.25pt;background:white"><span
style="font-size:8.5pt;font-family:"Courier
New";color:#333333">WARNING:core:do_action:
</span><span style="font-size:9.0pt;font-family:"Courier
New";color:#F54E25">error</span><span
style="font-size:8.5pt;font-family:"Courier
New";color:#333333"> in expression at opensips.cfg:583<o:p></o:p></span></p>
<p class="MsoNormal"
style="line-height:11.25pt;background:white"><span
style="font-size:9.0pt;font-family:"Courier
New";color:#F54E25">ERROR</span><span
style="font-size:8.5pt;font-family:"Courier
New";color:#333333">:json:expand_tag_list: Non string
value in key<o:p></o:p></span></p>
<p class="MsoNormal"
style="line-height:11.25pt;background:white"><span
style="font-size:9.0pt;font-family:"Courier
New";color:#F54E25">ERROR</span><span
style="font-size:8.5pt;font-family:"Courier
New";color:#333333">:json:pv_set_json: Cannot expand
variables in path<o:p></o:p></span></p>
<p class="MsoNormal"
style="line-height:11.25pt;background:white"><span
style="font-size:9.0pt;font-family:"Courier
New";color:#F54E25">ERROR</span><span
style="font-size:8.5pt;font-family:"Courier
New";color:#333333">:core:do_assign: setting PV failed<o:p></o:p></span></p>
<p class="MsoNormal"
style="line-height:11.25pt;background:white"><span
style="font-size:9.0pt;font-family:"Courier
New";color:#F54E25">ERROR</span><span
style="font-size:8.5pt;font-family:"Courier
New";color:#333333">:core:do_assign:
</span><span style="font-size:9.0pt;font-family:"Courier
New";color:#F54E25">error</span><span
style="font-size:8.5pt;font-family:"Courier
New";color:#333333"> at opensips.cfg:346<o:p></o:p></span></p>
<p class="MsoNormal"
style="line-height:11.25pt;background:white"><span
style="font-size:8.5pt;font-family:"Courier
New";color:#333333">ALERT:core:pv_get_param: BUG:
invalid parameter type 1836017711<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">There aren’t
any other non-repeating errors. I have picked up your commit
and will try to gather more information from it, but this
issue is primarily happening in our production environment
so it may take a bit.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Also, I
haven’t completely verified this yet, but it seems that
enabling TLS has made the errors stop somehow. Continuing to
investigate that.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span
style="font-size:11.0pt;color:black">Ben Newlin </span>
<span style="font-size:11.0pt"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:black">From: </span></b><span
style="color:black">Users
<a class="moz-txt-link-rfc2396E" href="mailto:users-bounces@lists.opensips.org"><users-bounces@lists.opensips.org></a> on behalf of
Liviu Chircu <a class="moz-txt-link-rfc2396E" href="mailto:liviu@opensips.org"><liviu@opensips.org></a><br>
<b>Reply-To: </b>OpenSIPS users mailling list
<a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a><br>
<b>Date: </b>Tuesday, January 22, 2019 at 6:08 PM<br>
<b>To: </b><a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org">"users@lists.opensips.org"</a>
<a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a><br>
<b>Subject: </b>Re: [OpenSIPS-Users] Invalid parameter
errors<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<p><tt><span style="font-size:10.0pt">Hi, Ben!</span></tt><o:p></o:p></p>
<p><tt><span style="font-size:10.0pt">The strange "...type
1836017711" errors seem to be caused by a poorly handed
error condition (a secondary bug), which is now fixed [1].
If this theory holds, you must have a "cannot get spec
value" error (or slew of errors) in the earlier section of
your OpenSIPS log (possibly right after restart or shortly
after starting to process traffic).</span></tt><o:p></o:p></p>
<p><tt><span style="font-size:10.0pt">Could you please
confirm/infirm the above? If true, are there any other
relevant errors thrown around that initial "cannot get
spec value" error message? Those error logs could be key
to making progress in understanding the main bug.</span></tt><o:p></o:p></p>
<p><tt><span style="font-size:10.0pt">Best regards,</span></tt><o:p></o:p></p>
<p><tt><span style="font-size:10.0pt">[1]: <a
href="https://github.com/OpenSIPS/opensips/commit/52ff74af8702a"
moz-do-not-send="true">
https://github.com/OpenSIPS/opensips/commit/52ff74af8702a</a></span></tt><o:p></o:p></p>
<pre>Liviu Chircu<o:p></o:p></pre>
<pre>OpenSIPS Developer<o:p></o:p></pre>
<pre><a href="http://www.opensips-solutions.com" moz-do-not-send="true">http://www.opensips-solutions.com</a><o:p></o:p></pre>
<div>
<p class="MsoNormal">On 22.01.2019 20:58, Ben Newlin wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span
style="font-size:11.0pt;color:black">Hi,</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;color:black"> </span><o:p></o:p></p>
<p class="MsoNormal"
style="line-height:11.25pt;background:white"><span
style="font-size:11.0pt;color:black">Since upgrading to
2.4.4 we are seeing the following logs scrolling nearly
continuously on our servers:<br>
<br>
<br>
<br>
</span><o:p></o:p></p>
<p class="MsoNormal"
style="line-height:11.25pt;background:white"><span
style="font-size:8.5pt;font-family:"Courier New
;color:#333333",serif">ALERT:core:pv_get_param: BUG:
invalid parameter type 1836017711</span><o:p></o:p></p>
<p class="MsoNormal"
style="line-height:11.25pt;background:white"><span
style="font-size:9.0pt;font-family:"Courier New
;color:#F54E25",serif">ERROR</span><span
style="font-size:8.5pt;font-family:"Courier New
;color:#333333",serif">:core:comp_scriptvar: cannot
get left var value</span><o:p></o:p></p>
<p class="MsoNormal"
style="line-height:11.25pt;background:white"><span
style="font-size:8.5pt;font-family:"Courier New
;color:#333333",serif">WARNING:core:do_action:
</span><span
style="font-size:9.0pt;font-family:"Courier New
;color:#F54E25",serif">error</span><span
style="font-size:8.5pt;font-family:"Courier New
;color:#333333",serif"> in expression at
opensips.cfg:583</span><span
style="font-size:10.0pt;color:black"><br>
</span><span
style="font-size:8.5pt;font-family:"Courier New
;color:#333333",serif">ALERT:core:pv_get_param: BUG:
invalid parameter type 1836017711</span><o:p></o:p></p>
<p class="MsoNormal"
style="line-height:11.25pt;background:white"><span
style="font-size:9.0pt;font-family:"Courier New
;color:#F54E25",serif">ERROR</span><span
style="font-size:8.5pt;font-family:"Courier New
;color:#333333",serif">:core:comp_scriptvar: cannot
get left var value</span><o:p></o:p></p>
<p class="MsoNormal"
style="line-height:11.25pt;background:white"><span
style="font-size:8.5pt;font-family:"Courier New
;color:#333333",serif">WARNING:core:do_action:
</span><span
style="font-size:9.0pt;font-family:"Courier New
;color:#F54E25",serif">error</span><span
style="font-size:8.5pt;font-family:"Courier New
;color:#333333",serif"> in expression at
opensips.cfg:583</span><span
style="font-size:10.0pt;color:black"><br>
</span><span
style="font-size:8.5pt;font-family:"Courier New
;color:#333333",serif">ALERT:core:pv_get_param: BUG:
invalid parameter type 1836017711</span><o:p></o:p></p>
<p class="MsoNormal"
style="line-height:11.25pt;background:white"><span
style="font-size:9.0pt;font-family:"Courier New
;color:#F54E25",serif">ERROR</span><span
style="font-size:8.5pt;font-family:"Courier New
;color:#333333",serif">:core:comp_scriptvar: cannot
get left var value</span><o:p></o:p></p>
<p class="MsoNormal"
style="line-height:11.25pt;background:white"><span
style="font-size:8.5pt;font-family:"Courier New
;color:#333333",serif">ALERT:core:pv_get_param: BUG:
invalid parameter type 1836017711</span><o:p></o:p></p>
<p class="MsoNormal"
style="line-height:11.25pt;background:white"><span
style="font-size:9.0pt;font-family:"Courier New
;color:#F54E25",serif">ERROR</span><span
style="font-size:8.5pt;font-family:"Courier New
;color:#333333",serif">:core:comp_scriptvar: cannot
get left var value</span><o:p></o:p></p>
<p class="MsoNormal"
style="line-height:11.25pt;background:white"><span
style="font-size:8.5pt;font-family:"Courier New
;color:#333333",serif">WARNING:core:do_action:
</span><span
style="font-size:9.0pt;font-family:"Courier New
;color:#F54E25",serif">error</span><span
style="font-size:8.5pt;font-family:"Courier New
;color:#333333",serif"> in expression at
opensips.cfg:439</span><o:p></o:p></p>
<p class="MsoNormal"
style="line-height:11.25pt;background:white"><span
style="font-size:8.5pt;font-family:"Courier New
;color:#333333",serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;color:black"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;color:black">It seems to be
related to our use of the json module. We often pass json
variable types as parameters to other routes and I believe
the errors are caused by that. But it’s hard to say as
there are a few different script lines referenced in the
errors, but some of them point to return statements and
other code sections that don’t really make sense. For
example, line 583 referenced in the error above is:</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;color:black"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:8.5pt;font-family:"Courier New
;color:#333333",serif"> return(-1);</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;color:black"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;color:black">Any ideas?</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;color:black">Ben Newlin </span>
<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Users mailing list<o:p></o:p></pre>
<pre><a href="mailto:Users@lists.opensips.org" moz-do-not-send="true">Users@lists.opensips.org</a><o:p></o:p></pre>
<pre><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></pre>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>