Repository: alexjustesen/speedtest-tracker

Issue #301: InfluxDB error "packetLoss"
Created: 2023-01-07T14:36:38Z
InfluxDB version : 2.6.1
Speedtest-tracker version : v0.9.2
all on docker, using traefik, I already use InfluxDB (using port 443) for Home Assistant, so this already works fine.

I tried adding :443 in the URL, I already tried using the OrgID instead of the OrgName, but same result :
01/07/2023 3:27:05 PM
[2023-01-07 14:27:05] production.ERROR: Undefined array key "packetLoss" {"exception":"[object] (ErrorException(code: 0): Undefined array key \"packetLoss\" at /var/www/html/app/Models/Result.php:78)
01/07/2023 3:27:05 PM
[stacktrace]
01/07/2023 3:27:05 PM
#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(266): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError()
01/07/2023 3:27:05 PM
#1 /var/www/html/app/Models/Result.php(78): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}()
01/07/2023 3:27:05 PM
#2 /var/www/html/app/Jobs/SendDataToInfluxDbV2.php(63): App\\Models\\Result->formatForInfluxDB2()
01/07/2023 3:27:05 PM
#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\\Jobs\\SendDataToInfluxDbV2->handle()
01/07/2023 3:27:05 PM
#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
01/07/2023 3:27:05 PM
#5 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure()
01/07/2023 3:27:05 PM
#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod()
01/07/2023 3:27:05 PM
#7 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(651): Illuminate\\Container\\BoundMethod::call()
01/07/2023 3:27:05 PM
#8 /var/www/html/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(128): Illuminate\\Container\\Container->call()
01/07/2023 3:27:05 PM
#9 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}()
01/07/2023 3:27:05 PM
#10 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
01/07/2023 3:27:05 PM
#11 /var/www/html/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(132): Illuminate\\Pipeline\\Pipeline->then()
01/07/2023 3:27:05 PM
#12 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(124): Illuminate\\Bus\\Dispatcher->dispatchNow()
01/07/2023 3:27:05 PM
#13 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Queue\\CallQueuedHandler->Illuminate\\Queue\\{closure}()
01/07/2023 3:27:05 PM
#14 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
01/07/2023 3:27:05 PM
#15 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(126): Illuminate\\Pipeline\\Pipeline->then()
01/07/2023 3:27:05 PM
#16 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(70): Illuminate\\Queue\\CallQueuedHandler->dispatchThroughMiddleware()
01/07/2023 3:27:05 PM
#17 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(98): Illuminate\\Queue\\CallQueuedHandler->call()
01/07/2023 3:27:05 PM
#18 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(425): Illuminate\\Queue\\Jobs\\Job->fire()
01/07/2023 3:27:05 PM
#19 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(375): Illuminate\\Queue\\Worker->process()
01/07/2023 3:27:05 PM
#20 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(173): Illuminate\\Queue\\Worker->runJob()
01/07/2023 3:27:05 PM
#21 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(147): Illuminate\\Queue\\Worker->daemon()
01/07/2023 3:27:05 PM
#22 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(130): Illuminate\\Queue\\Console\\WorkCommand->runWorker()
01/07/2023 3:27:05 PM
#23 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\\Queue\\Console\\WorkCommand->handle()
01/07/2023 3:27:05 PM
#24 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
01/07/2023 3:27:05 PM
#25 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure()
01/07/2023 3:27:05 PM
#26 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod()
01/07/2023 3:27:05 PM
#27 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(651): Illuminate\\Container\\BoundMethod::call()
01/07/2023 3:27:05 PM
#28 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php(182): Illuminate\\Container\\Container->call()
01/07/2023 3:27:05 PM
#29 /var/www/html/vendor/symfony/console/Command/Command.php(312): Illuminate\\Console\\Command->execute()
01/07/2023 3:27:05 PM
#30 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php(152): Symfony\\Component\\Console\\Command\\Command->run()
01/07/2023 3:27:05 PM
#31 /var/www/html/vendor/symfony/console/Application.php(1022): Illuminate\\Console\\Command->run()
01/07/2023 3:27:05 PM
#32 /var/www/html/vendor/symfony/console/Application.php(314): Symfony\\Component\\Console\\Application->doRunCommand()
01/07/2023 3:27:05 PM
#33 /var/www/html/vendor/symfony/console/Application.php(168): Symfony\\Component\\Console\\Application->doRun()
01/07/2023 3:27:05 PM
#34 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Application.php(102): Symfony\\Component\\Console\\Application->run()
01/07/2023 3:27:05 PM
#35 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(155): Illuminate\\Console\\Application->run()
01/07/2023 3:27:05 PM
#36 /var/www/html/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle()
01/07/2023 3:27:05 PM
#37 {main}
01/07/2023 3:27:05 PM
"} 
01/07/2023 3:27:05 PM
[2023-01-07 14:27:05] production.ERROR: Undefined array key "packetLoss" {"exception":"[object] (ErrorException(code: 0): Undefined array key \"packetLoss\" at /var/www/html/app/Models/Result.php:78)
01/07/2023 3:27:05 PM
[stacktrace]
01/07/2023 3:27:05 PM
#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(266): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError()
01/07/2023 3:27:05 PM
#1 /var/www/html/app/Models/Result.php(78): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}()
01/07/2023 3:27:05 PM
#2 /var/www/html/app/Jobs/SendDataToInfluxDbV2.php(63): App\\Models\\Result->formatForInfluxDB2()
01/07/2023 3:27:05 PM
#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\\Jobs\\SendDataToInfluxDbV2->handle()
01/07/2023 3:27:05 PM
#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
01/07/2023 3:27:05 PM
#5 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure()
01/07/2023 3:27:05 PM
#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod()
01/07/2023 3:27:05 PM
#7 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(651): Illuminate\\Container\\BoundMethod::call()
01/07/2023 3:27:05 PM
#8 /var/www/html/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(128): Illuminate\\Container\\Container->call()
01/07/2023 3:27:05 PM
#9 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}()
01/07/2023 3:27:05 PM
#10 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
01/07/2023 3:27:05 PM
#11 /var/www/html/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(132): Illuminate\\Pipeline\\Pipeline->then()
01/07/2023 3:27:05 PM
#12 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(124): Illuminate\\Bus\\Dispatcher->dispatchNow()
01/07/2023 3:27:05 PM
#13 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Queue\\CallQueuedHandler->Illuminate\\Queue\\{closure}()
01/07/2023 3:27:05 PM
#14 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
01/07/2023 3:27:05 PM
#15 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(126): Illuminate\\Pipeline\\Pipeline->then()
01/07/2023 3:27:05 PM
#16 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(70): Illuminate\\Queue\\CallQueuedHandler->dispatchThroughMiddleware()
01/07/2023 3:27:05 PM
#17 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(98): Illuminate\\Queue\\CallQueuedHandler->call()
01/07/2023 3:27:05 PM
#18 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(425): Illuminate\\Queue\\Jobs\\Job->fire()
01/07/2023 3:27:05 PM
#19 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(375): Illuminate\\Queue\\Worker->process()
01/07/2023 3:27:05 PM
#20 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(173): Illuminate\\Queue\\Worker->runJob()
01/07/2023 3:27:05 PM
#21 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(147): Illuminate\\Queue\\Worker->daemon()
01/07/2023 3:27:05 PM
#22 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(130): Illuminate\\Queue\\Console\\WorkCommand->runWorker()
01/07/2023 3:27:05 PM
#23 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\\Queue\\Console\\WorkCommand->handle()
01/07/2023 3:27:05 PM
#24 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
01/07/2023 3:27:05 PM
#25 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure()
01/07/2023 3:27:05 PM
#26 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod()
01/07/2023 3:27:05 PM
#27 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(651): Illuminate\\Container\\BoundMethod::call()
01/07/2023 3:27:05 PM
#28 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php(182): Illuminate\\Container\\Container->call()
01/07/2023 3:27:05 PM
#29 /var/www/html/vendor/symfony/console/Command/Command.php(312): Illuminate\\Console\\Command->execute()
01/07/2023 3:27:05 PM
#30 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php(152): Symfony\\Component\\Console\\Command\\Command->run()
01/07/2023 3:27:05 PM
#31 /var/www/html/vendor/symfony/console/Application.php(1022): Illuminate\\Console\\Command->run()
01/07/2023 3:27:05 PM
#32 /var/www/html/vendor/symfony/console/Application.php(314): Symfony\\Component\\Console\\Application->doRunCommand()
01/07/2023 3:27:05 PM
#33 /var/www/html/vendor/symfony/console/Application.php(168): Symfony\\Component\\Console\\Application->doRun()
01/07/2023 3:27:05 PM
#34 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Application.php(102): Symfony\\Component\\Console\\Application->run()
01/07/2023 3:27:05 PM
#35 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(155): Illuminate\\Console\\Application->run()
01/07/2023 3:27:05 PM
#36 /var/www/html/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle()
01/07/2023 3:27:05 PM
#37 {main}
01/07/2023 3:27:05 PM
"} 
01/07/2023 3:27:05 PM
[2023-01-07 14:27:05] production.ERROR: Undefined array key "packetLoss" {"exception":"[object] (ErrorException(code: 0): Undefined array key \"packetLoss\" at /var/www/html/app/Models/Result.php:78)
01/07/2023 3:27:05 PM
[stacktrace]
01/07/2023 3:27:05 PM
#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(266): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError()
01/07/2023 3:27:05 PM
#1 /var/www/html/app/Models/Result.php(78): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}()
01/07/2023 3:27:05 PM
#2 /var/www/html/app/Jobs/SendDataToInfluxDbV2.php(63): App\\Models\\Result->formatForInfluxDB2()
01/07/2023 3:27:05 PM
#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\\Jobs\\SendDataToInfluxDbV2->handle()
01/07/2023 3:27:05 PM
#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
01/07/2023 3:27:05 PM
#5 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure()
01/07/2023 3:27:05 PM
#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod()
01/07/2023 3:27:05 PM
#7 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(651): Illuminate\\Container\\BoundMethod::call()
01/07/2023 3:27:05 PM
#8 /var/www/html/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(128): Illuminate\\Container\\Container->call()
01/07/2023 3:27:05 PM
#9 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}()
01/07/2023 3:27:05 PM
#10 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
01/07/2023 3:27:05 PM
#11 /var/www/html/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(132): Illuminate\\Pipeline\\Pipeline->then()
01/07/2023 3:27:05 PM
#12 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(124): Illuminate\\Bus\\Dispatcher->dispatchNow()
01/07/2023 3:27:05 PM
#13 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Queue\\CallQueuedHandler->Illuminate\\Queue\\{closure}()
01/07/2023 3:27:05 PM
#14 /var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
01/07/2023 3:27:05 PM
#15 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(126): Illuminate\\Pipeline\\Pipeline->then()
01/07/2023 3:27:05 PM
#16 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(70): Illuminate\\Queue\\CallQueuedHandler->dispatchThroughMiddleware()
01/07/2023 3:27:05 PM
#17 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(98): Illuminate\\Queue\\CallQueuedHandler->call()
01/07/2023 3:27:05 PM
#18 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(425): Illuminate\\Queue\\Jobs\\Job->fire()
01/07/2023 3:27:05 PM
#19 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(375): Illuminate\\Queue\\Worker->process()
01/07/2023 3:27:05 PM
#20 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(173): Illuminate\\Queue\\Worker->runJob()
01/07/2023 3:27:05 PM
#21 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(147): Illuminate\\Queue\\Worker->daemon()
01/07/2023 3:27:05 PM
#22 /var/www/html/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(130): Illuminate\\Queue\\Console\\WorkCommand->runWorker()
01/07/2023 3:27:05 PM
#23 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\\Queue\\Console\\WorkCommand->handle()
01/07/2023 3:27:05 PM
#24 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
01/07/2023 3:27:05 PM
#25 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure()
01/07/2023 3:27:05 PM
#26 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod()
01/07/2023 3:27:05 PM
#27 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(651): Illuminate\\Container\\BoundMethod::call()
01/07/2023 3:27:05 PM
#28 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php(182): Illuminate\\Container\\Container->call()
01/07/2023 3:27:05 PM
#29 /var/www/html/vendor/symfony/console/Command/Command.php(312): Illuminate\\Console\\Command->execute()
01/07/2023 3:27:05 PM
#30 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Command.php(152): Symfony\\Component\\Console\\Command\\Command->run()
01/07/2023 3:27:05 PM
#31 /var/www/html/vendor/symfony/console/Application.php(1022): Illuminate\\Console\\Command->run()
01/07/2023 3:27:05 PM
#32 /var/www/html/vendor/symfony/console/Application.php(314): Symfony\\Component\\Console\\Application->doRunCommand()
01/07/2023 3:27:05 PM
#33 /var/www/html/vendor/symfony/console/Application.php(168): Symfony\\Component\\Console\\Application->doRun()
01/07/2023 3:27:05 PM
#34 /var/www/html/vendor/laravel/framework/src/Illuminate/Console/Application.php(102): Symfony\\Component\\Console\\Application->run()
01/07/2023 3:27:05 PM
#35 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(155): Illuminate\\Console\\Application->run()
01/07/2023 3:27:05 PM
#36 /var/www/html/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle()
01/07/2023 3:27:05 PM
#37 {main}
01/07/2023 3:27:05 PM
"}

Duplicate issue #399: Error Undefined array key "ping"
Created: 2023-02-06T22:09:03Z
Most times I get this Error like 1 out 10 times i get a result.
Results Data:
{"type":"log","timestamp":"2023-02-06T22:00:03Z","message":"Path used: /root/.config/ookla/speedtest-cli.json","level":"error"}
Error in log:
production.ERROR: Undefined array key "ping" {"exception":"[object] (ErrorException(code: 0): Undefined array key "ping" at /var/www/html/app/Models/Result.php:85)
#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(266): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()

Closing comment (2023-02-12T13:12:39Z): This is related to #301, changes coming soon to how data is handled.