Twitter crossposter
-
The Twitter node is not connected to anything as output, because it is the end of the process.
Are you saying it is not connected on input side when you import the workflow ? But I think it is because our screenshot some incoming values.The 5min function was was simply to filter out posts on Mastodon made >5 mins ago, so that the workflow did not attempt to post "old" posts to Twitter. My understanding is that Twitter would not detect a duplicate tweet (although it does detect duplicate RTs). So the function just takes Mastodon posts from <5 mins age. This is also related to the cron running the workflow every 5 mins.
Of course you can adjust these values or remove them, but you might get duplicate tweets.
Twitter should give an error if there is a problem, which you can see in the n8n step. Nothing showing there ?
-
@timconsidine No no the input is connected just fine, maybe it's just me I had not seen a workflow like this before and it feels weird that nothing goes published..not even sure where to look since I don't have any errors, all executions are success...
-
@timconsidine by the way, twitter does even more, it detect duplicates tweets also based on content, title + link, if the attempt is made to tweet an item that was already tweeted via the application, the twitter api return an "duplicate tweet" error (that's with my previous python based RSS to twitter experiment) when the duplicate tweet is detected, twitter simply reject the second attempt at tweeting the same thing twice.
I think I will have to increase the 5 min because, provided I don't have duplicates I don't mind going back 1h ago to tweet items, I was under the impression that maybe one of the reason it does not tweet the output is maybe because the time span is too short ?
-
@timconsidine I increased the time to 1800.000, so 30 minutes, but I don't see any difference, wondering what's happening
edit : I have 400+ json item that each part of the workflow can fetch, see, but nothing gets out... -
@timconsidine When I do so I get this error on the HTTP Request node when I execute the workflow :
The "url" argument must be of type string. Received undefined
{
"status": "rejected",
"reason": {
"code": "ERR_INVALID_ARG_TYPE",
"cause": {
"code": "ERR_INVALID_ARG_TYPE"
},
"error": {
"code": "ERR_INVALID_ARG_TYPE"
},
"options": {
}
}
}Actually I don't understand what this Node is doing, can't I send the data directly to twitter after the IF ?
-
@rmdes yes you can send to Twitter node after the IF node providing the tweet is text only. The HTTP node is used to capture any images in the Mastodon tweet and attach them (as binary data I think)
You may just need to "re-map" the HTTP node links from IF node, or re-map the links in the Twitter node to the HTTP output.
I usually step through each node from the start (using that node's run icon, not the whole workflow run icon), and in each subsequent node, check the Input parameters to select the incoming data and map to the node's parameters.
Then I do an end-to-end test.
My workflow provides the general schema, but I had problems on importing other workflows (different use cases). I just deleted each imported node one-by-one and recreated the mode manually, linking to the previous node as explained above.
-
@timconsidine Thanks & sorry for late reply, I managed to get it working, but I'm not happy with the result in my use case, in fact I'm not happy with N8, the main issue being missing key features to validate their "no code" approach, I think some key elements are missing that render any attempt to use n8 for automation-publishing a real P in the A..
- I tried dozens of implementations, taking on recipe from others to rebuild my own and after several months of testing, I see duplicates, n8 stuck in loop publishing over and over the same stuff, I may be doing something wrong but the moment you add complexity to the recipe, let's say : add some RSS feeds feeding the same output, the situation becomes a mess.
-
@timconsidine I'll try to simplify, isolate each feed in their own workflow then