Twitter error response [403]: Tweet needs to be a bit shorter

Hey guys, is there an easy fix to this?

Error: Twitter error response [403]: Tweet needs to be a bit shorter.
    at Object.twitterApiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Twitter/GenericFunctions.js:30:19)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)

Is there a code I can add to the “Text” field to limit the characters?

I’m posting content from instagram (captured by RSS) and twitting it directly.

Thanks a lot!

Welcome to the community @EB_BR!

You can use any JavaScript function in n8n expression. So in this case using something like .slice(0, 280) would be the easiest.

Doing that an expression could look like this:

{{ $json["message"].slice(0, 280) }}
2 Likes