GramAddict / bot

Completely free and open-source human-like Instagram bot. Powered by UIAutomator2 and compatible with basically any Android device 5.0+ that can run Instagram - real or emulated.
https://docs.gramaddict.org
MIT License
1.08k stars 170 forks source link

ChunkedEncodingError #393

Open rohsshor opened 4 months ago

rohsshor commented 4 months ago

Traceback (most recent call last): File "C:\Users\umpalumpa\Desktop\bot\lib\site-packages\requests\models.py", line 816, in generate yield from self.raw.stream(chunk_size, decode_content=True) File "C:\Users\umpalumpa\Desktop\bot\lib\site-packages\urllib3\response.py", line 1040, in stream yield from self.read_chunked(amt, decode_content=decode_content) File "C:\Users\umpalumpa\Desktop\bot\lib\site-packages\urllib3\response.py", line 1184, in read_chunked self._update_chunk_length() File "C:\Users\umpalumpa\Desktop\bot\lib\site-packages\urllib3\response.py", line 1119, in _update_chunk_length raise ProtocolError("Response ended prematurely") from None urllib3.exceptions.ProtocolError: Response ended prematurely

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\umpalumpa\Desktop\bot\bot-master\run.py", line 3, in GramAddict.run() File "C:\Users\umpalumpa\Desktop\bot\bot-master\GramAddict__init.py", line 10, in run start_bot(*kwargs) File "C:\Users\umpalumpa\Desktop\bot\bot-master\GramAddict\core\bot_flow.py", line 125, in start_bot get_device_info(device) File "C:\Users\umpalumpa\Desktop\bot\bot-master\GramAddict\core\device_facade.py", line 30, in get_device_info f"Phone Name: {device.get_info()['productName']}, SDK Version: {device.get_info()['sdkInt']}" File "C:\Users\umpalumpa\Desktop\bot\bot-master\GramAddict\core\device_facade.py", line 317, in get_info return self.deviceV2.info File "C:\Users\umpalumpa\Desktop\bot\lib\site-packages\uiautomator2__init.py", line 448, in info return self.jsonrpc.deviceInfo(http_timeout=10) File "C:\Users\umpalumpa\Desktop\bot\lib\site-packages\uiautomator2__init.py", line 479, in call__ return self.server._jsonrpc_retry_call(self.method, params, File "C:\Users\umpalumpa\Desktop\bot\lib\site-packages\uiautomator2\init__.py", line 486, in _jsonrpc_retry_call return self._jsonrpc_call(args, **kwargs) File "C:\Users\umpalumpa\Desktop\bot\lib\site-packages\uiautomator2\init.py", line 513, in _jsonrpc_call res = self.http.post("/jsonrpc/0", File "C:\Users\umpalumpa\Desktop\bot\lib\site-packages\requests\sessions.py", line 637, in post return self.request("POST", url, data=data, json=json, **kwargs) File "C:\Users\umpalumpa\Desktop\bot\lib\site-packages\uiautomator2\init.py", line 203, in request return super().request(method, url, **kwargs) File "C:\Users\umpalumpa\Desktop\bot\lib\site-packages\uiautomator2\init__.py", line 119, in request resp = super(TimeoutRequestsSession, File "C:\Users\umpalumpa\Desktop\bot\lib\site-packages\requests\sessions.py", line 589, in request resp = self.send(prep, **send_kwargs) File "C:\Users\umpalumpa\Desktop\bot\lib\site-packages\requests\sessions.py", line 747, in send r.content File "C:\Users\umpalumpa\Desktop\bot\lib\site-packages\requests\models.py", line 899, in content self._content = b"".join(self.iter_content(CONTENT_CHUNK_SIZE)) or b"" File "C:\Users\umpalumpa\Desktop\bot\lib\site-packages\requests\models.py", line 818, in generate raise ChunkedEncodingError(e)

Hello I have this error with this version: GramAddict v.3.2.12. How could I solve this? Thank you

pacopaco-020 commented 4 months ago

Getting the same error daily:

[04/23 17:56:21] ERROR | Traceback (most recent call last): File "/Users/xyz/Documents/bots/gramaddict/bot/GramAddict/core/device_facade.py", line 620, in get_bounds return self.viewV2.info["bounds"] File "/Users/xyz/Documents/bots/gramaddict/bot/gramaddict_env/lib/python3.9/site-packages/decorator.py", line 232, in fun return caller(func, *(extras + args), kw) File "/Users/xyz/Documents/bots/gramaddict/bot/gramaddict_env/lib/python3.9/site-packages/retry/api.py", line 73, in retry_decorator return __retry_internal(partial(f, *args, *kwargs), exceptions, tries, delay, max_delay, backoff, jitter, File "/Users/xyzDocuments/bots/gramaddict/bot/gramaddict_env/lib/python3.9/site-packages/retry/api.py", line 33, in retry_internal return f() File "/Users/xyz/Documents/bots/gramaddict/bot/gramaddict_env/lib/python3.9/site-packages/uiautomator2/_selector.py", line 130, in info return self.jsonrpc.objInfo(self.selector) File "/Users/xyz/Documents/bots/gramaddict/bot/gramaddict_env/lib/python3.9/site-packages/uiautomator2/init.py", line 480, in call return self.server._jsonrpc_retry_call(self.method, params, File "/Users/xyz/Documents/bots/gramaddict/bot/gramaddict_env/lib/python3.9/site-packages/uiautomator2/init__.py", line 487, in _jsonrpc_retry_call return self._jsonrpc_call(args, kwargs) File "/Users/xyz/Documents/bots/gramaddict/bot/gramaddict_env/lib/python3.9/site-packages/uiautomator2/init.py", line 556, in _jsonrpc_call raise err uiautomator2.exceptions.UiObjectNotFoundError: -32001 Jsonrpc error: data: UiSelector[INSTANCE=1, RESOURCE_ID_REGEX=com.instagram.android:id/gap_view|com.instagram.android:id/footer_space], method: objInfo

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/xyz/Documents/bots/gramaddict/bot/GramAddict/core/decorators.py", line 31, in wrapper func(*args, **kwargs) File "/Users/xyz/Documents/bots/gramaddict/bot/GramAddict/plugins/interact_blogger_post_likers.py", line 95, in job self.handle_blogger( File "/Users/xyz/Documents/bots/gramaddict/bot/GramAddict/plugins/interact_blogger_post_likers.py", line 172, in handle_blogger handle_likers( File "/Users/xyz/Documents/bots/gramaddict/bot/GramAddict/core/handle_sources.py", line 334, in handle_likers PostsViewList(device).swipe_to_fit_posts(SwipeTo.NEXT_POST) File "/Users/xyz/Documents/bots/gramaddict/bot/GramAddict/core/views.py", line 504, in swipe_to_fit_posts gap_view_obj.get_bounds()["bottom"] File "/Users/xyz/Documents/bots/gramaddict/bot/GramAddict/core/device_facade.py", line 622, in get_bounds raise DeviceFacade.JsonRpcError(e) GramAddict.core.device_facade.DeviceFacade.JsonRpcError: -32001 Jsonrpc error: data: UiSelector[INSTANCE=1, RESOURCE_ID_REGEX=com.instagram.android:id/gap_view|com.instagram.android:id/footer_space], method: objInfo

[04/23 17:56:22] INFO | Crash saved as crashes/3.2.12_2024-04-23-17-56-21.zip [04/23 17:56:22] INFO | If you want to report this crash, please upload the dump file via a ticket in the #lobby channel on discord [04/23 17:56:22] INFO | https://discord.gg/66zWWCDM7x

[04/23 17:56:23] INFO | List of running apps: com.google.android.as, com.breel.wallpapers, com.qualcomm.qti.telephonyservice, com.google.android.apps.photos, com.google.android.cellbroadcastreceiver, com.google.vr.vrcore, com.google.android.gms, com.android.vending, com.google.android.euicc, com.google.android.apps.wellbeing, com.google.android.providers.media.module, com.instagram.android, com.google.android.apps.nexuslauncher, com.android.nfc, com.google.android.ext.services, com.qualcomm.qcrilmsgtunnel, com.android.systemui, com.android.se, com.android.phone, com.android.externalstorage, com.google.SSRestartDetector, com.github.uiautomator. [04/23 17:56:23] INFO | - Total Crashes: Limit Reached (3/3) [04/23 17:56:23] ERROR | Reached crashes limit. Bot has crashed too much! Please check what's going on. [04/23 17:56:23] INFO | Close Instagram app. [04/23 17:56:23] DEBUG | 5.0s sleep [04/23 17:56:28] DEBUG | Back to default keyboard! [04/23 17:56:28] INFO | Kill atx agent.