ElectricBrainUK / UnraidAPI

A WIP open source Node JS API for controlling UNraid
GNU General Public License v3.0
125 stars 13 forks source link

There was a problem retrieving a field for a docker image #29

Closed Daandeve closed 3 years ago

Daandeve commented 3 years ago

Describe the bug When the unraid-api docker container starts, most of the topics update in mqtt. When it gets to my custom docker containers this error appears in the console: There was a problem retrieving a field for a docker image Cannot read property 'contents' of undefined After the error the api is unresponsive, and it does not update any mqtt topics.

Unraid server (please complete the following information):

Unraidapi docker container (please complete the following information):

willnnotdan commented 3 years ago

Fix for this on the beta tag, should be released to latest soon

Daandeve commented 3 years ago

Alright, thanks for the fast fix. I will test the beta image.

Daandeve commented 3 years ago

The problem is not solved yet. This is the failing element, I hope you have the information you need to solve this.

{
  tags: { class: 'ct-name', style: 'width:220px;padding:8px', html: 'td' },
  children: [
    {
      tags: { class: 'outer', html: 'span' },
      children: [
    {
          tags: { id: 'CONTAINER_ID', class: 'hand', html: 'span' },
          children: [
            {
              tags: {
                src: '/plugins/dynamix.docker.manager/images/question.png',
                class: 'img',
                html: 'img'
              }
            },
            [length]: 1
          ]
        },
    {
          tags: { class: 'inner', html: 'span' },
          children: [
            {
              tags: { class: 'appname', '': undefined, html: 'span' },
              contents: 'CONTAINER_NAME',
              children: [ [length]: 0 ]
            },
            {
              tags: { html: 'br' },
              children: [
                {
                  tags: {
                    id: 'load-CONTAINER_ID',
                    class: 'fa',
                    'fa-square': undefined,
                    stopped: undefined,
                    'red-text': undefined,
                    html: 'i'
                  }
                },
                {
                  tags: { class: 'state', html: 'span' },
                  contents: 'stopped',
                  children: [ [length]: 0
                },
                [length]: 2
              ]
            },
            [length]: 2
          ]
        },
        [length]: 2
      ]
    },
    {
      tags: { class: 'advanced', html: 'span' },
      contents: 'Container ID: CONTAINER_ID',
      children: [
    {
          tags: { html: 'br' },
          contents: 'By: CONTAINER_AUTHOR',
          children: [ [length]: 0 ]
        },
        [length]: 1
      ]
    },
    [length]: 2
  ]
}
Daandeve commented 3 years ago

After a update from yesterday, the issue is fixed. Thanks!