[GH-ISSUE #21] IGTV Bypass - Error message #476

Closed
opened 2026-03-13 21:36:03 +03:00 by kerem · 5 comments
Owner

Originally created by @gvmturl on GitHub (Jun 13, 2020).
Original GitHub issue: https://github.com/alexal1/Insomniac/issues/21

Traceback (most recent call last):
  File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\uiautomator\__init__.py", line 438, in wrapper
    return _method_obj(*args, **kwargs)
  File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\uiautomator\__init__.py", line 135, in __call__
    "%s: %s" % (jsonresult["error"]["data"]["exceptionTypeName"], jsonresult["error"]["message"])
uiautomator.JsonRPCError: JsonRPC Error code: -32002, Message: android.support.test.uiautomator.UiObjectNotFoundException: UiSelector[CLASS=android.widget.FrameLayout, RESOURCE_ID=com.instagram.android:id/action_bar_container]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "insomniac.py", line 89, in _job_handle_bloggers
    handle_blogger(device, blogger, likes_count, storage, _on_like, on_interaction)
  File "C:\Users\User\Downloads\Insomniac2\action_handle_blogger.py", line 18, in handle_blogger
    _iterate_over_followers(device, interaction, storage, on_interaction)
  File "C:\Users\User\Downloads\Insomniac2\action_handle_blogger.py", line 69, in _iterate_over_followers
    interaction_succeed = interaction(device)
  File "C:\Users\User\Downloads\Insomniac2\action_handle_blogger.py", line 109, in _interact_with_user
    if not _open_photo_and_like(device, row, column, on_like):
  File "C:\Users\User\Downloads\Insomniac2\action_handle_blogger.py", line 143, in _open_photo_and_like
    action_bar_bottom = action_bar.bounds['bottom']
  File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\uiautomator\__init__.py", line 934, in __getattr__
    info = self.info
  File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\uiautomator\__init__.py", line 945, in info
    return self.jsonrpc.objInfo(self.selector)
  File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\uiautomator\__init__.py", line 458, in wrapper
    return _method_obj(*args, **kwargs)
  File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\uiautomator\__init__.py", line 135, in __call__
    "%s: %s" % (jsonresult["error"]["data"]["exceptionTypeName"], jsonresult["error"]["message"])
uiautomator.JsonRPCError: JsonRPC Error code: -32002, Message: android.support.test.uiautomator.UiObjectNotFoundException: UiSelector[CLASS=android.widget.FrameLayout, RESOURCE_ID=com.instagram.android:id/action_bar_container]

Try again for @codes.learning from the beginning

Think that you found a way to handle IGTV BUG but i still getting this error message on this solution. Can you also handle this message?

Thank you!

Originally created by @gvmturl on GitHub (Jun 13, 2020). Original GitHub issue: https://github.com/alexal1/Insomniac/issues/21 ``` Traceback (most recent call last): File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\uiautomator\__init__.py", line 438, in wrapper return _method_obj(*args, **kwargs) File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\uiautomator\__init__.py", line 135, in __call__ "%s: %s" % (jsonresult["error"]["data"]["exceptionTypeName"], jsonresult["error"]["message"]) uiautomator.JsonRPCError: JsonRPC Error code: -32002, Message: android.support.test.uiautomator.UiObjectNotFoundException: UiSelector[CLASS=android.widget.FrameLayout, RESOURCE_ID=com.instagram.android:id/action_bar_container] During handling of the above exception, another exception occurred: Traceback (most recent call last): File "insomniac.py", line 89, in _job_handle_bloggers handle_blogger(device, blogger, likes_count, storage, _on_like, on_interaction) File "C:\Users\User\Downloads\Insomniac2\action_handle_blogger.py", line 18, in handle_blogger _iterate_over_followers(device, interaction, storage, on_interaction) File "C:\Users\User\Downloads\Insomniac2\action_handle_blogger.py", line 69, in _iterate_over_followers interaction_succeed = interaction(device) File "C:\Users\User\Downloads\Insomniac2\action_handle_blogger.py", line 109, in _interact_with_user if not _open_photo_and_like(device, row, column, on_like): File "C:\Users\User\Downloads\Insomniac2\action_handle_blogger.py", line 143, in _open_photo_and_like action_bar_bottom = action_bar.bounds['bottom'] File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\uiautomator\__init__.py", line 934, in __getattr__ info = self.info File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\uiautomator\__init__.py", line 945, in info return self.jsonrpc.objInfo(self.selector) File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\uiautomator\__init__.py", line 458, in wrapper return _method_obj(*args, **kwargs) File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\uiautomator\__init__.py", line 135, in __call__ "%s: %s" % (jsonresult["error"]["data"]["exceptionTypeName"], jsonresult["error"]["message"]) uiautomator.JsonRPCError: JsonRPC Error code: -32002, Message: android.support.test.uiautomator.UiObjectNotFoundException: UiSelector[CLASS=android.widget.FrameLayout, RESOURCE_ID=com.instagram.android:id/action_bar_container]  Try again for @codes.learning from the beginning ``` Think that you found a way to handle IGTV BUG but i still getting this error message on this solution. Can you also handle this message? Thank you!
kerem 2026-03-13 21:36:03 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@gvmturl commented on GitHub (Jun 13, 2020):

Less than 6 photos / account is private. Skip user.
Back to followers list
Traceback (most recent call last):
  File "insomniac.py", line 89, in _job_handle_bloggers
    handle_blogger(device, blogger, likes_count, storage, _on_like, on_interaction)
  File "C:\Users\User\Downloads\Insomniac2\action_handle_blogger.py", line 18, in handle_blogger
    _iterate_over_followers(device, interaction, storage, on_interaction)
  File "C:\Users\User\Downloads\Insomniac2\action_handle_blogger.py", line 51, in _iterate_over_followers
    className='android.widget.LinearLayout'):
  File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\uiautomator\__init__.py", line 1222, in next
    return obj[self.index]
  File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\uiautomator\__init__.py", line 1203, in __getitem__
    raise IndexError()
IndexError

Try again for @python.learning from the beginning

Also getting this error message didn't see when ..

What must i do to see that [ ? Are you coloring text on terminal right?

<!-- gh-comment-id:643608750 --> @gvmturl commented on GitHub (Jun 13, 2020): ``` Less than 6 photos / account is private. Skip user. Back to followers list Traceback (most recent call last): File "insomniac.py", line 89, in _job_handle_bloggers handle_blogger(device, blogger, likes_count, storage, _on_like, on_interaction) File "C:\Users\User\Downloads\Insomniac2\action_handle_blogger.py", line 18, in handle_blogger _iterate_over_followers(device, interaction, storage, on_interaction) File "C:\Users\User\Downloads\Insomniac2\action_handle_blogger.py", line 51, in _iterate_over_followers className='android.widget.LinearLayout'): File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\uiautomator\__init__.py", line 1222, in next return obj[self.index] File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\uiautomator\__init__.py", line 1203, in __getitem__ raise IndexError() IndexError  Try again for @python.learning from the beginning ``` Also getting this error message didn't see when .. What must i do to see that `[` ? Are you coloring text on terminal right?
Author
Owner

@alexal1 commented on GitHub (Jun 13, 2020):

Think that you found a way to handle IGTV BUG

No, unfortunately, I don't know why is IGTV sometimes being opened. I've tried to reproduce this bug many times on a profile with IGTVs, but didn't succeed. I've made some kind of "autorepair" instead: whenever script fails with some known error, like one you've posted, it starts current blogger from the beginning.

What must i do to see that �[ ? Are you coloring text on terminal right?

Yes, seems that coloring on Mac and Windows terminals works different. Do you know the proper way to do the coloring in Python for Windows?

<!-- gh-comment-id:643650987 --> @alexal1 commented on GitHub (Jun 13, 2020): > Think that you found a way to handle IGTV BUG No, unfortunately, I don't know why is IGTV sometimes being opened. I've tried to reproduce this bug many times on a profile with IGTVs, but didn't succeed. I've made some kind of "autorepair" instead: whenever script fails with some known error, like one you've posted, it starts current blogger from the beginning. > What must i do to see that �[ ? Are you coloring text on terminal right? Yes, seems that coloring on Mac and Windows terminals works different. Do you know the proper way to do the coloring in Python for Windows?
Author
Owner

@gvmturl commented on GitHub (Jun 13, 2020):

Think that you found a way to handle IGTV BUG

No, unfortunately, I don't know why is IGTV sometimes being opened. I've tried to reproduce this bug many times on a profile with IGTVs, but didn't succeed. I've made some kind of "autorepair" instead: whenever script fails with some known error, like one you've posted, it starts current blogger from the beginning.

What must i do to see that �[ ? Are you coloring text on terminal right?

Yes, seems that coloring on Mac and Windows terminals works different. Do you know the proper way to do the coloring in Python for Windows?

import os
os.system('color 4')

try using color --help on terminal to take colors numbers.

But think to universal that colors you should add a library.

Maybe http://pypi.python.org/pypi/colorama ?

<!-- gh-comment-id:643681196 --> @gvmturl commented on GitHub (Jun 13, 2020): > > Think that you found a way to handle IGTV BUG > > No, unfortunately, I don't know why is IGTV sometimes being opened. I've tried to reproduce this bug many times on a profile with IGTVs, but didn't succeed. I've made some kind of "autorepair" instead: whenever script fails with some known error, like one you've posted, it starts current blogger from the beginning. > > > What must i do to see that �[ ? Are you coloring text on terminal right? > > Yes, seems that coloring on Mac and Windows terminals works different. Do you know the proper way to do the coloring in Python for Windows? ``` import os os.system('color 4') ``` try using `color --help` on terminal to take colors numbers. But think to universal that colors you should add a library. Maybe http://pypi.python.org/pypi/colorama ?
Author
Owner

@alexal1 commented on GitHub (Jun 14, 2020):

Done, please check on your machine.

<!-- gh-comment-id:643752433 --> @alexal1 commented on GitHub (Jun 14, 2020): Done, please check on your machine.
Author
Owner

@gvmturl commented on GitHub (Jun 14, 2020):

Thanks, i will mark it as closed to concentrate discussion about error message on #19.

<!-- gh-comment-id:643774409 --> @gvmturl commented on GitHub (Jun 14, 2020): Thanks, i will mark it as closed to concentrate discussion about error message on #19.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Insomniac#476
No description provided.