Code node doesn't return any item (in console is showing)

Describe the issue/error/question

I created currency caculator.
The result should be the output of currencies and their values. But after everything was ready in the console I get a perfect result, but there is no data in the output. I can not understand what the problem is. In the past, similar scripts output all the information.
Please help me understand what’s wrong or the solution

What is the error message (if any)?

ERROR: Code doesn’t return items properly
Please return an array of objects, one for each item you would like to output

Please share the workflow

Share the output returned by the last node

Information on your n8n setup

  • **n8n version:Latest
  • **Database you’re using (default: SQLite):Default
  • **Running n8n with the execution process [own(default), main]:main
  • **Running n8n via [Docker, npm,, desktop app]:Docker

Could that be the same reason as kn my question a few hours earlier?


3rd version - not showing :smiling_face_with_tear:

Try this… Your return is returning from the function you have but the node was still returning nothing so we tell it to return the result of the function instead and problem solved :slight_smile:

1 Like

:trophy::star_struck: I never would have guessed to return result; twice

Thank you @Jon

1 Like

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