ICEMortgageTechnology / developerconnect-dotnet-bindings

43 stars 27 forks source link

Error calling GetLoan #2

Open tlambert opened 6 years ago

tlambert commented 6 years ago

I keep getting this error (different positions) on every loan {"Unexpected character encountered while parsing value: 1. Path 'applications[0].assets[18].vodIndex', line 1, position 2746."}

        var credentials = new UserCredential
        {
            IdentityType = IdentityType.Lender,
            InstanceId = "BExxxxx",
            Password = "xxxxx",
            UserName = "xxxxx"
        };
        var accessToken = AccessToken.GetAccessToken(credentials);
        var loanApiClient = ApiClientProvider.GetApiClient<LoansApi>(accessToken);
        var loan = loanApiClient.GetLoan(LoanGUID);
aparnasm commented 6 years ago

Hi tlambert, Looks like this is an instance specific issue. Are you able to retrieve the loans through API Call on POSTMAN? Please make use of the Developer Connect forum to discuss this with other developers.

Thanks, Aparna Encompass Developer Connect Team Ellie Mae

tlambert commented 6 years ago

I can retrieve the JSON file on every loan I try. It just fails using the new Elli.API package

bmarons2 commented 6 years ago

I am getting the same problem POSTMAN works fine and the API package fails.

TylerBrinkley commented 6 years ago

The error is due to the VodIndex property being specified as a byte[] instead of an int? like how EncompassRest specifies it.

Ellie-cpawar commented 6 years ago

@tlambert This issue fixed in latest package. Could you please verify?