Hello, I am new so please go gentle on me.
I am having trouble receiving a complete/working bearer token from a HTTP request. I can use a cURL command external to Node-RED and all is ok and receive a code 200 along with a working access_token(Bearer). However when I set it up in Node-RED the returned bearer (although I'm still getting a code 200) it appears to be truncated as I see a ..." at the end of the token. I attempt to use the token in the vendors swagger API and it fails. So I presume the token is truncated for some reason.
Here is my cleaned flow if helps:
[{"id":"78b25d40d6476ca8","type":"tab","label":"Flow 2","disabled":false,"info":"","env":[]},{"id":"0bcf9a6d922fb05d","type":"inject","z":"78b25d40d6476ca8","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":170,"y":160,"wires":[["c6cca0c8c475b9fa"]]},{"id":"c6cca0c8c475b9fa","type":"function","z":"78b25d40d6476ca8","name":"Build header and payload","func":"msg.headers = {}\nmsg.headers['Content-Type']='application/x-www-form-urlencoded';\n\nmsg.payload = {'grant_type':'password', \n 'client_id':'rapt-user',\n 'username':'myUserName',\n 'password':'myAPIpassword'\n };\n\nreturn msg;","outputs":1,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":[],"x":410,"y":160,"wires":[["e99a36dddcd7c9e2"]]},{"id":"e99a36dddcd7c9e2","type":"http request","z":"78b25d40d6476ca8","name":"https://id.rapt.io/connect/token","method":"POST","ret":"txt","paytoqs":"ignore","url":"https://id.rapt.io/connect/token","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[x],"x":720,"y":160,"wires":[["710200352bdbbe53"]]},{"id":"710200352bdbbe53","type":"debug","z":"78b25d40d6476ca8","name":"debug 36","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":950,"y":160,"wires":[]}]
Thanks for your help as I'm stumped.