Error (client) illegal string for list ID (ignoring):

Posted on
Mon Aug 12, 2019 4:14 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Error (client) illegal string for list ID (ignoring):

this error occurs when I open device edit.

checked all id="xxx", they are all plain ascii

a more detailed error message would be really helpfu - like Line # in plugin or devices.xml..

any idea where to look?

Karl

Posted on
Mon Aug 12, 2019 4:57 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Error (client) illegal string for list ID (ignoring):

Not sure if this is helpful but based on when that error is logged: somewhere there is a comma or semicolon where there shouldn't be.

Image

Posted on
Mon Aug 12, 2019 6:12 pm
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Error (client) illegal string for list ID (ignoring):

Make sure you're not starting any with a numeral. That's verboten.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Aug 12, 2019 7:11 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: Error (client) illegal string for list ID (ignoring):

So this can be any menu item?
Or any item?( there are >> 100 in the device list


Sent from my iPhone using Tapatalk

Posted on
Mon Aug 12, 2019 7:40 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: Error (client) illegal string for list ID (ignoring):

Code: Select all
<<?xml version="1.0"?>
<Devices>

<Device type="custom" id="plots">
        <Name>abc</Name>
<ConfigUI>

<Field id="abc"   type="label" >    <Label> text  </Label>     </Field>

</ConfigUI>

</Device>
</Devices>


this device.xml creates the error.. actually 2..

that can not be it..

Karl

Posted on
Mon Aug 12, 2019 8:08 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Error (client) illegal string for list ID (ignoring):

See if removing the space before the 't' gets it working. From:

<Label> text

to:

<Label>text

Image

Posted on
Mon Aug 12, 2019 8:19 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: Error (client) illegal string for list ID (ignoring):

Code: Select all
<?xml version="1.0"?>
<Devices>

<Device type="custom" id="plots">
   <Name>abc</Name>
   <ConfigUI>
      <Field id="xyz"   type="label">    <Label>jkl</Label>     </Field>
   </ConfigUI>
</Device>
</Devices>
still same problem

Karl

Posted on
Tue Aug 13, 2019 5:53 am
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Error (client) illegal string for list ID (ignoring):

I just copy/pasted in the <Device> from the XML above:

Code: Select all
<Device type="custom" id="plots">
   <Name>abc</Name>
   <ConfigUI>
      <Field id="xyz"   type="label">    <Label>jkl</Label>     </Field>
   </ConfigUI>
</Device>

into one of my example plugins, and I'm not getting any error when I create a device from it (and go into its settings dialog). Are you sure the problem is coming from the XML file?

Image

Posted on
Tue Aug 13, 2019 5:55 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: Error (client) illegal string for list ID (ignoring):

Yes it must be in the python code or in the props data.

... ?? How to search for it? ?




Sent from my iPhone using Tapatalk

Posted on
Tue Aug 13, 2019 6:00 am
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Error (client) illegal string for list ID (ignoring):

The Indigo side of the code is inspecting what it wants to be a comma delimited list/array that might (or might not) be a string. It doesn't like that there is a semicolon or comma (or maybe a leading space) in it. I think process of elimination by commenting out code is going to be the way to go.

Image

Posted on
Tue Aug 13, 2019 6:10 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: Error (client) illegal string for list ID (ignoring):

thats going to be difficult ... > 10k lines, can't just eliminate code..

May be a direction where to search for it:?
it only happens when a device (happens to all) is edited. If there are NO calls to filters or callbacks in device.xml which code in the plugin is used?

Karl

Posted on
Tue Aug 13, 2019 6:47 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: Error (client) illegal string for list ID (ignoring):

I checked the props:

printed w:
Code: Select all
indigo.server.log("   "+unicode(prop)+"  >>>"+unicode(props[prop])+"<<<" )
only one ";" in one of the props - and that is a text field:
Code: Select all
lineOffsetMultHelp  >>>offset: shift up down, Multiply value; for a straight line use OFFSET for left value and MULTIPLIER for slope you can use variable %%v:id or name%%<<<
And one list w data:
Code: Select all
MHDFormat  >>MHDFormat : (list)
     Item :  (string)
     Item :  (string)
     Item : %d (string)<<

Posted on
Tue Aug 13, 2019 9:02 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Error (client) illegal string for list ID (ignoring):

If you have a plugin and steps to reproduce the problem then zip them up and email them to me. I can run it in the debugger and get more details about where it is occurring.

Image

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 7 guests