Getting error with status code 403

Hello team,

I am getting error with status code 403 while send message on twitter. kindly help me to figure out this issue.

@sumitrathi would you mind clicking the Share button at the top-right of your workflow and share it with dylan@pipedream.com?

Do you mind if I modify your workflow slightly and replay one of the recent events that failed? I’d like to modify the step to return a bit more debugging information.

Shared with you

Thank you very much. I modified the step but on replay, it failed with a different error unrelated to Twitter.

Would you mind triggering the workflow with an event you expect to work, and let me know when you have? You should see some debugging information below the step (the request / response data from axios).

Hi Dylan,
Still getting 403 error

Thanks. It looks like Twitter is rate limiting us, and we’re investigating. We’re tracking this here if you’d like to follow that for updates.

Thanks Dylan, I think this error is coming because twitter has the message limit of 269 characters only…

That might certainly be the case. To return the full response, without axios throwing an error, try this changing this line:

const resp = await axios.post(proxy, body)

to:

const resp = await axios.post(proxy, body, { validateStatus: () => true })

That should return the full response from our Twitter proxy, which should include the error response from Twitter.

Yes… getting error response from twitter “msg should be shorter”

Dylan, Thanks for helping me out

1 Like

Hi, I’m also getting 403 with twitter:

Is it because pipedream reached the rate limit?

Please use following code to get more trace
const resp = await axios.post(proxy, body, { validateStatus: () => true })
I was getting this error because twitter has limit to send 280 char message only.

Hope this will help.

Regards,
Sumit

Yes, I did what @dylburger sent. The last image I sent was with the error, as you can see bellow again:

As far as I know, I’m limiting the 280 char so I think that the error is another thing.

@esdevenimentscardedeu Would you mind clicking the Share button at the top-right of your workflow and share it with dylan@pipedream.com?