Hello n8n team,
in the integrations part (use-the-built-in-request-library) of your documentation, you say that this.helpers.httpRequest uses the npm package request-promise-native, while in the deprecation-of-the-previous-helper part,
The previous helper implementation using
this.helpers.request(options) used and exposed the
request-promise library. Now deprecated. To minimize incompatibility, n8n made a transparent conversion to another library called
Now im confused. Could you please clarify which package is used by httpRequest and which by request.
Is there a list of all this.helpers. ?
Thanks a lot for making us aware of that. It seems like the example code got updated but not the description underneath it. Will create an internal ticket so that it gets fixed.
this.helpers.request → The old one which should NOT be used
this.helpers.httpRequest → The new one would should be used
Generally should, however, probably none be used for 95% of the cases, and the declarative design documented here instead.
It is not just simpler and faster to create nodes that way, it also makes them easier maintainable and ensures additionally, that new n8n functionality and improvements are supported by nodes automatically.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.