You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.8/site-packages/simplegmail/gmail.py", line 627, in thread_download_batch
message_lists[thread_num] = [
File "/usr/local/lib/python3.8/site-packages/simplegmail/gmail.py", line 628, in <listcomp>
gmail._build_message_from_ref(
File "/usr/local/lib/python3.8/site-packages/simplegmail/gmail.py", line 690, in _build_message_from_ref
user_labels = {x.id: x for x in self.list_labels(user_id=user_id)}
File "/usr/local/lib/python3.8/site-packages/simplegmail/gmail.py", line 568, in list_labels
raise error
File "/usr/local/lib/python3.8/site-packages/simplegmail/gmail.py", line 562, in list_labels
res = self.service.users().labels().list(
File "/usr/local/lib/python3.8/site-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper
return wrapped(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/googleapiclient/http.py", line 938, in execute
raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: <HttpError 400 when requesting https://gmail.googleapis.com/gmail/v1/users/me/labels?alt=json returned "Precondition check failed.". Details: "[{'message': 'Precondition check failed.', 'domain': 'global', 'reason': 'failedPrecondition'}]">
Traceback (most recent call last):
File "reading_email.py", line 105, in <module>
code = get_verification_code_from_inbox()
File "reading_email.py", line 62, in get_verification_code_from_inbox
messages = email.get_unread_messages(query=construct_query(query_params))
File "/usr/local/lib/python3.8/site-packages/simplegmail/gmail.py", line 316, in get_unread_messages
return self.get_messages(user_id, labels, query, attachments,
File "/usr/local/lib/python3.8/site-packages/simplegmail/gmail.py", line 534, in get_messages
return self._get_messages_from_refs(user_id, message_refs,
File "/usr/local/lib/python3.8/site-packages/simplegmail/gmail.py", line 645, in _get_messages_from_refs
return sum(message_lists, [])
TypeError: can only concatenate list (not "NoneType") to list
The text was updated successfully, but these errors were encountered:
FOUND:
The error appears occasionally (1-2 times from 10)
HERE IS SOURCE:
The Exception:
The text was updated successfully, but these errors were encountered: