Transport Jira - Test to jira failed - general error

Hi,

A few months ago I set up a Transport to create tickets in Jira from a librenms alert and everything was working fine.

Now, in the production librenms server, I have tried to perform the same configuration but it gives an error when performing the Transport test:
Test to jira failed - general error

In the log it shows this error:

[2021-10-29 08:38:56] production.ERROR: Illegal string offset ‘bill_id’ {“userId”: 2, “exception”: "[object] (ErrorException (code: 0): Illegal string offset 'bill_id 'at /opt/librenms/LibreNMS/Alert/AlertUtil.php:96)
[stacktrace]

0 /opt/librenms/LibreNMS/Alert/AlertUtil.php(96): Illuminate \ Foundation \ Bootstrap \ HandleExceptions-> handleError (2, ‘Illegal string …’, '/ opt / librenms / L. … ', 96, Array)

1 /opt/librenms/app/Http/Controllers/AlertTransportController.php(34): LibreNMS \ Alert \ AlertUtil :: getContacts (Array)

2 /opt/librenms/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App \ Http \ Controllers \ AlertTransportController-> test (Object (Illuminate \ Http \ Request) , Object (App \ Models \ AlertTransport))

3 /opt/librenms/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate \ Routing \ Controller-> callAction (‘test’, Array)

4 /opt/librenms/vendor/laravel/framework/src/Illuminate/Routing/Route.php(262): Illuminate \ Routing \ ControllerDispatcher-> dispatch (Object (Illuminate \ Routing \ Route), Object ( App \ Http \ Controllers \ AlertTransportController), ‘test’) [2021-10-29 08:38:56] production.ERROR: Illegal string offset ‘bill_id’ {“userId”: 2, “exception”: " [object] (ErrorException (code: 0): Illegal string offset ‘bill_id’ at /opt/librenms/LibreNMS/Alert/AlertUtil.php:96)

[stacktrace]

Has anything changed in the librenms code lately so that it doesn’t work? I don’t have much knowledge of PHP to understand the problem.

It has a solution?

Thanks, regards

https://github.com/librenms/librenms/pull/13446 might fix you.

Additionally, these failures are only affect the test option, not actual alert delivery.

I have tried to generate an alert so that the transport of jira is executed but it does not work either.

Thank you anyway

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.