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

MismatchedInputException when getting form data using the envelopes API #194

Closed
tylerbarker-toast opened this issue May 27, 2021 · 2 comments

Comments

@tylerbarker-toast
Copy link

Whenever I make a call to get the form data of an envelope envelopesApi.getFormData(accountId, envelopeId), I get the following exception:

! com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `java.util.ArrayList<com.docusign.esign.model.FormDataItem>` from Object value (token `JsonToken.START_OBJECT`)
!  at [Source: (org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream); line: 1, column: 1815] (through reference chain: com.docusign.esign.model.EnvelopeFormData["prefillFormData"])
! at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)

I am able to log into Docusign and download the form data manually, but I need to be able to do this via the API.

@mmallis87
Copy link
Contributor

@tylerbarker-toast the fix was just release please update to 3.13.1-RC1. Feel free to reopen if the problem persists.

Please refer to this test case for a working example: https://github.com/docusign/docusign-esign-java-client/blob/master/src/test/java/SdkUnitTests.java#L1670

@mmallis87
Copy link
Contributor

Those who use SDK version 2 can upgrade to 2.21.1-RC1 if they're not ready to make the move to version 3.

This was referenced Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants