{"record":{"id":"4257e851f93b9168","repo":"phalcon/cphalcon","slug":"unknown-command","errorCode":null,"errorMessage":"UNKNOWN_COMMAND","messagePattern":"UNKNOWN_COMMAND","errorType":"exception","errorClass":"Phalcon\\Queue\\Exceptions\\Exception","httpStatus":null,"severity":"error","filePath":"phalcon/Queue/Adapter/Beanstalk/BeanstalkConnection.zep","lineNumber":229,"sourceCode":"        }\n\n        if length {\n            if feof(connection) {\n                return false;\n            }\n\n            let data = rtrim(stream_get_line(connection, length + 2), \"\\r\\n\"),\n                meta = stream_get_meta_data(connection);\n\n            if meta[\"timed_out\"] {\n                throw new Exception(\"Connection timed out\");\n            }\n        } else {\n            let data = stream_get_line(connection, 16384, \"\\r\\n\");\n        }\n\n        if data === \"UNKNOWN_COMMAND\" {\n            throw new Exception(\"UNKNOWN_COMMAND\");\n        }\n\n        if data === \"JOB_TOO_BIG\" {\n            throw new Exception(\"JOB_TOO_BIG\");\n        }\n\n        if data === \"BAD_FORMAT\" {\n            throw new Exception(\"BAD_FORMAT\");\n        }\n\n        if data === \"OUT_OF_MEMORY\" {\n            throw new Exception(\"OUT_OF_MEMORY\");\n        }\n\n        return data;\n    }\n\n    /**","sourceCodeStart":211,"sourceCodeEnd":247,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Queue/Adapter/Beanstalk/BeanstalkConnection.zep#L211-L247","documentation":"The Beanstalk server replied with the sentinel text UNKNOWN_COMMAND, which this client re-throws as an exception. It means the client sent a command line the beanstalkd protocol does not recognize — typically a client/server version mismatch or corrupted command framing.","triggerScenarios":"Thrown at phalcon/Queue/Adapter/Beanstalk/BeanstalkConnection.zep:229 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check beanstalkd version and client library compatibility","Inspect the command being sent for corruption (e.g. embedded newlines in job data breaking framing)","Retry with a fresh connection; stale sockets may be desynchronized","Capture the raw traffic to identify the offending command"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b7419de9cd0a8a3f48441ead84c9f8415d463e25","analyzedAt":"2026-08-21T06:21:18.811Z","contentChangedAt":"2026-08-21T06:21:18.811Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}