apache/flink · error · FlinkRuntimeException

The Job Status cannot be requested when in Web Submission.

Error message

The Job Status cannot be requested when in Web Submission.

What it means

UnsupportedOperationException thrown by WebSubmissionJobClient.getJobStatus: this JobClient variant is created only for jobs submitted via the web UI and has no cluster connection, so status queries are inherently unsupported on it.

Solutions

  1. Address the cause reported by the error message: The Job Status cannot be requested when in Web Submission.
  2. Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry.

Example fix

Correct the condition described ("The Job Status cannot be requested when in Web Submission.") and rerun the job or command.
Defensive patterns

Strategy: type-guard

When it happens

Trigger: Triggered at runtime when the operation fails because: The Job Status cannot be requested when in Web Submission.

Common situations: Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: The Job Status cannot be requested when in Web Submission.


AI-assisted analysis of apache/flink@2f3c205e92 (2026-08-14). Data as JSON: /api/errors/e6bb4700aa67c124. Report an issue: GitHub.

Appendix: source

Thrown at flink-clients/src/main/java/org/apache/flink/client/deployment/application/WebSubmissionJobClient.java:58

 * while waiting for their completion.
 */
@PublicEvolving
public class WebSubmissionJobClient implements JobClient {

    private final JobID jobId;

    public WebSubmissionJobClient(final JobID jobId) {
        this.jobId = checkNotNull(jobId);
    }

    @Override
    public JobID getJobID() {
        return jobId;
    }

    @Override
    public CompletableFuture<JobStatus> getJobStatus() {
        throw new FlinkRuntimeException(
                "The Job Status cannot be requested when in Web Submission.");
    }

    @Override
    public CompletableFuture<Void> cancel() {
        throw new FlinkRuntimeException(
                "Cancelling the job is not supported by the Job Client when in Web Submission.");
    }

    @Override
    public CompletableFuture<String> stopWithSavepoint(
            boolean advanceToEndOfEventTime,
            @Nullable String savepointDirectory,
            SavepointFormatType formatType) {
        throw new FlinkRuntimeException(
                "Stop with Savepoint is not supported by the Job Client when in Web Submission.");
    }

View on GitHub (pinned to 2f3c205e92)