Update request.body in pre-request script

Before I wasn’t getting that error because my response body was a json containing the not-encrypted data,

then, in the pre-request script I was calling the request.data and encoding the body.

The problem there was that I couldn’t re assign the new encoded data to the body and the api was sending the not-encrypted data to the server.

The error there was coming from the server. Now the API looks not to be able to reach the server even if the request looks well formed.

I’ll do some more investigation…

Thanks!
M.