SabreFoxx
SabreFoxx11mo ago

Unable to retrieve any header values

Here is the node logic attached to this post. I had this node created by the AI with simple instructions to retrieve the value of the specified custom header. But no matter what I do it keeps coming back as undefined. I've also included an image of my headers in Postman.
No description
No description
3 Replies
Gaurav Chadha
Gaurav Chadha11mo ago
Hi @SabreFoxx, you can achieve this without this node too. Just extract the value of headers in the Return node.
No description
SabreFoxx
SabreFoxx11mo ago
Won't the API end if I use a return node? How do I use the header values once I extract it with a return node before returning the result to the user?
Gaurav Chadha
Gaurav Chadha11mo ago
Try this workflow, the AI generated node is not required in this case, we just need to extract the header or any value we requried. I used a simple empty node --> returned the header value in it and and converted it to uppercase in the next node.