Skip to content

Registry integration fails indiscriminately with Unable to link the element with id 'abc' with the Registry #998

@arnoweiss

Description

@arnoweiss

Feature Request

There's a bunch of scenarios where a call failing to the registry integration is hard to debug. This includes instances where there's a pre-existing shell descriptor for an AAS [1] or the server returns a non-2xx response [2].

Affected code

[1]

private boolean shellExistsOnRegistry(String shellId, RegistryAndDiscoveryInterfaceApi registryApi) {
try {
registryApi.getAssetAdministrationShellDescriptorById(shellId);
return true;
} catch (ApiException e) {
return false;
}
}

[2]

private void registerAas(AssetAdministrationShellDescriptor descriptor) {
RegistryAndDiscoveryInterfaceApi registryApi = aasRepositoryRegistryLink.getRegistryApi();
try {
registryApi.postAssetAdministrationShellDescriptor(descriptor);
logger.info("Shell '{}' has been automatically linked with the Registry", descriptor.getId());
} catch (ApiException e) {
throw new RepositoryRegistryLinkException(descriptor.getId(), e);
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions