Skip to content
This repository was archived by the owner on Sep 8, 2023. It is now read-only.
This repository was archived by the owner on Sep 8, 2023. It is now read-only.

Some getUserProfile failing #300

@sleep9

Description

@sleep9

`
const threadsAPI = new ThreadsAPI({verbose: true});

const userID = await threadsAPI.getUserIDfromUsername('lukebelmar');
if (!userID) {
    return;
}
console.log('userId_working: ', userID);
try{

    const user = await threadsAPI.getUserProfile(userID);
    console.log(JSON.stringify(user));

} catch(error) {
    console.log('error: ', error);
    
}

const userID_failing = await threadsAPI.getUserIDfromUsername('only_the_strong');

if (!userID_failing) {
    return;
}

console.log('userId_failing: ', userID_failing);

try{

    const user = await threadsAPI.getUserProfile(userID_failing);
    console.log(JSON.stringify(user));

} catch(error) {
    console.log('error: ', error);
    
}`

Why are some calls failing? Is instagram caching "popular" account profiles and rate-limiting "unpopular" users? Or am I missing something here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions