Share all details related to your problem, including any error messages you may have received.
Hi Community,
We got a situation there is webservices connector which is working fine in lower environments but in production we are having below error on deploying the code to production.
Error: “Exception occurred in Test Connection. Error: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was NUMBER at line 1 column 2 path $”
Please extend your expertise in resolving the same.
If what you are saying is already isolated, then can you check if there is any difference of any specific character or some other configuration mismatch which is causing this failure. If possible, please validated the credential is correct after being imported.
The error message java.lang.IllegalStateException: Expected BEGIN_OBJECT but was NUMBER at line 1 column 2 path $ indicates that the JSON parser in your application expected to find a JSON object (which starts with a {) but instead found a number.
This discrepancy usually suggests that the response format from the web service in the production environment is different from what is expected.
Check the actual response returned by the web service in the production environment. Compare it with the response in lower environments to identify any discrepancies.
Use tools like curl, Postman, or your application logs to capture the exact response from the web service.