on ‎2023 May 19 12:39 PM
Getting the below error while making an HTTP outbound connection from CPI.
The same request for the HTTP call is working fine with Postman without any issues.
Error Details
java.lang.IllegalArgumentException: only ' ' and '\t' are allowed after '\n': <?xml version="1.0" encoding="UTF-8"?>
Also, I did check 3234004 - Encrypted message sent from Cloud Integration via HTTP adapter fails with Error, but it didn't helped either.
Request clarification before answering.
Hi Vijay,
I did check that and there was no blank line as such. Even I tried manually creating the payload request to cross-check if additional spaces/blanks are coming via mapping, which also failed with the same error.
The same request works from the postman (manually created one and the one from iFlow).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You have newline character in your test XML before XML declaration. Remove that/blank line from XML and you should be good.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.