Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON deserialization issue - GetUserListRequest #39

Open
ketankhairnar opened this issue Nov 25, 2024 · 2 comments
Open

JSON deserialization issue - GetUserListRequest #39

ketankhairnar opened this issue Nov 25, 2024 · 2 comments

Comments

@ketankhairnar
Copy link

Found below issue. I don't face this in test/dev account mode but for production mode got below error

{"status":"verified","strategy":"email_link","attempts":null,"expire_at":1732306236469,"verified_at_client":"client_2pDfR0SQidIsER1uGQCRIWoS0us"}
 at [Source: (String)"[{"id":"user_2pKgYMbShe10E6mugxm58Xpwweb919","object":"user","username":null,"first_name":"A","last_name":"B","image_url":"https://img.clerk.com/redacted","has_image":true,"primary_email_address_id":"idn_2pKgXbUoltoCONzphUNQAbqimCv","primary_phone_number_id":null,"primary_web3_wallet_id":null,"password_enabled":false,"two_factor_enabled":false,"totp_enabled":false,"ba"[truncated 20678 chars]; line: 1, column: 18307] (through reference chain: java.util.ArrayList[8]->com.clerk.backend_api.models.components.User["email_addresses"]->java.util.ArrayList[0]->com.clerk.backend_api.models.components.EmailAddress["verification"])
	at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:297)
	at com.clerk.backend_api.utils.OneOfDeserializer.deserializeOneOf(OneOfDeserializer.java:110)
	at com.clerk.backend_api.utils.OneOfDeserializer.deserializeOneOf(OneOfDeserializer.java:74)
	at com.clerk.backend_api.utils.OneOfDeserializer.deserialize(OneOfDeserializer.java:65)
	at com.fasterxml.jackson.databind.deser.std.ReferenceTypeDeserializer.deserialize(ReferenceTypeDeserializer.java:204)
	at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:545)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeWithErrorWrapping(BeanDeserializer.java:570)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeUsingPropertyBased(BeanDeserializer.java:439)
	at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1409)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:352)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:185)
	at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer._deserializeFromArray(CollectionDeserializer.java:359)
	at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:244)
	at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:28)
	at com.fasterxml.jackson.databind.deser.std.ReferenceTypeDeserializer.deserialize(ReferenceTypeDeserializer.java:204)
	at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:545)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeWithErrorWrapping(BeanDeserializer.java:570)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeUsingPropertyBased(BeanDeserializer.java:439)
	at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1409)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:352)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:185)
	at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer._deserializeFromArray(CollectionDeserializer.java:359)
	at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:244)
	at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:28)
	at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:323)
	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4825)
	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3772)
	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3755)
	at com.clerk.backend_api.Users.list(Users.java:253)
	at com.clerk.backend_api.models.operations.GetUserListRequestBuilder.call(GetUserListRequestBuilder.java:26)```
@simplesagar
Copy link
Contributor

Hi @ketankhairnar we'll take a look !

@speakeasybot
Copy link
Collaborator

Hi @ketankhairnar this should have been addressed in a subsequent release. Have you tried v1.5.0 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants