adamsaghy commented on PR #5589:
URL: https://github.com/apache/fineract/pull/5589#issuecomment-4046884091
```
Test testApproveWorkingCapitalLoan() FAILED
org.apache.fineract.client.feign.util.CallFailedRuntimeException: HTTP
failed: status=400,
request=https://localhost:8443/fineract-provider/api/v1/working-capital-loans/1?command=approve,
errorBody={"defaultUserMessage":"The JSON syntax provided in the body of the
request is invalid: java.lang.IllegalStateException: Expected BEGIN_OBJECT but
was STRING at line 1 column 2 path $nSee
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure","parameterName":"id","developerMessage":"The
JSON syntax provided in the body of the request is invalid:
java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1
column 2 path $nSee
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure","userMessageGlobalisationCode":"error.msg.invalid.request.body","args":[]}
at
app//org.apache.fineract.integrationtests.WorkingCapitalLoanApprovalRejectionTest.testApproveWorkingCapitalLoan(WorkingCapitalLoanApprovalRejectionTest.java:77)
Caused by: org.apache.fineract.client.feign.FeignException: status 400
(The JSON syntax provided in the body of the request is invalid:
java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1
column 2 path $
See
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure)
at
app//org.apache.fineract.integrationtests.WorkingCapitalLoanApprovalRejectionTest.testApproveWorkingCapitalLoan(WorkingCapitalLoanApprovalRejectionTest.java:77)
Test testApproveWithoutExpectedDisbursementDateFails() PASSED
Test testRejectWorkingCapitalLoan() FAILED
org.apache.fineract.client.feign.util.CallFailedRuntimeException: HTTP
failed: status=400,
request=https://localhost:8443/fineract-provider/api/v1/working-capital-loans/3?command=reject,
errorBody={"defaultUserMessage":"The JSON syntax provided in the body of the
request is invalid: java.lang.IllegalStateException: Expected BEGIN_OBJECT but
was STRING at line 1 column 2 path $nSee
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure","parameterName":"id","developerMessage":"The
JSON syntax provided in the body of the request is invalid:
java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1
column 2 path $nSee
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure","userMessageGlobalisationCode":"error.msg.invalid.request.body","args":[]}
at
app//org.apache.fineract.integrationtests.WorkingCapitalLoanApprovalRejectionTest.testRejectWorkingCapitalLoan(WorkingCapitalLoanApprovalRejectionTest.java:123)
Caused by: org.apache.fineract.client.feign.FeignException: status 400
(The JSON syntax provided in the body of the request is invalid:
java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1
column 2 path $
See
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure)
at
app//org.apache.fineract.integrationtests.WorkingCapitalLoanApprovalRejectionTest.testRejectWorkingCapitalLoan(WorkingCapitalLoanApprovalRejectionTest.java:123)
Test testApproveWithAmountExceedingProposedPrincipalFails() PASSED
Test testApproveAndUndoByExternalId() FAILED
org.apache.fineract.client.feign.util.CallFailedRuntimeException: HTTP
failed: status=400,
request=https://localhost:8443/fineract-provider/api/v1/working-capital-loans/external-id/102531cf-4f5a-43c1-ab71-56b1724a805c?command=approve,
errorBody={"defaultUserMessage":"The JSON syntax provided in the body of the
request is invalid: java.lang.IllegalStateException: Expected BEGIN_OBJECT but
was STRING at line 1 column 2 path $nSee
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure","parameterName":"id","developerMessage":"The
JSON syntax provided in the body of the request is invalid:
java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1
column 2 path $nSee
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure","userMessageGlobalisationCode":"error.msg.invalid.request.body","args":[]}
at
app//org.apache.fineract.integrationtests.WorkingCapitalLoanApprovalRejectionTest.testApproveAndUndoByExternalId(WorkingCapitalLoanApprovalRejectionTest.java:382)
Caused by: org.apache.fineract.client.feign.FeignException: status 400
(The JSON syntax provided in the body of the request is invalid:
java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1
column 2 path $
See
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure)
at
app//org.apache.fineract.integrationtests.WorkingCapitalLoanApprovalRejectionTest.testApproveAndUndoByExternalId(WorkingCapitalLoanApprovalRejectionTest.java:382)
Test testRejectByExternalId() FAILED
org.apache.fineract.client.feign.util.CallFailedRuntimeException: HTTP
failed: status=400,
request=https://localhost:8443/fineract-provider/api/v1/working-capital-loans/external-id/2cdfec9c-1c96-4c51-b2c7-ed725aed3ced?command=reject,
errorBody={"defaultUserMessage":"The JSON syntax provided in the body of the
request is invalid: java.lang.IllegalStateException: Expected BEGIN_OBJECT but
was STRING at line 1 column 2 path $nSee
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure","parameterName":"id","developerMessage":"The
JSON syntax provided in the body of the request is invalid:
java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1
column 2 path $nSee
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure","userMessageGlobalisationCode":"error.msg.invalid.request.body","args":[]}
at
app//org.apache.fineract.integrationtests.WorkingCapitalLoanApprovalRejectionTest.testRejectByExternalId(WorkingCapitalLoanApprovalRejectionTest.java:409)
Caused by: org.apache.fineract.client.feign.FeignException: status 400
(The JSON syntax provided in the body of the request is invalid:
java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1
column 2 path $
See
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure)
at
app//org.apache.fineract.integrationtests.WorkingCapitalLoanApprovalRejectionTest.testRejectByExternalId(WorkingCapitalLoanApprovalRejectionTest.java:409)
Test testApproveWithPrincipalAndDiscountOverride() FAILED
org.apache.fineract.client.feign.util.CallFailedRuntimeException: HTTP
failed: status=400,
request=https://localhost:8443/fineract-provider/api/v1/working-capital-loans/7?command=approve,
errorBody={"defaultUserMessage":"The JSON syntax provided in the body of the
request is invalid: java.lang.IllegalStateException: Expected BEGIN_OBJECT but
was STRING at line 1 column 2 path $nSee
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure","parameterName":"id","developerMessage":"The
JSON syntax provided in the body of the request is invalid:
java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1
column 2 path $nSee
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure","userMessageGlobalisationCode":"error.msg.invalid.request.body","args":[]}
at
app//org.apache.fineract.integrationtests.WorkingCapitalLoanApprovalRejectionTest.testApproveWithPrincipalAndDiscountOverride(WorkingCapitalLoanApprovalRejectionTest.java:107)
Caused by: org.apache.fineract.client.feign.FeignException: status 400
(The JSON syntax provided in the body of the request is invalid:
java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1
column 2 path $
See
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure)
at
app//org.apache.fineract.integrationtests.WorkingCapitalLoanApprovalRejectionTest.testApproveWithPrincipalAndDiscountOverride(WorkingCapitalLoanApprovalRejectionTest.java:107)
Test testUndoApproval() FAILED
org.apache.fineract.client.feign.util.CallFailedRuntimeException: HTTP
failed: status=400,
request=https://localhost:8443/fineract-provider/api/v1/working-capital-loans/8?command=approve,
errorBody={"defaultUserMessage":"The JSON syntax provided in the body of the
request is invalid: java.lang.IllegalStateException: Expected BEGIN_OBJECT but
was STRING at line 1 column 2 path $nSee
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure","parameterName":"id","developerMessage":"The
JSON syntax provided in the body of the request is invalid:
java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1
column 2 path $nSee
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure","userMessageGlobalisationCode":"error.msg.invalid.request.body","args":[]}
at
app//org.apache.fineract.integrationtests.WorkingCapitalLoanApprovalRejectionTest.testUndoApproval(WorkingCapitalLoanApprovalRejectionTest.java:138)
Caused by: org.apache.fineract.client.feign.FeignException: status 400
(The JSON syntax provided in the body of the request is invalid:
java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1
column 2 path $
See
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure)
at
app//org.apache.fineract.integrationtests.WorkingCapitalLoanApprovalRejectionTest.testUndoApproval(WorkingCapitalLoanApprovalRejectionTest.java:138)
Test testApproveWithDiscountExceedingCreatedValueFails() PASSED
Test testUndoApprovalResetsToCreatedState() FAILED
org.apache.fineract.client.feign.util.CallFailedRuntimeException: HTTP
failed: status=400,
request=https://localhost:8443/fineract-provider/api/v1/working-capital-loans/10?command=approve,
errorBody={"defaultUserMessage":"The JSON syntax provided in the body of the
request is invalid: java.lang.IllegalStateException: Expected BEGIN_OBJECT but
was STRING at line 1 column 2 path $nSee
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure","parameterName":"id","developerMessage":"The
JSON syntax provided in the body of the request is invalid:
java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1
column 2 path $nSee
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure","userMessageGlobalisationCode":"error.msg.invalid.request.body","args":[]}
at
app//org.apache.fineract.integrationtests.WorkingCapitalLoanApprovalRejectionTest.testUndoApprovalResetsToCreatedState(WorkingCapitalLoanApprovalRejectionTest.java:166)
Caused by: org.apache.fineract.client.feign.FeignException: status 400
(The JSON syntax provided in the body of the request is invalid:
java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1
column 2 path $
See
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure)
at
app//org.apache.fineract.integrationtests.WorkingCapitalLoanApprovalRejectionTest.testUndoApprovalResetsToCreatedState(WorkingCapitalLoanApprovalRejectionTest.java:166)
Test testRejectWithoutRejectedOnDateFails() PASSED
Test testApproveWithoutApprovedOnDateFails() PASSED
Test testApproveAlreadyApprovedLoanFails() FAILED
org.apache.fineract.client.feign.util.CallFailedRuntimeException: HTTP
failed: status=400,
request=https://localhost:8443/fineract-provider/api/v1/working-capital-loans/13?command=approve,
errorBody={"defaultUserMessage":"The JSON syntax provided in the body of the
request is invalid: java.lang.IllegalStateException: Expected BEGIN_OBJECT but
was STRING at line 1 column 2 path $nSee
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure","parameterName":"id","developerMessage":"The
JSON syntax provided in the body of the request is invalid:
java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1
column 2 path $nSee
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure","userMessageGlobalisationCode":"error.msg.invalid.request.body","args":[]}
at
app//org.apache.fineract.integrationtests.WorkingCapitalLoanApprovalRejectionTest.testApproveAlreadyApprovedLoanFails(WorkingCapitalLoanApprovalRejectionTest.java:193)
Caused by: org.apache.fineract.client.feign.FeignException: status 400
(The JSON syntax provided in the body of the request is invalid:
java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1
column 2 path $
See
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure)
at
app//org.apache.fineract.integrationtests.WorkingCapitalLoanApprovalRejectionTest.testApproveAlreadyApprovedLoanFails(WorkingCapitalLoanApprovalRejectionTest.java:193)
Test testApproveWithDateBeforeSubmittedOnDateFails() PASSED
Test testApproveWithNegativeAmountFails() PASSED
Test testApproveWithFutureDateFails() PASSED
Test testUndoNonApprovedLoanFails() PASSED
Test testRejectApprovedLoanFails() FAILED
org.apache.fineract.client.feign.util.CallFailedRuntimeException: HTTP
failed: status=400,
request=https://localhost:8443/fineract-provider/api/v1/working-capital-loans/18?command=approve,
errorBody={"defaultUserMessage":"The JSON syntax provided in the body of the
request is invalid: java.lang.IllegalStateException: Expected BEGIN_OBJECT but
was STRING at line 1 column 2 path $nSee
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure","parameterName":"id","developerMessage":"The
JSON syntax provided in the body of the request is invalid:
java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1
column 2 path $nSee
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure","userMessageGlobalisationCode":"error.msg.invalid.request.body","args":[]}
at
app//org.apache.fineract.integrationtests.WorkingCapitalLoanApprovalRejectionTest.testRejectApprovedLoanFails(WorkingCapitalLoanApprovalRejectionTest.java:207)
Caused by: org.apache.fineract.client.feign.FeignException: status 400
(The JSON syntax provided in the body of the request is invalid:
java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1
column 2 path $
See
https://github.com/google/gson/blob/main/Troubleshooting.md#unexpected-json-structure)
at
app//org.apache.fineract.integrationtests.WorkingCapitalLoanApprovalRejectionTest.testRejectApprovedLoanFails(WorkingCapitalLoanApprovalRejectionTest.java:207)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]