ivolimasilva / public-instagram

Tool to fetch Instagram's public content.
GNU General Public License v3.0
43 stars 10 forks source link

Must provide valid query_id #9

Open nicshackle opened 6 years ago

nicshackle commented 6 years ago

When trying the following:

    try{
    console.log(await instagram.tags.recent("ig", 1));
    } catch(err){
        console.log(err);
    }

It fails with

{ message: 'Must provide valid query_id.', status: 'fail' }

Strangely enough this it works on my development environment but not on a remote server.

nicshackle commented 6 years ago

Still present after trying everything mentioned in #3

ivolimasilva commented 6 years ago

Does this also happens when searching for other hashtags? Your code also fails on me but it's because the Instagram's page for this hashtag doesn't work: here.

I know that the current errors given by this package aren't very helpful but I intend to improve this part in the near future.

nicshackle commented 6 years ago

Thanks for taking a look. I still get the same error when using different tags.

ivolimasilva commented 6 years ago

This problem might be related to this: link.

~However, since then Instagram has changed the web page so this package is not fully operational. I'll try to fix it tomorrow.~ This was not right, Instagram has stayed the same.

nicshackle commented 6 years ago

Any updates on this?

ivolimasilva commented 6 years ago

I believe this issue is related to https://github.com/GoogleChrome/puppeteer/issues/807. Since this issue was opened, I too had the same problem because I was running it on a CentOS machine.

After trying to solve the dependencies issue of Puppeteer, I gave up and swapped for a Ubuntu machine and it did run great after that.

What OS are you running on your remote server and what OS are you running locally?