lookup(client, id) passes its unit test, but since it was deployed every call rejects with a TypeError, whether or not the user exists. In production, client is created by createClient in sdk_v2.js (the pinned v2 SDK, read-only). test_public.js uses a hand-written test double instead.
Fix lookup in lookup.js.