I am having a strange issue, if I make a request to the user by username lookup , the response is giving me the wrong account if there is an account by the same name which starts with an underscore.

E.g. a request for ‘AGT’ is returning the account _A_G_T, and a request for ConnieTalbot is returning the account _Connie_Talbot

Is anyone else seeing this?!

1 Like

Either I am doing something very funky in my code or this is a HUGE issue…

That’s very strange - what library / language are you working with? Do you have a code sample? Is there any URL encoding of parameters happening?

Testing with twurl i can’t reproduce this:

twurl "/2/users/by/username/ConnieTalbot"

{ 
  "data": {
    "id": "116024420",
    "name": "Connie.",
    "username": "ConnieTalbot"
  }
}

twurl "/2/users/by/username/_Connie_Talbot"

{
  "data": {
    "id": "245404457",
    "name": "Connie Talbot",
    "username": "_Connie_Talbot"
  }
}

This is very odd. I am in PHP. If I make the request with a pure Guzzle GET request it works fine.

If I use codebird, it does the funky behavior above. It must be an API issue, because there’s no way it should be providing me these random accounts!

Will keep digging.

Wow, it was a weird codebird issue. Crisis averted.

3 Likes

Cool, did you report this to Codebird maintainers? Thanks for sharing the resolution!

1 Like