{"record":{"id":"d06817126649b13b","repo":"floci-io/floci","slug":"invalidnonceexception","errorCode":"InvalidNonceException","errorMessage":"Invalid job nonce","messagePattern":"Invalid job nonce","errorType":"exception","errorClass":"AwsException","httpStatus":400,"severity":"error","filePath":"src/main/java/io/github/hectorvent/floci/services/codepipeline/CodePipelineService.java","lineNumber":572,"sourceCode":"                continue;\n            }\n            JsonNode data = item.getData();\n            if (requested.equals(data.path(\"actionTypeKey\").asText())\n                    && thirdParty == data.path(\"thirdParty\").asBoolean(false)) {\n                jobs.add(data.path(\"job\"));\n            }\n        }\n        ObjectNode response = mapper.createObjectNode();\n        response.set(\"jobs\", jobs);\n        return response;\n    }\n\n    private ObjectNode acknowledgeJob(JsonNode request, String region, String account) {\n        CodePipelineStoredItem job = requireItem(\n                account, region, \"job\", text(request, \"jobId\"), \"JobNotFoundException\");\n        String nonce = text(request, \"nonce\");\n        if (!nonce.equals(job.getData().path(\"nonce\").asText())) {\n            throw new AwsException(\"InvalidNonceException\", \"Invalid job nonce\", 400);\n        }\n        if (!\"Created\".equals(job.getStatus())) {\n            throw new AwsException(\"InvalidJobStateException\", \"Job has already been acknowledged\", 400);\n        }\n        job.setStatus(\"InProgress\");\n        job.setUpdated(now());\n        putItem(job);\n        return mapper.createObjectNode().put(\"status\", \"InProgress\");\n    }\n\n    private ObjectNode getJobDetails(JsonNode request, String region, String account) {\n        CodePipelineStoredItem job = requireItem(\n                account, region, \"job\", text(request, \"jobId\"), \"JobNotFoundException\");\n        return mapper.createObjectNode().set(\"jobDetails\", job.getData().path(\"job\"));\n    }\n\n    private ObjectNode completeJob(JsonNode request, String region, String account, boolean success) {\n        CodePipelineStoredItem job = requireItem(","sourceCodeStart":554,"sourceCodeEnd":590,"githubUrl":"https://github.com/floci-io/floci/blob/62ff490619e7bd3554597c28c704081b4c15add5/src/main/java/io/github/hectorvent/floci/services/codepipeline/CodePipelineService.java#L554-L590","documentation":"Error \"Invalid job nonce\" thrown in floci-io/floci.","triggerScenarios":"Thrown at src/main/java/io/github/hectorvent/floci/services/codepipeline/CodePipelineService.java:572 when the library encounters an invalid state.","commonSituations":"Occurs when acknowledging a CodePipeline job with a nonce that does not match. Use the nonce returned by PollForJobs.","solutions":["Use the nonce returned by PollForJobs for this job."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"62ff490619e7bd3554597c28c704081b4c15add5","analyzedAt":"2026-08-14T14:25:23.764Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}