floci-io/floci · error · AwsException

InternalFailure

InternalFailure

Error message

Failed to serialize CloudControl resource properties.

What it means

Error "Failed to serialize CloudControl resource properties." thrown in floci-io/floci.

Source

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

    }

    private List<ResourceDescription> users() {
        List<ResourceDescription> resources = new ArrayList<>();
        for (IamUser user : iamService.listUsers("/")) {
            ObjectNode properties = mapper.createObjectNode();
            properties.put("Arn", user.getArn());
            properties.put("UserName", user.getUserName());
            properties.put("Path", user.getPath());
            resources.add(new ResourceDescription(user.getUserName(), propertiesString(properties)));
        }
        return resources;
    }

    private String propertiesString(ObjectNode properties) {
        try {
            return mapper.writeValueAsString(properties);
        } catch (JsonProcessingException e) {
            throw new AwsException("InternalFailure",
                    "Failed to serialize CloudControl resource properties.", 500);
        }
    }

    private void addTags(ObjectNode properties, List<Tag> tags) {
        if (tags == null || tags.isEmpty()) {
            return;
        }
        List<Tag> validTags = tags.stream()
                .filter(tag -> tag != null && tag.getKey() != null && !tag.getKey().isBlank())
                .toList();
        if (validTags.isEmpty()) {
            return;
        }
        var tagArray = properties.putArray("Tags");
        for (Tag tag : validTags) {
            tagArray.addObject()
                    .put("Key", tag.getKey())

View on GitHub (pinned to 62ff490619)

Solutions

  1. Ensure the resource properties are JSON-serializable; check the server log for the underlying Jackson error.

When it happens

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

Common situations: Occurs when resource properties contain values that cannot be serialized to JSON. Ensure the desired state is valid JSON-serializable data.


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