{"record":{"id":"b97329270da469de","repo":"floci-io/floci","slug":"requesttokennotfoundexception-b97329","errorCode":"RequestTokenNotFoundException","errorMessage":"Request token {requestToken} was not found.","messagePattern":"Request token (.+?) was not found\\.","errorType":"exception","errorClass":"AwsException","httpStatus":404,"severity":"error","filePath":"src/main/java/io/github/hectorvent/floci/services/cloudcontrol/CloudControlService.java","lineNumber":201,"sourceCode":"            // The delete would no-op. Reporting SUCCESS over a resource that is still there is the\n            // worse failure, so surface it instead.\n            return record(new ProgressEvent(typeName, identifier, UUID.randomUUID().toString(),\n                    \"DELETE\", \"FAILED\",\n                    \"DeleteResource for \" + typeName + \" needs create-time state that Cloud Control does \"\n                    + \"not hold for \" + identifier + \".\", null));\n        }\n\n        provisioner.deleteStandalone(typeName, identifier, region, attributes);\n        created.remove(key);\n        return record(new ProgressEvent(typeName, identifier,\n                UUID.randomUUID().toString(), \"DELETE\", \"SUCCESS\", null, null));\n    }\n\n    /** Cloud Control {@code GetResourceRequestStatus}. */\n    public ProgressEvent requestStatus(String requestToken) {\n        ProgressEvent event = requests.get(requestToken);\n        if (event == null) {\n            throw new AwsException(\"RequestTokenNotFoundException\",\n                    \"Request token \" + requestToken + \" was not found.\", 404);\n        }\n        return event;\n    }\n\n    /** Cloud Control {@code GetResource}: a single resource from the read side, by identifier. */\n    public ResourceDescription getResource(String region, String typeName, String identifier) {\n        for (ResourceDescription d : listResources(region, typeName)) {\n            if (d.identifier().equals(identifier)) {\n                return d;\n            }\n        }\n        // CreateResource provisions the whole CFN type set while the read side lists six types, so\n        // fall back to what the create recorded — otherwise a successful create is unreadable.\n        CreatedResource state = created.get(createdKey(region, typeName, identifier));\n        if (state != null) {\n            return new ResourceDescription(identifier, state.model());\n        }","sourceCodeStart":183,"sourceCodeEnd":219,"githubUrl":"https://github.com/floci-io/floci/blob/62ff490619e7bd3554597c28c704081b4c15add5/src/main/java/io/github/hectorvent/floci/services/cloudcontrol/CloudControlService.java#L183-L219","documentation":"Error \"Request token {requestToken} was not found.\" thrown in floci-io/floci.","triggerScenarios":"Thrown at src/main/java/io/github/hectorvent/floci/services/cloudcontrol/CloudControlService.java:201 when the library encounters an invalid state.","commonSituations":"Occurs when GetResourceRequestStatus is called with an unknown RequestToken. Use the token returned by the original mutating request.","solutions":["Verify the request token via ListResourceRequests.","Repeat the operation with a new RequestToken."],"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-15T22:17:37.221Z"}