Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-1925

API Inventory error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Minor
    • None
    • Professional Edition
    • API
    • None
    • OS: CentOS
      Observium: 0.16.7.7980 (14th July 2016)

    Description

      No data return from API inventory module.
      Appears to be an issue in the code:
      Warning: array_pop() expects parameter 1 to be array, null given in /opt/observium/libs/ref.inc.php on line 779

      see debug below.
      ----------------------------------------------------
      DEBUG Returned User authentification:

      Warning: array_pop() expects parameter 1 to be array, null given in /opt/observium/libs/ref.inc.php on line 779

      array(2
      id => 142309
      level => 10
      )
      DEBUG Returned Error Code:

      Warning: array_pop() expects parameter 1 to be array, null given in /opt/observium/libs/ref.inc.php on line 779
      array(1
      success => array(2)
      )
      DEBUG Loading module:

      Warning: array_pop() expects parameter 1 to be array, null given in /opt/observium/libs/ref.inc.php on line 779
      array(2
      module => inventory
      file => includes/api/module.inventory.inc.php
      )
      DEBUG Returned device permitted:

      Warning: array_pop() expects parameter 1 to be array, null given in /opt/observium/libs/ref.inc.php on line 779
      true
      DEBUG Returned JSON data:

      Warning: array_pop() expects parameter 1 to be array, null given in /opt/observium/libs/ref.inc.php on line 779
      array(2
      login => array(1)
      data => array()
      )
      DEBUG Returned Encrypted JSON data:

      Warning: array_pop() expects parameter 1 to be array, null given in /opt/observium/libs/ref.inc.php on line 779
      {"login":{"success":{"code":"101","msg":"User authentification succeeded"}},"data":[]}
      ----------------------------------------------------

      Attachments

        Activity

          People

            adama Adam Armstrong
            sleroux Steve Leroux
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: