Skip to content

Instantly share code, notes, and snippets.

@semifor
Created March 1, 2017 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save semifor/c521eb587699af94a4b68b9d60ff436e to your computer and use it in GitHub Desktop.
Save semifor/c521eb587699af94a4b68b9d60ff436e to your computer and use it in GitHub Desktop.
Twitter split brain problem: @fellythemozzer / @WhiteHouse relationship

tsa_b request/response: @fellythemozzer follows @WhiteHouse

GET https://api.twitter.com/1.1/friendships/show.json?source_screen_name=fellythemozzer&target_screen_name=WhiteHouse
Accept: application/json
Authorization: OAuth <elided>
User-Agent: Twitter-API/0.0109 (Perl)
Content-Type: application/json;charset=utf8
X-Twitter-Client: Twitter-API/0.0109 (Perl)
X-Twitter-Client-Url: https://github.com/semifor/Twitter-API
X-Twitter-Client-Version: 0.0109
200 OK
Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0
Date: Wed, 01 Mar 2017 17:47:34 GMT
Pragma: no-cache
Server: tsa_b
Content-Length: 544
Content-Type: application/json;charset=utf-8
Expires: Tue, 31 Mar 1981 05:00:00 GMT
Last-Modified: Wed, 01 Mar 2017 17:47:34 GMT
Content-Disposition: attachment; filename=json.json
Set-Cookie: lang=en; Path=/
Set-Cookie: guest_id=v1%3A148839045397966152; Domain=.twitter.com; Path=/; Expires=Fri, 01-Mar-2019 17:47:34 UTC
Status: 200 OK
Strict-Transport-Security: max-age=631138519
X-Access-Level: read-write
X-Connection-Hash: 5f1cfeaf9215ebda1b472237be9ec080
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Rate-Limit-Limit: 180
X-Rate-Limit-Remaining: 179
X-Rate-Limit-Reset: 1488391353
X-Response-Time: 88
X-Transaction: 002f4e0900d48bcd
X-Twitter-Response-Tags: BouncerCompliant
X-Xss-Protection: 1; mode=block

{"relationship":{"source":{"id":3808356915,"id_str":"3808356915","screen_name":"fellythemozzer","following":true,"followed_by":false,"live_following":false,"following_received":null,"following_requested":null,"notifications_enabled":null,"can_dm":false,"blocking":null,"blocked_by":null,"muting":null,"want_retweets":null,"all_replies":null,"marked_spam":null},"target":{"id":822215673812119553,"id_str":"822215673812119553","screen_name":"WhiteHouse","following":false,"followed_by":true,"following_received":null,"following_requested":null}}}

tsa_a request/response: @fellythemozzer does NOT follow @WhiteHouse

GET https://api.twitter.com/1.1/friendships/show.json?source_screen_name=fellythemozzer&target_screen_name=WhiteHouse
Accept: application/json
Authorization: OAuth <elided>
User-Agent: Twitter-API/0.0110 (Perl)
Content-Type: application/json;charset=utf8
X-Twitter-Client: Twitter-API/0.0110 (Perl)
X-Twitter-Client-Url: https://github.com/semifor/Twitter-API
X-Twitter-Client-Version: 0.0110
200 OK
Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0
Date: Wed, 01 Mar 2017 17:54:36 GMT
Pragma: no-cache
Server: tsa_a
Content-Length: 546
Content-Type: application/json;charset=utf-8
Expires: Tue, 31 Mar 1981 05:00:00 GMT
Last-Modified: Wed, 01 Mar 2017 17:54:36 GMT
Content-Disposition: attachment; filename=json.json
Set-Cookie: lang=en; Path=/
Set-Cookie: guest_id=v1%3A148839087670961087; Domain=.twitter.com; Path=/; Expires=Fri, 01-Mar-2019 17:54:36 UTC
Status: 200 OK
Strict-Transport-Security: max-age=631138519
X-Access-Level: read-write-directmessages
X-Connection-Hash: 879ce6b8f96bee0685f713a155081922
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Rate-Limit-Limit: 180
X-Rate-Limit-Remaining: 179
X-Rate-Limit-Reset: 1488391776
X-Response-Time: 39
X-Transaction: 00b7b2d200755028
X-Twitter-Response-Tags: BouncerCompliant
X-Xss-Protection: 1; mode=block

{"relationship":{"source":{"id":3808356915,"id_str":"3808356915","screen_name":"fellythemozzer","following":false,"followed_by":false,"live_following":false,"following_received":null,"following_requested":null,"notifications_enabled":null,"can_dm":false,"blocking":null,"blocked_by":null,"muting":null,"want_retweets":null,"all_replies":null,"marked_spam":null},"target":{"id":822215673812119553,"id_str":"822215673812119553","screen_name":"WhiteHouse","following":false,"followed_by":false,"following_received":null,"following_requested":null}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment