{"record":{"id":"69d8a098bc6f3fd7","repo":"apache/flink","slug":"cancelling-the-job-is-not-supported-by-the-job-cli","errorCode":null,"errorMessage":"Cancelling the job is not supported by the Job Client when in Web Submission.","messagePattern":"Cancelling the job is not supported by the Job Client when in Web Submission\\.","errorType":"exception","errorClass":"FlinkRuntimeException","httpStatus":null,"severity":"error","filePath":"flink-clients/src/main/java/org/apache/flink/client/deployment/application/WebSubmissionJobClient.java","lineNumber":64,"sourceCode":"\n    public WebSubmissionJobClient(final JobID jobId) {\n        this.jobId = checkNotNull(jobId);\n    }\n\n    @Override\n    public JobID getJobID() {\n        return jobId;\n    }\n\n    @Override\n    public CompletableFuture<JobStatus> getJobStatus() {\n        throw new FlinkRuntimeException(\n                \"The Job Status cannot be requested when in Web Submission.\");\n    }\n\n    @Override\n    public CompletableFuture<Void> cancel() {\n        throw new FlinkRuntimeException(\n                \"Cancelling the job is not supported by the Job Client when in Web Submission.\");\n    }\n\n    @Override\n    public CompletableFuture<String> stopWithSavepoint(\n            boolean advanceToEndOfEventTime,\n            @Nullable String savepointDirectory,\n            SavepointFormatType formatType) {\n        throw new FlinkRuntimeException(\n                \"Stop with Savepoint is not supported by the Job Client when in Web Submission.\");\n    }\n\n    @Override\n    public CompletableFuture<String> triggerSavepoint(\n            @Nullable String savepointDirectory, SavepointFormatType formatType) {\n        throw new FlinkRuntimeException(\n                \"A savepoint cannot be taken through the Job Client when in Web Submission.\");\n    }","sourceCodeStart":46,"sourceCodeEnd":82,"githubUrl":"https://github.com/apache/flink/blob/2f3c205e9266cb30240eb7f4fdab15cad629a70f/flink-clients/src/main/java/org/apache/flink/client/deployment/application/WebSubmissionJobClient.java#L46-L82","documentation":"WebSubmissionJobClient.cancel unconditionally throws FlinkRuntimeException because in web submission mode the client only holds a JobID received after the job was submitted via the REST interface; it has no connection to the cluster to issue a cancel request. This is a sentinel guard: any call to cancel() on this client fails by design.","triggerScenarios":"Triggered at runtime when the operation fails because: Cancelling the job is not supported by the Job Client when in Web Submission.","commonSituations":"Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: Cancelling the job is not supported by the Job Client when in Web Submission.","solutions":["Address the cause reported by the error message: Cancelling the job is not supported by the Job Client when in Web Submission.","Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry."],"exampleFix":"Correct the condition described (\"Cancelling the job is not supported by the Job Client when in Web Submission.\") and rerun the job or command.","handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2f3c205e9266cb30240eb7f4fdab15cad629a70f","analyzedAt":"2026-08-14T08:48:24.518Z","contentChangedAt":"2026-08-14T08:48:24.518Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}