So I use pub.string:bytesToString with the mapping already set, but it appears the flow can’t decode/translate properly that it returns the string as rectangle character, as seen as the image below
Is it because of the “[” and “]” characters that cause this problem? or anything else?
I really need help to solve this problem cause I have tried to set the encoding to “utf-8”, “ASCII”, “iso-8859-1” but none of them are working, am I missing something?
Can you provide a complete copy of your service ?
Also where are you getting the bytes from ?
regards
John Carter
Product Manager @ Software AG
Integration & Microservices runtime
Make sure that you set the input “loadAs” to bytes.
Also you should check the header/status to check that the call is working properly and returning a proper response.
John.
Can you set a header in your http headers to “Accept” and set the value as “application/json”.
If you make the http call from an client app such as postman does it work ?
Yes add “Accept” as that determines the expected format for the response.
Postman might be setting the header automatically. I would also look very closely at the request including the headers generated by postman and ensure it matches your setup.
Sanitizing just means removing any sensitive info from the output, which you have done.
Anyhow, the returned JSON is invalid, so perhaps that’s the reason -
Ah yes @Venkata_Kasi_Viswanath_Mugada1 , thanks for the correction I believe I accidentally delete the “}” after value field. It should be there in the expected output
I’m unable to replicate your issue at my side; cannot do this without looking at your code.
Can you provide a complete copy of your service, with just the user/password removed?