{"record":{"id":"f8c331fe1d6d4c8d","repo":"Seldaek/monolog","slug":"no-connection-could-be-established","errorCode":null,"errorMessage":"No connection could be established","messagePattern":"No connection could be established","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"src/Monolog/Handler/CubeHandler.php","lineNumber":156,"sourceCode":"        if (null === $this->udpConnection) {\n            $this->connectUdp();\n        }\n\n        if (null === $this->udpConnection) {\n            throw new \\LogicException('No UDP socket could be opened');\n        }\n\n        socket_send($this->udpConnection, $data, \\strlen($data), 0);\n    }\n\n    private function writeHttp(string $data): void\n    {\n        if (null === $this->httpConnection) {\n            $this->connectHttp();\n        }\n\n        if (null === $this->httpConnection) {\n            throw new \\LogicException('No connection could be established');\n        }\n\n        curl_setopt($this->httpConnection, CURLOPT_POSTFIELDS, '['.$data.']');\n        curl_setopt($this->httpConnection, CURLOPT_HTTPHEADER, [\n            'Content-Type: application/json',\n            'Content-Length: ' . \\strlen('['.$data.']'),\n        ]);\n\n        Curl\\Util::execute($this->httpConnection, 5);\n    }\n}\n","sourceCodeStart":138,"sourceCodeEnd":168,"githubUrl":"https://github.com/Seldaek/monolog/blob/57eb1028342134e701e77c617565d51b6e5a2a53/src/Monolog/Handler/CubeHandler.php#L138-L168","documentation":"Error \"No connection could be established\" thrown in Seldaek/monolog.","triggerScenarios":"Thrown at src/Monolog/Handler/CubeHandler.php:156 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"57eb1028342134e701e77c617565d51b6e5a2a53","analyzedAt":"2026-08-17T02:36:30.259Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}