swipe
swipe12mo ago

Get Authorization Header Node has incorrect output type

The node is set up to output "string" but the code clearly outputs an object: export default function getAuthorizationHeader({ req }) { return { headerValue: req.headers["authorization"] }; } Not totally sure why it doesn't just output the string...
3 Replies
Gaurav Chadha
Gaurav Chadha12mo ago
@swipe, Because the output type is Object. You'll require to change it to String and update label/description. It will update node preview and give output in String.
No description
Gaurav Chadha
Gaurav Chadha12mo ago
Currently there is a bug we are working on type update, after you update the type, you'll require to change the label or description to make it work.
swipe
swipeOP12mo ago
I know, that's what I'm saying - the vanilla node is configured incorrectly. It should either have the output type set to object, or the code should return a string (which would make sense). As coded, it's a broken node.