Is it a Bug?


#1

Good morning,
could you tell me why this API call

https://api.twitter.com/1.1/statuses/user_timeline.json?max_id=1019444030&screen_name=OlivettiOnline&user_id=209104350

back me this apparently wrong tweet (see below) where don’t appear screen_name (OlivettiOnline) and user_id(209104350) passed?

"created_at": "Sun Nov 23 14:45:19 +0000 2008",
"id": 1019444030,
"id_str": "1019444030",
"text": "is in Kiruna, Sweden drinking at a bar that is actually closed.",
"source": "<a href="http://twitter.com" rel="nofollow">Twitter Web Client</a>",
"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": 15282544,
  "id_str": "15282544",
  "name": "psychorocker",
  "screen_name": "psychorocker",
  "location": "",
  "description": "Beer, Buck Rogers, Bikes and Boobs",
  "url": null,
  "entities": {
  },
  "protected": false,
  "followers_count": 17,
  "friends_count": 156,
  "listed_count": 0,
  "created_at": "Mon Jun 30 21:44:37 +0000 2008",
  "favourites_count": 0,
  "utc_offset": 0,
  "time_zone": "Europe/London",
  "geo_enabled": false,
  "verified": false,
  "statuses_count": 259,
  "lang": "en",
  "contributors_enabled": false,
  "is_translator": false,
  "is_translation_enabled": false,
  "profile_background_color": "1A1B1F",
  "profile_background_image_url": "http://abs.twimg.com/images/themes/theme9/bg.gif",
  "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme9/bg.gif",
  "profile_background_tile": false,
  "profile_image_url": "http://pbs.twimg.com/profile_images/501018364119355392/vfx1bt2__normal.jpeg",
  "profile_image_url_https": "https://pbs.twimg.com/profile_images/501018364119355392/vfx1bt2__normal.jpeg",
  "profile_link_color": "2FC2EF",
  "profile_sidebar_border_color": "181A1E",
  "profile_sidebar_fill_color": "252429",
  "profile_text_color": "666666",
  "profile_use_background_image": true,
  "has_extended_profile": false,
  "default_profile": false,
  "default_profile_image": false,
  "following": false,
  "follow_request_sent": false,
  "notifications": false
},
"geo": null,
"coordinates": null,
"place": null,
"contributors": null,
"is_quote_status": false,
"retweet_count": 0,
"favorite_count": 0,
"entities": {
  "hashtags": [],
  "symbols": [],
  "user_mentions": [],
  "urls": []
},
"favorited": false,
"retweeted": false,
"lang": "en"

Is it a bug or is it correct?

Thank you.

Regards.


#2

It looks like that’s bringing back a specific Tweet ID, which is a bit strange. You certainly should not be passing both screen_name and user_id at the same time anyway (those are either/or parameters). What are you trying to achieve here?


#3

Hi, I try to achieve the olivettionline’s user timeline: https://twitter.com/olivettionline

However I checked that passing only screen name (or only user_id) I get the same wrong tweet :frowning:

So there may be a bug?

Thank you.

Regards.


#4

I’ve just tried:

twurl "/1.1/statuses/user_timeline.json?user_id=209104350"
twurl "/1.1/statuses/user_timeline.json?screen_name=OlivettiOnline"

Tweet ID 1019444030 is not returned in either of those response sets.


#5

I’m sorry.

I just tried these 2 calls but the tweet keeps coming back :frowning: [see screenshot below]

/1.1/statuses/user_timeline.json?max_id=1019444030&screen_name=OlivettiOnline
/1.1/statuses/user_timeline.json?max_id=1019444030&user_id=209104350

What will they return these two calls? No tweets?

What am I doing wrong?

Thank you.

Regards.


#6

Why are you including that max_id value? I’m confused, how is it relevant to this user’s timeline?


#7

Hi, I entered the max_id value because this "wrong " tweet is the last of the returned tweets.

Thank You

Regards


#8

I’m totally unable to reproduce this behaviour i.e. just including the screen_name OR user_id, I just get back what appears to be a valid timeline containing Tweets from that account. I do not see that additional Tweet ID 1019444030 included in the JSON output from that call, if I never specify it in the URL parameters. I’ve tried this using twurl, and using the API console.


#9

:frowning:

thanks


#10

Can you post a code snippet that returns this Tweet in the timeline?


#11


#12

To clarify, I was asking if you can provide source code demonstrating this issue rather than just using the Apigee console. Can you confirm that if you omit the max_id parameter and retrieve that user’s timeline from code, that Tweet is being returned? I cannot reproduce this using twurl or my own code.


#13

Hi,sorry if I answer only now but Twitter has been down so far :frowning:

I use the twython lib python (v. 3.0.0)

url => https://api.twitter.com/1.1/statuses/user_timeline.json
method => GET
params => {‘include_rts’: ‘true’, ‘screen_name’: ‘OlivettiOnline’,‘page’:2245,count:1}
url => /1.1/statuses/user_timeline.json?include_rts=true&screen_name=OlivettiOnline&page=2245&count=1

xml response:

python prova.py | xmllint --format -

<?xml version="1.0" encoding="UTF-8"?>

  
    
    false
    is in Kiruna, Sweden drinking at a bar that is actually closed.
    false
    
    1019444030
    0
    <a href="http://twitter.com" rel="nofollow">Twitter Web Client</a>
    false
    
    
      
      
      
      
    
    
    1019444030
    0
    
    false
    
      false
      false
      true
      false
      15282544
      https://abs.twimg.com/images/themes/theme9/bg.gif
      false
      666666
      https://pbs.twimg.com/profile_images/501018364119355392/vfx1bt2__normal.jpeg
      252429
      
        
          
        
      
      16
      181A1E
      15282544
      1A1B1F
      0
      false
      0
      259
      Beer, Buck Rogers, Bikes and Boobs
      156
      
      2FC2EF
      http://pbs.twimg.com/profile_images/501018364119355392/vfx1bt2__normal.jpeg
      false
      false
      http://abs.twimg.com/images/themes/theme9/bg.gif
      psychorocker
      en
      false
      0
      psychorocker
      false
      
      Mon Jun 30 21:44:37 +0000 2008
      false
      Europe/London
      false
      false
      false
    
    
    
    en
    Sun Nov 23 14:45:19 +0000 2008
    
    
  


Thank you in advance

regards


#14

Hi, now the call that returns the wrong tweet is this one (has changed):

url => https://api.twitter.com/1.1/statuses/user_timeline.json
method => GET
params => {‘include_rts’: ‘true’, ‘screen_name’: ‘OlivettiOnline’,‘page’:2249,count:1}
url => /1.1/statuses/user_timeline.json?include_rts=true&screen_name=OlivettiOnline&page=2249&count=1

regards


#15

OK so the difference seems to be that if you call the endpoint with include_rts=true that Tweet shows up, but with include_rts=false it does not.

My speculation here is that the Tweet was retweeted by that account at some point. The data in the Tweet object is a little unclear here, since it doesn’t appear to show that it was retweeted, but this could be a result of perspectival attributes and not being authenticated as the retweeting user (though this still looks odd).


#16

… and then (“though this still looks odd”) there may be a bug? :frowning:


#17

I’m not sure, and may not be able to confirm, but it is not what I’d expect. There could be a case that the Tweet was retweeted at some stage. With an older object like this it isn’t clear to me whether other factors would affect it showing up in the timeline.


#18

ok, thanks a lot!

regards