Skip to content

UnrecognizedPropertyException: Unrecognized field "invitationUrl" #17

@khongi

Description

@khongi

On version 0.1.11 it's not possible to access the OrganizationInvitationsResource because it looks like InvitationRepresentation is missing a property called invitationUrl.

Stack trace:

jakarta.ws.rs.client.ResponseProcessingException: jakarta.ws.rs.ProcessingException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "invitationUrl" (class io.phasetwo.client.openapi.model.InvitationRepresentation), not marked as ignorable (7 known properties: "inviterId", "attributes", "id", "email", "roles", "organizationId", "createdAt"])
 at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 206] (through reference chain: java.util.ArrayList[0]->io.phasetwo.client.openapi.model.InvitationRepresentation["invitationUrl"])

	at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.extractResult(ClientInvocation.java:190)
	at org.jboss.resteasy.client.jaxrs.internal.proxy.extractors.BodyEntityExtractor.extractEntity(BodyEntityExtractor.java:59)
	at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.invokeSync(ClientInvoker.java:136)
	at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.invoke(ClientInvoker.java:103)
	at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientProxy.invoke(ClientProxy.java:61)
	at jdk.proxy2/jdk.proxy2.$Proxy464.getOrganizationInvitations(Unknown Source)
	at io.phasetwo.client.OrganizationInvitationsResource.get(OrganizationInvitationsResource.java:32)
	at io.phasetwo.client.OrganizationInvitationsResource.get(OrganizationInvitationsResource.java:28)

Relevant code part that caused the exception:

OrganizationsResource orgs = phaseTwoClient.organizations(realm);
OrganizationResource org = orgs.organization(orgUuid);
List<InvitationRepresentation> invitations = org.invitations().get(); // Exception thrown here
List<String> invitedEmails = invitations.stream().map(InvitationRepresentation).toList();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions