Credential Store for API now giving ERROR: No path back to node when using expression

Describe the problem/error/question

I have a set of APIs I need to call that require a Bearer token. I have several workflows that work fine using the following pattern. Call Authentication endpoint which returens a Token. Do an Edit Fields node and build a variable called btoken and set it to “Bearer {{ $json.Token }}” then add ${{ $json.btoken }} to the credential store as an expression. About 1 month ago I can no longer get the credential store to render the Bearer token. Existing workflows setup like this still work, but if I clone them or edit them, I get the error.

What is the error message (if any)?

I get the message ERROR: No path back to node

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

The “no path back to node” is expected while saving the credentials. This will only work when you execute the workflow.

Make sure the variable is arriving at the node previous to the HTTP request and that you’re using the exact same name for the fields in the expressions.

1 Like

Thank you Solomon. I had done that before and it kept failing on the last step. I went set it up cleanly again and it worked. Not sure why it was failing before. I guess the path to node thing fooled me.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.