Fatal error when try call endpoint API
Posted: May 25th, 2023, 1:21 pm
Hello all,
I can see an error like below when I tried call this url: $query='https://myhost.com:2222/CMD_PLUGINS_ADM ... .raw?api=1';
Someome can help me?
Fatal error: Uncaught JetBackup\Core\Exception\APIOutputException: Syntax error in /usr/local/jetapps/var/lib/jetbackup5/Core/Entities/Util.inc on line 614 #0 /usr/local/jetapps/var/lib/jetbackup5/Core/Entities/Util.inc(614): json_decode('function=listAc...', true, 512, 4194304) #1 /usr/local/jetapps/var/lib/jetbackup5/Core/API/API.inc(216): JetBackup\Core\Entities\Util::jsonDecode('function=listAc...', true) #2 /usr/local/jetapps/var/lib/jetbackup5/Core/API/API.inc(54): JetBackup\Core\API\API->__construct(1001, 'json', false) #3 /usr/local/jetapps/var/lib/jetbackup5/Core/API/API.inc(66): JetBackup\Core\API\API::_run(1001, 'json', false, false) #4 /usr/local/jetapps/usr/bin/jetbackup5/jetbackup_admin_exec(22): JetBackup\Core\API\API::run(1001) #5 {main} in /usr/local/jetapps/var/lib/jetbackup5/Core/API/API.inc:382 Stack trace: #0 [internal function]: JetBackup\Core\API\API::exceptionHandler(Object(JsonException)) #1 {main} thrown in /usr/local/jetapps/var/lib/jetbackup5/Core/API/API.inc on line 382
I can see an error like below when I tried call this url: $query='https://myhost.com:2222/CMD_PLUGINS_ADM ... .raw?api=1';
Someome can help me?
Fatal error: Uncaught JetBackup\Core\Exception\APIOutputException: Syntax error in /usr/local/jetapps/var/lib/jetbackup5/Core/Entities/Util.inc on line 614 #0 /usr/local/jetapps/var/lib/jetbackup5/Core/Entities/Util.inc(614): json_decode('function=listAc...', true, 512, 4194304) #1 /usr/local/jetapps/var/lib/jetbackup5/Core/API/API.inc(216): JetBackup\Core\Entities\Util::jsonDecode('function=listAc...', true) #2 /usr/local/jetapps/var/lib/jetbackup5/Core/API/API.inc(54): JetBackup\Core\API\API->__construct(1001, 'json', false) #3 /usr/local/jetapps/var/lib/jetbackup5/Core/API/API.inc(66): JetBackup\Core\API\API::_run(1001, 'json', false, false) #4 /usr/local/jetapps/usr/bin/jetbackup5/jetbackup_admin_exec(22): JetBackup\Core\API\API::run(1001) #5 {main} in /usr/local/jetapps/var/lib/jetbackup5/Core/API/API.inc:382 Stack trace: #0 [internal function]: JetBackup\Core\API\API::exceptionHandler(Object(JsonException)) #1 {main} thrown in /usr/local/jetapps/var/lib/jetbackup5/Core/API/API.inc on line 382