fbchat-dev/fbchat

Unable to search for threads raising "#1675036 GraphQL Query Blocked"

Open

#573 geöffnet am 15. Mai 2020

Auf GitHub ansehen
 (4 Kommentare) (4 Reaktionen) (1 zugewiesene Person)Python (406 Forks)github user discovery
bughelp wanted

Repository-Metriken

Stars
 (1.210 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Description of the problem

Unable to search for threads, I've been experiencing this error for an hour now while it was working before.

Code to reproduce

import fbchat as fb
from misc.session import get_session, save_cookies

session = get_session('email', 'password')
client = fb.Client(session=session)
print(next(client.search_for_threads('some user', limit=1)))

Traceback

Traceback (most recent call last):
  File "lib\site-packages\fbchat\_client.py", line 152, in search_for_threads
    (j,) = self.session._graphql_requests(
  File "lib\site-packages\fbchat\_session.py", line 404, in _graphql_requests
    return self._post("/api/graphqlbatch/", data, as_graphql=True)
  File "lib\site-packages\fbchat\_session.py", line 372, in _post
    return _graphql.response_to_json(r.text)
  File "lib\site-packages\fbchat\_graphql.py", line 51, in response_to_json
    _exception.handle_graphql_errors(value)
  File "lib\site-packages\fbchat\_exception.py", line 128, in handle_graphql_errors
    raise GraphQLError(
fbchat.GraphQLError: #1675036 GraphQL Query Blocked:

Environment information

  • Python version 3.8.2
  • fbchat version 2.0.0a2

No idea why it didn't work today, perhaps some new Facebook updates I guess. Any help?

Contributor Guide