floci-io/floci · error · AwsException

ResourceNotFoundException

ResourceNotFoundException

Error message

Resource {identifier} of type {typeName} was not found.

What it means

Error "Resource {identifier} of type {typeName} was not found." thrown in floci-io/floci.

Source

Thrown at src/main/java/io/github/hectorvent/floci/services/cloudcontrol/CloudControlService.java:220

                    "Request token " + requestToken + " was not found.", 404);
        }
        return event;
    }

    /** Cloud Control {@code GetResource}: a single resource from the read side, by identifier. */
    public ResourceDescription getResource(String region, String typeName, String identifier) {
        for (ResourceDescription d : listResources(region, typeName)) {
            if (d.identifier().equals(identifier)) {
                return d;
            }
        }
        // CreateResource provisions the whole CFN type set while the read side lists six types, so
        // fall back to what the create recorded — otherwise a successful create is unreadable.
        CreatedResource state = created.get(createdKey(region, typeName, identifier));
        if (state != null) {
            return new ResourceDescription(identifier, state.model());
        }
        throw new AwsException("ResourceNotFoundException",
                "Resource " + identifier + " of type " + typeName + " was not found.", 404);
    }

    /**
     * Stores a request's latest state, evicting the oldest finished tokens once the map grows past
     * {@link #MAX_RETAINED_REQUESTS}. In-flight tokens are never evicted — a client still polling
     * must not get RequestTokenNotFound.
     */
    private ProgressEvent record(ProgressEvent event) {
        if (requests.put(event.requestToken(), event) == null) {
            requestOrder.add(event.requestToken());
        }
        while (requests.size() > MAX_RETAINED_REQUESTS) {
            String oldest = requestOrder.poll();
            if (oldest == null) {
                break;
            }
            ProgressEvent existing = requests.get(oldest);

View on GitHub (pinned to 62ff490619)

Solutions

  1. Verify the resource identifier and type name.
  2. Create the resource first, then retry.

When it happens

Trigger: Thrown at src/main/java/io/github/hectorvent/floci/services/cloudcontrol/CloudControlService.java:220 when the library encounters an invalid state.

Common situations: Occurs when operating on a resource identifier that does not exist for the given type. Verify the TypeName and Identifier, or create the resource first.


AI-assisted analysis of floci-io/floci@62ff490619 (2026-08-14). Data as JSON: /api/errors/09ddd0b6b33702f5. Report an issue: GitHub.