Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Failed instagram request: Request failed with status code 401' #33

Open
Pawarna opened this issue Feb 19, 2025 · 2 comments
Open

'Failed instagram request: Request failed with status code 401' #33

Pawarna opened this issue Feb 19, 2025 · 2 comments

Comments

@Pawarna
Copy link

Pawarna commented Feb 19, 2025

Hi team,

I'm encountering an issue with the instagram-url-direct module. It works perfectly fine on my local development environment, but when I deploy my application to a VPS running Ubuntu 22.04, I get the following error:

Failed instagram request: Request failed with status code 401

Here's a summary of the issue:

  • Problem: The instagram-url-direct module fails to fetch Instagram data on a VPS with Ubuntu 22.04.
  • Error Message: Failed instagram request: Request failed with status code 401
  • Environment:
    • Local: Works as expected.
    • VPS: Ubuntu 22.04 (Error occurs)

I would appreciate any help in resolving this issue. Please let me know if you need any further information.

Thank you!

@victorsouzaleal
Copy link
Owner

Honestly I have no idea what happens on VPS that prevents it from working, this also happens with some other packages like ytdl-core.

I'll leave the issue open in case anyone with more experience knows why this happens.

@burstw0w
Copy link
Contributor

Which VPS provider? @Pawarna

I had many issues with hetzner, instagram probably just blocks their IP range.
I had much better luck with linode, which is more expensive, but if you are writing good code you can fit inside their cheapest 5$ option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants