-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node seems to squash two msgs together if queried too frequently #13
Comments
As a workaround, you can use the built in delay node to generate a rate limit with lets say 1 message per second |
This has taken hours to diagnose for me! This node is certainly merging messages together, overwriting other properties of the message with the last one. I'm going to guess there needs to be some kind of message buffer / queue that stores incoming messages whilst waiting for responses? |
this node mess up http request & reply pair. :( |
this doesn't work if graphql takes more than 1 sec per msg. |
ANS1: you can split multiple messages and call parallel graphql ,then merge into array output as long as each graphql can handle one message properly |
I was having this issue so I created a pull request. Basically I deep cloned the msg instead of referencing it. There was another issue with some non initialized object. Hope this pull request helps! |
I am using this node along with the node-red-node-email module. I have found that when I query the graphql endpoint too frequently (ie two requests one after another), the graphql node returns two msgs, one for each query, but the
_msgid
and all the other properties apart frompayload
are identical to the second query message object.Anticipated behavior: Two distinct message objects should be returned.
Actual behavior: Two identical message objects are returned, with only the contents of the payload different.
Minimal steps to replicate behavior: Pass two Message objects containing query parameters one right after another, ensure that the two Message objects have fields with distinct values. Observe that the two returned messages will be identical to one of the Message objects passed in.
The text was updated successfully, but these errors were encountered: