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

ChunkedEncodingError #393

Open
rohsshor opened this issue Apr 10, 2024 · 1 comment
Open

ChunkedEncodingError #393

rohsshor opened this issue Apr 10, 2024 · 1 comment

Comments

@rohsshor
Copy link

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
Copy link

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: <androidx.test.uiautomator.UiObjectNotFoundException> 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: <androidx.test.uiautomator.UiObjectNotFoundException> 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.

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

2 participants