Site streams control_uri set on tweet objects?

api
sitestreams

#1

Background: My site streams connections receive control messages with a control_uri I can use to chunk upload users. That works fine.

Today I received an invalid JSON object over the wire that contained an embedded control_uri several levels down - but I never received a matching “control” message with that uri. This means that the current control_uri my script has is invalid.

Am I supposed to scan tweets looking for changes or shouldn’t I have received a control message?

Here is the tweet object:

{"for_user":3165143917,"message":{"created_at":"Wed Feb 01 16:16:40 +0000 2017","id":826826609424470016,"id_str":"826826609424470016","text":"RT @Hemmozah: @KTNNews @MKapombe ni vyema kurithiwa maanake umemchukua kama mwana wako.","source":"\u003ca href=\"https:\/\/about.twitter.com\/products\/tweetdeck\" rel=\"nofollow\"\u003eTweetDeck\u003c\/a\u003e","truncated":false,"in_reply_to_status_id":null,"in_reply_to_status_id_str":null,"in_reply_to_user_id":null,"in_reply_to_user_id_str":null,"in_reply_to_screen_name":null,"user":{"id":2752080493,"id_str":"2752080493","name":"KTN News","screen_name":"KTNNews","location":"Nairobi, Kenya","url":"http:\/\/ktnnews.com","description":"KTN News is a 24-hour news,current affairs channel with content in sports,documentaries & investigative features.Has regional reach on Dstv- 274,GoTv-94,Zuku-14","protected":false,"verified":true,"followers_count":163015,"friends_count":41,"listed_count":202,"favourites_count":4,"statuses_count":152259,"created_at":"Thu Aug 21 12:41:10 +0000 2014","utc_offset":-28800,"time_zone":"Pacific Time (US & Canada)","geo_enabled":true,"lang":"en","contributors_enabled":false,"is_translator":false,"profile_background_color":"000000","profile_background_image_url":"http:\/\/abs.twimg.com\/images\/themes\/theme1\/bg.png","profile_background_image_url_https":"https:\/\/abs.twimg.com\/images\/themes\/theme1\/bg.png","profile_background_tile":false,"profile_link_color":"91D2FA","profile_sidebar_border_color":"000000","profile_sidebar_fill_color":"000000","profile_text_color":"000000","profile_use_background_image":false,"profile_image_url":"http:\/\/pbs.twimg.com\/profile_images\/619473730792783873\/AzsMLMwm_normal.png","profile_image_url_https":"https:\/\/pbs.twimg.com\/profile_images\/619473730792783873\/AzsMLMwm_normal.png","profile_banner_url":"https:\/\/pbs.twimg.com\/profile_banners\/2752080493\/1477059895","default_profile":false,"default_profile_image":false,"following":null,"follow_request_sent":null,"notifications":null},"geo":null,"coordinates":null,"place":null,"contributors":null,"retweeted_status":{"created_at":"Wed Feb 01 16:09:18 +0000 2017","id":826824758608146432,"id_str":"826824758608146432","text":"@KTNNews @MKapombe ni vyema kurithiwa maanake umemchukua kama mwana wako.","display_text_range":[19,73],"source":"\u003ca href=\"http:\/\/twitter.com\/download\/android\" rel=\"nofollow\"\u003eTwitter for Android\u003c\/a\u003e","truncated":false,"in_reply_to_status_id":826800940720254976,"in_reply_to_status_id_str":"826800940720254976","in_reply_to_user_id":2752080493,"in_reply_to_user_id_str":"2752080493","in_reply_to_screen_name":"KTNNews","user":{"id":755537906,"id_str":"755537906","name":"Hempstone Abira","screen_name":"Hemmozah","location":"Nakuru, Kenya","url":"http:\/\/www.tala.co.ke","description":"Slightly tall,chocolate skin and brilliant guy.","protected":false,"verified":false,"followers_count":251,"friends_count":1388,"listed_count":{"control":{"control_uri":"/1.1/site/c/2_5199398437717143931_21737ba74b8eg44a225763498d79c475"}}

Note this message is missing four “}” at the end for some reason. Copy this and paste it into http://jsoneditoronline.org/ with “}}}}” added to the end.