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

Error sending note: HTTPSConnectionPool(host='i.instagram.com', port=443): Max retries exceeded with url: /api/v1/notes/create_note (Caused by ResponseError('too many 429 error responses')) #2098

Open
gltdevlop opened this issue Dec 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@gltdevlop
Copy link

I use the app to send notes.
It was working fine until now when deleting note caused the same error and now it's the note sending.
Here's my code :

import os
import creds_create
from instagrapi import Client

if not os.path.exists("creds.txt"):
creds_create.window()

with open("creds.txt", "r", encoding="utf-8") as f:
creds = f.readlines()
username = creds[0].strip()
password = creds[1].strip()

cl = Client(request_timeout=7)
cl.login(username, password)

user_id = cl.user_id_from_username(username)
medias = cl.user_medias(user_id, 20)

def send_note(note, audience):
cl.create_note(note, audience)

def del_note():
note = cl.create_note("Is not currently playing", 1)
# cl.delete_note(int(note.id))

All it says its :
Error sending note: HTTPSConnectionPool(host='i.instagram.com', port=443): Max retries exceeded with url: /api/v1/notes/create_note (Caused by ResponseError('too many 429 error responses'))

Normally it just sends a note

Desktop

  • OS: W11 24h2
  • Python version 3.13
  • instagrapi version 2.1.3

Please help

@gltdevlop gltdevlop added the bug Something isn't working label Dec 24, 2024
@OmochiWrestler
Copy link

OmochiWrestler commented Jan 10, 2025

Isn't Instagram blocking this? After how many note are sent, does this message appear? For me, usually after sending 16 or 17 direct messages, the session is blocked, and you have to wait until Instagram releases it from the account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants