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

Some getUserProfile failing #300

Open
sleep9 opened this issue Aug 9, 2023 · 0 comments
Open

Some getUserProfile failing #300

sleep9 opened this issue Aug 9, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@sleep9
Copy link

sleep9 commented Aug 9, 2023

`
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.

@junhoyeo junhoyeo added the bug Something isn't working label Aug 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants