keybase / keybase-issues

A single repo for managing publicly recognized issues with the keybase client, installer, and website.
902 stars 36 forks source link

user lookup api returns bad list value instead of null #4251

Open mustaffa opened 2 months ago

mustaffa commented 2 months ago

Hello, When I call the user lookup API, some keybase user accounts cause api to return an error like below, instead of Null.

status
code 100 desc "bad list value" fields
usernames "bad list value" name "INPUT_ERROR"

A sample api call URL returning error is like this: https://keybase.io/_/api/1.0/user/lookup.json?usernames=keybase_neverbackdown&fields=pictures,basics,proofs_summary

Some other usernames causing same error are acc0unt1 and nokeybaseusername.

As per your api documentation if a user is not found it should return Null without an error, like this one: https://keybase.io/_/api/1.0/user/lookup.json?usernames=aasdads1231aas&fields=pictures,basics,proofs_summary