In order to connect to a certain API, I need to pass a login token that is base64Encode.
For some reason if I don’t do trim() the base64Encode I get is different.
Meaning there is some invisible character being added somewhere by n8n and I can’t figure this out.
The first is with trim()
The second row without
Look at the result - looks the same. right?
Wrong! to test this i set base64Encode. as you can see that they are different. Similar, but different.
Hi @shlomi
Thanks.
They are identical. So it is something that doesn’t like to be copy-pasted here.
n8n should not add anything and I have not seen it before, so it is probably the source of this data that is adding some characters.
Where are you getting this data from?
Ok, so the data that you are passing to this thing seems to get an unknown character somewhere. You will need to find out where and see if you can fix it.
But to be honest I wouldnt bother. as I use trim() a lot to be sure no spaces or similar are there, it doesn’t really matter.