Error parsing list JSON downloaded from server (TEZI)

I have a local webserver running following the instructions in this page:

My service file looks like:

<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
  <name replace-wildcards="yes">Custom Toradex Easy Installer Feed</name>
  <service>
    <type>_tezi._tcp</type>
    <port>80</port>
    <txt-record>name=Custom Toradex Easy Installer Feed</txt-record>
    <txt-record>path=image_list.json</txt-record>
    <txt-record>enabled=1</txt-record>
    <txt-record>https=0</txt-record>
  </service>
</service-group>

My image_list.json file looks like:


{
  "config_format": 1,
  "images": [
    "imx8x/image.json"
  ]
}

When I launch the Easy Installer I get the following error:

Error parsing list JSON downloaded from server

What am I missing?

Hi @nmohan86,

I tested it here and it worked with your service script and it worked. Looks like you have a parsing error in your JSON file. From the code that you pasted, the first line is a blank line, maybe this is causing the issue. Try with this code:

{
  "config_format": 1,
  "images": [
    "imx8x/image.json"
  ]
}

Without the new line. Please, check if works or not.

Best regards,
Hiago.

I removed all spaces from the file and I am still getting the same error.

Please find the file attached.

image_list.json (49 Bytes)

I was able to figure it out.

This is the URL that Easy Installer was using to pull image_list.json

http://raspberrypi.local:80image_list.json

which was causing QFileOpen to fail.

I updated the the path in tezi.service to:

 <txt-record>path=/image_list.json</txt-record>

and now everything works.

1 Like