I have done some searching and I gather that the issue may be down to a new line character that is being handled different locally vs on heroku but I am not sure where or how to deal with that.
I have a pretty basic app that needs to base64 encode a string.
The code is pretty basic node code
let buff = new Buffer(cics);
let base64data = buff.toString('base64');
Here are the results, they are similar, only different by the "YQ=="
Local
MzQ0YzAxOWMtMWZhMC00ODU0LTlhMjMtOWNiNmYzYTdmMzNkOjlhZThhMWUwLTg2OWItNDg2Yi1iNzFkLWRkMGM1NGQ3NWFhYQ==
Heroku
MzQ0YzAxOWMtMWZhMC00ODU0LTlhMjMtOWNiNmYzYTdmMzNkOjlhZThhMWUwLTg2OWItNDg2Yi1iNzFkLWRkMGM1NGQ3NWFh
Anyone know what could be going on here?