Hi Twitter,

Whenever I am trying to access twitter from the bitbucket pipeline then I am getting “Too many requests”.

Is this something bitbucket IP’s are blocked by twitter. Please suggest.

2 Likes

curl https://twitter.com

This won’t call the API, this will just try to load the webpage - i’m not sure why you’d want to call that in a build? Out of curiosity what are you trying to do on bitbucket with twitter?

2 Likes

Hi IgorBrigadir,

To add more information to my query, I am QA. As a test assignment, I had to write automation tests for any social media like Facebook, twitter. I choose to write for twitter only 2 test cases like create a tweet and delete a tweet.

I wrote the test and works fine locally on docker but when I run through bitbucket I see its blocked.

My intension is not to overload your system.

Please suggest.

1 Like

I would suggest something like twurl for making arbitrary calls, but i would not suggest making test cases out of tweeting and deleting tweets - these are write operations that have rate limits and other anti spam restrictions so they are bad examples to use - they may fail silently or for no reason of your own, it would be better to use something like retrieving an account info like https://twitter.com/Overflow64 this test account using GET users/show | Docs | Twitter Developer Platform - But also remember that calls to the API require authentication, and have rate limits, so your build server would have to account for that too.

Also, if running tests locally works but fails on bitbucket or another server the issue is nearly always the environment and configs - you would need to provide the build server with the same authentication for it to work.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.