Avnsh1111 / Instagram-Reels-Scraper-Auto-Poster

Reels-AutoPilot: Reels-AutoPilot is a powerful GitHub repository that scrapes reels from specified Instagram accounts and automatically posts them to your account. Keep up with the latest content from your favorite creators and effortlessly share it with your followers. Enhance your Instagram presence and grow your account with Reels-AutoPilot!
GNU General Public License v3.0
166 stars 44 forks source link

When using Docker, poster.py exits without running #5

Closed APeter closed 1 year ago

APeter commented 1 year ago

I have configured docker following the setup steps, the logs show that reels.py is able to run and download videos, however poster.py will run for a seconds before saying poster (exit status 0; expected)

I am able to run this locally on my machine with the same settings as expected, but in docker I am unable to get posting to work.

Thanks in advanced for making this amazing script and any assistance you can provide! <3

Avnsh1111 commented 1 year ago

Hi @APeter ,

Can you please share docker logs?

APeter commented 1 year ago

2023-05-22 08:35:02 2023-05-22 15:35:02,579 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message. 2023-05-22 08:35:02 2023-05-22 15:35:02,581 INFO supervisord started with pid 1 2023-05-22 08:35:03 2023-05-22 15:35:03,583 INFO spawned: 'poster' with pid 7 2023-05-22 08:35:03 2023-05-22 15:35:03,584 INFO spawned: 'reels' with pid 8 2023-05-22 08:35:04 2023-05-22 15:35:04,586 INFO success: poster entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2023-05-22 08:35:04 2023-05-22 15:35:04,587 INFO success: reels entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2023-05-22 08:35:04 Exception RateLimitError: Please wait a few minutes before you try again. 2023-05-22 08:35:04 2023-05-22 15:35:04,999 INFO exited: poster (exit status 0; expected) 2023-05-22 08:35:15 'graphql' 2023-05-22 08:35:15 Traceback (most recent call last): 2023-05-22 08:35:15 File "/usr/local/lib/python3.9/site-packages/instagrapi/mixins/user.py", line 192, in user_info_by_username 2023-05-22 08:35:15 user = self.user_info_by_username_gql(username) 2023-05-22 08:35:15 File "/usr/local/lib/python3.9/site-packages/instagrapi/mixins/user.py", line 145, in user_info_by_username_gql 2023-05-22 08:35:15 return extract_user_gql(self.public_a1_request(f"/{username!s}/")["user"]) 2023-05-22 08:35:15 File "/usr/local/lib/python3.9/site-packages/instagrapi/mixins/public.py", line 220, in public_a1_request 2023-05-22 08:35:15 raise e 2023-05-22 08:35:15 File "/usr/local/lib/python3.9/site-packages/instagrapi/mixins/public.py", line 212, in public_a1_request 2023-05-22 08:35:15 return response["graphql"] 2023-05-22 08:35:15 KeyError: 'graphql'

Avnsh1111 commented 1 year ago

Okay Thanks @APeter I will look into this and revert you back.

Avnsh1111 commented 1 year ago

Resolved the issue in the latest release : release-v1.3