stackapi icon indicating copy to clipboard operation
stackapi copied to clipboard

Fetching unread notification correctly.

Open delrius-euphoria opened this issue 4 years ago • 0 comments

I am trying to fetch notification from the site, but i cant actually stop when one notification is recieved. Like since as long as i dont see the notification, it stays un-read and all that while i keep on getting the pop notification i made. Is there anyway to fetch the notification efficiently? I dont if this is how we ask stuff here, im new to over here.

After long time i get an error too:

Exception in thread Thread-1734:
Traceback (most recent call last):
  File "C:\Users\nihaa\AppData\Local\Programs\Python\Python37-32\lib\threading.py", line 926, in _bootstrap_inner
    self.run()
  File "C:\Users\nihaa\AppData\Local\Programs\Python\Python37-32\lib\threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "c:/PyProjects/Patient Data Entry/new.py", line 39, in first
  File "C:\Users\nihaa\AppData\Local\Programs\Python\Python37-32\lib\site-packages\stackapi\stackapi.py", line 198, in fetch
    raise StackAPIError(self._previous_call, error, code, message)
stackapi.stackapi.StackAPIError: ('https://api.stackexchange.com/2.2/users/13382000/inbox/?pagesize=100&page=1&filter=default&key=...%28%28&access_token=...%29%29&site=stackoverflow', 502, 'throttle_violation', 'too many requests from this app/user pair, more requests available in 41391 seconds')

My code with the Q - https://stackoverflow.com/questions/63879077/displaying-desktop-notification-after-getting-a-new-message-python-tkinter

delrius-euphoria avatar Sep 14 '20 18:09 delrius-euphoria