-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
IG auto logged me out #45
Comments
The error |
Regarding to |
No, id is good. I started use your project from april and since 26 July starts show this error. Before everything was good.
Yes, I read this. But I don't know how and where change this settings in your code. Can you write step by step how fix this error? |
I copy new version google sheet and copy all data in setting. Run works but when I log out from instagram this error show again and not work. After log in again in instagram x-ig-www-claim and cookie changed. |
You should never log out from Instagram because the script use the cookie of that log-in session. |
Another error Exception: Request failed for https://i.instagram.com returned code 400. Truncated server response: {"message":"checkpoint_required","checkpoint_url":"https://i.instagram.com/challenge/?next=/api/v1/feed/reels_media/...",... (use muteHttpExceptions option to examine full response) I check and Instagram block my account. I try with another one, I don't log out. I hope this time it works. |
Ok, I tested script and it works but after 2 days instagram block my accout, I must authorized. After authorized is error "SyntaxError: Unexpected token < in JSON at position 0" and I must copy new data to settings. Any suggestion how fix it? I want copy data once not new after 2 days. Maybe I must change trigger? Now I have set run after every 1 hour. Maybe try set after longer interval? |
Even when autorize error don't appear on Instagram I must copy new cookies date afer 2-3 days, because "SyntaxError: Unexpected token < in JSON at position 0" appear when I run fetcher. Any suggestion how fix this? I dont log out from IG account. I open Firefox - log in to IG - and close Firefox. I dont use Firefox to check sites, I using Chrome. |
@fifson1 Why don't you copy your cookies from Chrome 😅 |
I don't want be log in on Chrome, but if this resolve error I could try |
I think IG auto log out after 3 days and when I must log in again cookies is changed and new cookies must be copy to sheet because show error "SyntaxError: Unexpected token < in JSON at position 0", now I try with Chrome, maybe will be better effect |
Still same problems with this ;/ IG logged me out after 3-4 days and I must log in and copy new cookies again and again. Maybe is something bad with my chrome settings? I have no idea what fix this... |
Instagram enhanced their endpoint security recently. It seems the Instagram team is going to prevent robots to access their API just using cookies. They become verify user sessions and credentials more frequently. Thus, the problem won't fix very soon until rewriting entire piece of code to use username and password for authentication. |
So only way for now is wait for re-build code, because others attempts to solve problem don't work? I set trigger to get email notifs when error apear so I know when IG log me out and sheet not work and I can fast fix this, but would be better copy cookies once on month and don't fix error after few days. But most important is fact that main task in project works correct and files is saved in GDrive |
New relese from 2022-09-04 can help with problems with log out? I don't know make change or not... |
No, it doesn't fix that issue. |
I found Instagram won't require re-login and change the cookie every day if I remove the time-based trigger from the Apps Script project and only run the script manually once per day. |
I will test how many max. run can be before log out. Now I have 2 sheets, in both I set trigger run after 2 hours. |
I faced the same logout problem more than one year back, when i scheduled the script to run every 8 hours. After being banned by insta twice, and thinking that only a robot could request exactly every 8 hours, I changed the coded to run the trigger in a random time between every 8th and 9th hour:
This worked nicely until recently. I think Instagram now has deployed other security modifications :( P.S: @chriskyfung plz fix this :) This is the only auto instagram story downloader on the internet... |
@Seeker220 Did you try a larger interval, such as 12-24 hours? |
OK done.. I will observe and reply tomorrow :) |
@Seeker220 Please update and test with the new v6 template, and let me know your result. I added the param I think there is no solution by using just the cookies in the future. It will need a headless browser, such as Selenium and Puppeteer to mimic the login process to work around. However, it will unable to build with just Apps Script. Each user may need to his/her own server or cloud function to run those third-party programs securely. |
@chriskyfung |
I made a single all-in-one script today... giving it:
and set trigger each 12 hours to the function |
Please name cell B8 to |
@Seeker220 DO NOT post any sensitive personal data, please remember to remove them from the code next time. |
Actually I changed the values a little bit :) just gave them for format... |
@chriskyfung I opened a new insta account for testing, and set v6 trigger 12 hours. I noticed that in both my accounts, "X_ASBD_ID" and "X_IG_APP_ID" has the same value, although opened one in Chrome and one in Firefox... |
@Seeker220 any details after testing? IG still log out? |
@fifson1 no, IG did not log out as far. :) |
New problem today. IG don't log me out from yesterday but when trigger or I run script I have error: |
I have no response to fix this issue if you overuse the script and get blocked by Instagram. Please investigate the problem yourself. |
I made new IG account and copy cookies from this, for now script work. |
Hi, I tried the hourly (12h), daily and weekly trigger but Instagram logged out me every time.
Can you please confirm that currently - March 2023 - the only solution provided to make the tool work properly is TO DO NOT set the trigger? So the only solution is to run manually the task (button)? If this is correct, it should be removed the trigger from the script because it is misleading, isn't? |
Instagram forces log out even running the script manually. You need to open your Instagram account using the Chrome browser once a day! |
Instagram seems to be logging me out every time I run the script before it can actually save anything, rendering the script useless. Is there a workaround for this at all? Am I just unlucky or did IG finetune their detection of using cookies to access their API? |
UpdatesIn Library v9, error logging will be improved to include HTTP headers.
|
I have two errors with autofetcher.
First when I want run script I get this error:
SyntaxError: Unexpected token < in JSON at position 0
I changed data in Logs section but after this I get another error
Exception: Attribute provided with invalid value: Header:x-ig-www-claim
How I can fix this?
The text was updated successfully, but these errors were encountered: