Giter Club home page Giter Club logo

n8n-nodes-iterator's People

Contributors

bramkn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

n8n-nodes-iterator's Issues

Issue with the Reference Next iterator type

Hi @bramkn, It seems that the "Is there another page" option is being referenced on the first run. It looks to me like my workflow fails because the set node that contains the data after the first run is not executed.

CleanShot 2023-08-09 at 10 57 08@2x

Could it be the expression? My concern is that it could happen that the last set of items returned is exactly as much as would trigger the next run, so I check for an empty or undefined value.

Does not seem to loop

I'm trying to set this up to use with the HubSpot API, which uses an offset for paging. The initial request is passed through iterator to the looped request, but no subsequent requests pass and it exits after the first pass.

CleanShot 2023-04-15 at 12 58 05@2x

What am I missing here?

CleanShot 2023-04-15 at 12 59 56@2x

CleanShot 2023-04-15 at 13 00 54@2x

CleanShot 2023-04-15 at 13 02 13@2x

Option to set if there is a next page doesn't work as intended

Because the value is checked from the first iteration it results in unwanted behavior.
You cannot simply check the next page if it exists, as it will not exists for the first iteration.
You can work around this with a set node for example, but that's a hassle.
will be fixed some day.

Iterator send empty link in HTTPS module, when the next page does not exist

Iterator sends empty next page to the HTTP module when the next page does not exist and we get an error that the link does not exist and the HTTPS model cannot handle the request.
Image 2931

Result contains 2 pages, The script gets stuck when the iterator keeps sending an empty value to the HTTP module instead of checking if it exists or not (and sending the results to Done).
Image 2933

Iterator parameters
Image 2934

2nd page (Iterated)
Image 2935

Parameters
Iterator Module - Reference Start: https://xxx/api/v4/events?filter[created_at][from]=1666795337&filter[created_at][to]=1666795338&limit=100
Iterator Module - Reference Next (Taken from a HTTP module): {{$node["HTTP Request"].json["_links"]["next"]["href"]}}
HTTP REQUEST MODULE - {{$node["Iterator"].context["currentReference"]}}

What should I do so that it collects all the values and sends them to Done, as is done in the example:
https://community.n8n.io/t/new-community-node-iterator/17741

Thanks for the help, I think we can get a very powerful tool by fine-tuning the module, I have 200,000 records and they are processed 100 at a time, such a method would make the task a lot easier.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.