Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.11.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Rest API bug with a list computers details

I got a problem when i try a route :
http://myocsserver/ocsapi/v1/computers?start={startoffset}&limit={limitoffset}
I'm using it like this : https://website/ocsapi/v1/computers?start=0&limit=50
It says "We're sorry, something went wrong", when i open my error.log in apache2 i got this :

DBD::mysql::db selectall_arrayref failed: Table 'ocsweb.service' doesn't exist at /usr/local/share/perl/5.24.1/Api/Ocsinventory/Restapi/ApiCommon.pm line 102.
[2020-03-27 14:19:14.46465] [6022] [error] DBD::mysql::db selectall_arrayref failed: Table 'ocsweb.service' doesn't exist at /usr/local/share/perl/5.24.1/Api/Ocsinventory/Restapi/ApiCommon.pm line 102

I got the sql file from source code of ocs, no "service" table exists. Can someone help me on this ?

I don't know if this help, but this query works : https://website/ocsapi/v1/computers/search?start=0&limit=50

in OCS Inventory NG server for Unix by (120 points)

Please log in or register to answer this question.

 
Powered by Question2Answer
...