Closed galihmrd closed 1 year ago
This is not an issue really, its because Vercel runs on serverless and the session gets suspended by Instagram since its considered as suspicious login because every time its used from a different region. If you host the website on your own cloud instance you wont be getting this problem.
I updated the environment variables for more session cookie identifiers and added device identifier, account identifier, location identifier which should reduce suspicious behavior suspension by Instagram.
I'm facing the same errors when I host on vercel https://instagram-video-downloader-1.vercel.app/
How can I solve this error I also change
AUTH_COOKIE="..." USE_UPSTASH="true" UPSTASH_REDIS_REST_URL="..." UPSTASH_REDIS_REST_TOKEN="..." //With real value
The Authenticated API with cookie was removed duo to the high chance of being banned by Instagram because its against their terms of service.
As for the response "The video download link for this post is not available." is not an error or issue, it just means the scraper was not able to find the video URL on the post page.
If you want to use this app in production you will have to use yt-dlp to host a backend python server that fetches and serves the posts to the frontend. I did not implement this here because its not possible to host it on a serverless hosting like Vercel.
have a good day.
Also i noticed that you pushed your Auth cookie and Upstash info to the Github repository that you forked:
Please make sure to change your password on Instagram and Upstash because people can use this info to access your account and never push .env
files to the repository because all the variables there should be kept secret from everyone for security reasons.
Have a nice day.
Thank you so much for giving answere