Welcome to Pandora FMS Community › Forums › Community support › Advanced troubleshooting › API Error 500 to generate graph
Tagged: API
-
API Error 500 to generate graph
Posted by Giuseppe Paolo on April 24, 2023 at 15:48Hello users!
I’m having and error to generate graphs using API. Show error 500.
Someone have issue like this? How can you solve it?
With this url returns OK:
OK,v7.0NG.770,PC230413
But with this URL, show error 500:
https://URL/pandora_console/include/api.php?op=get&op2=module_graph&id=12&other=300&apipass=apipass1&api=1&user=admin&pass=StrongPassword
[HTTP/1.1 500 Internal Server Error 398ms]Thanks,
Giuseppe Paolo Fontana Padilha
Giuseppe Paolo replied 1 year, 6 months ago 2 Members · 6 Replies -
6 Replies
-
::
Hi Giuseppe Paolo,
I have not been able to replicate the problem.
You can query the API as follows:
Change the XXXX for the Pandora FMS server IP and the YYYYY for the module ID.
Then change the credentials of the API and your user.
In case there is an error, can you check the console or apache logs?
Best regards,
VÃc.
-
::
Hi Vic, thanks for your asking… With your URL show the same error (Attached).
About the error log from Apache, cannot show anything related to this issue… *
* PS: I’m running PandoraFMS on Docker. (Then I access this docker with “exec -it /bin/bash”, and get the error_log and access_log files.
Thanks,
Giuseppe Paolo Fontana Padilha
-
-
::
My error is the same that related at Github: https://github.com/pandorafms/pandorafms/issues/220
With Api Get Events works fine.
Thanks,
Giuseppe Paolo Fontana Padilha
-
::
My error is the same that related at Github: https://github.com/pandorafms/pandorafms/issues/220
With Api Get Events works fine.
I locate the error at /var/log/php-fpm/www-error.log:
[28-Apr-2023 14:33:53 America/Sao_Paulo] Wrench\Exception\HandshakeException: No accept header receieved on handshake response in /var/www/html/pandora_console/vendor/chrome-php/wrench/src/Protocol/Protocol.php:469
Stack trace:
#0 /var/www/html/pandora_console/vendor/chrome-php/wrench/src/Client.php(243): Wrench\Protocol\Protocol->validateResponseHandshake()
#1 /var/www/html/pandora_console/vendor/chrome-php/chrome/src/Communication/Socket/Wrench.php(99): Wrench\Client->connect()
#2 /var/www/html/pandora_console/vendor/chrome-php/chrome/src/Communication/Connection.php(186): HeadlessChromium\Communication\Socket\Wrench->connect()
#3 /var/www/html/pandora_console/vendor/chrome-php/chrome/src/Browser/BrowserProcess.php(146): HeadlessChromium\Communication\Connection->connect()
#4 /var/www/html/pandora_console/vendor/chrome-php/chrome/src/BrowserFactory.php(81): HeadlessChromium\Browser\BrowserProcess->start()
#5 /var/www/html/pandora_console/include/functions.php(4306): HeadlessChromium\BrowserFactory->createBrowser()
#6 /var/www/html/pandora_console/include/functions_graph.php(848): generator_chart_to_pdf()
#7 /var/www/html/pandora_console/include/functions_api.php(14539): grafico_modulo_sparse()
#8 /var/www/html/pandora_console/include/api.php(346): api_get_module_graph()
#9 {main}Thanks,
Giuseppe Paolo Fontana Padilha
-