public-instagram icon indicating copy to clipboard operation
public-instagram copied to clipboard

Must provide valid query_id

Open nicshackle opened this issue 7 years ago • 6 comments

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 avatar Nov 03 '17 13:11 nicshackle

Still present after trying everything mentioned in #3

nicshackle avatar Nov 03 '17 13:11 nicshackle

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.

ivolimasilva avatar Nov 03 '17 16:11 ivolimasilva

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

nicshackle avatar Nov 04 '17 08:11 nicshackle

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.

ivolimasilva avatar Nov 21 '17 00:11 ivolimasilva

Any updates on this?

nicshackle avatar Nov 29 '17 14:11 nicshackle

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?

ivolimasilva avatar Nov 30 '17 00:11 ivolimasilva