Menu

#1 Error fetching direct messages

closed
nobody
bug (44)
2025-02-10
2025-02-08
Anonymous
No

Originally created by: supreme-gg-gg
Originally owned by: endernoke

Describe the bug
When starting the chat it needs to load the direct messages using the API. However, a bunch of error were received which I suspect is slowing down the loading process significantly. Please investigate and fix.

Status 201: JSONDecodeError in public_request (url=https://www.instagram.com/spacy_astro/?__a=1&__d=dis) >>>
Status 201: JSONDecodeError in public_request (url=https://www.instagram.com/spacy_astro/?__a=1&__d=dis) >>>
Status 201: JSONDecodeError in public_request (url=https://www.instagram.com/spacy_astro/?__a=1&__d=dis) >>>
Status 404: Endpoint /v1/users/spacy_astro/usernameinfo/ does not exist
Status 201: JSONDecodeError in public_request (url=https://www.instagram.com/instaducing_mike_merle/?__a=1&__d=dis) >>>
Status 201: JSONDecodeError in public_request (url=https://www.instagram.com/instaducing_mike_merle/?__a=1&__d=dis) >>>
Status 201: JSONDecodeError in public_request (url=https://www.instagram.com/instaducing_mike_merle/?__a=1&__d=dis) >>>
Status 201: JSONDecodeError in public_request (url=https://www.instagram.com/enough.reels/?__a=1&__d=dis) >>>
Status 201: JSONDecodeError in public_request (url=https://www.instagram.com/enough.reels/?__a=1&__d=dis) >>>
Status 201: JSONDecodeError in public_request (url=https://www.instagram.com/enough.reels/?__a=1&__d=dis) >>>

To Reproduce
Steps to reproduce the behavior:

  1. Run python3 instagram.cli chat and start chat
  2. It will probably show these error, at least for Wise Nonsense account

Expected behavior
Expected to load much faster without any error, error logs should be hidden from client.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Related

Tickets: #150

Discussion

  • Anonymous

    Anonymous - 2025-02-09
     
  • Anonymous

    Anonymous - 2025-02-10

    Originally posted by: endernoke

    Fixed in commit e1fc38f

    Now DMs should load significantly faster without JSONDecodeError in public request errors

    The cause was that I made unnecessary instagrapi requests to get chat participant info from user id, which is already returned inside DirectThread data.

     
  • Anonymous

    Anonymous - 2025-02-10

    Ticket changed by: endernoke

    • status: open --> closed
     

Log in to post a comment.

Auth0 Logo