I created an app that has a Gearman worker that pushes information to New Relic Insights. Everything works fine, but when I run the testing script on Terminal, the following error messages appears (after process is done):
{"error":{"type":"ErrorException","message":"Array to string conversion","file":"\/usr\/local\/share\/gearman-manager\/GearmanPeclManager.php","line":60}}
I have looked in to the Gearman documentation and I cannot find anything that might help me find the source of this message.
The app basically sends a JSON to New Relic Insights, and since New Relic Insights require that each JSON has a maximum of 1000 events, I set up the script to break the array in chunks when there are more than 1000 events in the JSON.
Can anyone give me an insight on what it means and how can I solve it?