floci-io/floci · error · AwsException
InvalidRequestException
InvalidRequestException
Error message
{} is required. What it means
Error "{} is required." thrown in floci-io/floci.
Source
Thrown at src/main/java/io/github/hectorvent/floci/services/cloudcontrol/CloudControlJsonHandler.java:76
pe.put("Operation", event.operation());
pe.put("OperationStatus", event.operationStatus());
if (event.statusMessage() != null) {
pe.put("StatusMessage", event.statusMessage());
}
if (event.resourceModel() != null) {
pe.put("ResourceModel", event.resourceModel());
}
return Response.ok(response).build();
}
/**
* InvalidRequestException is the code Cloud Control declares for a malformed request, so it is
* what an SDK maps onto a typed exception. ValidationException is not in the service model.
*/
private String required(JsonNode request, String field) {
String value = request.path(field).asText(null);
if (value == null || value.isBlank()) {
throw new AwsException("InvalidRequestException", field + " is required.", 400);
}
return value;
}
/**
* GetResourceRequestStatus declares only RequestTokenNotFoundException, so an absent token
* reports that rather than the InvalidRequestException the other operations declare.
*/
private String requestToken(JsonNode request) {
String value = request.path("RequestToken").asText(null);
if (value == null || value.isBlank()) {
throw new AwsException("RequestTokenNotFoundException", "RequestToken is required.", 404);
}
return value;
}
private Response listResources(JsonNode request, String region) {
String typeName = required(request, "TypeName");View on GitHub (pinned to 62ff490619)
Solutions
- Include the required parameter in the request payload.
When it happens
Trigger: Thrown at src/main/java/io/github/hectorvent/floci/services/cloudcontrol/CloudControlJsonHandler.java:76 when the library encounters an invalid state.
Common situations: Occurs when a required field is missing from a CloudControl request payload. Include the named field in the JSON body.
AI-assisted analysis of floci-io/floci@62ff490619 (2026-08-14).
Data as JSON: /api/errors/5821869f56454cb7.
Report an issue: GitHub.