fbchat-dev/fbchat

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

Open

#573 aperta il 15 mag 2020

Vedi su GitHub
 (4 commenti) (4 reazioni) (1 assegnatario)Python (406 fork)github user discovery
bughelp wanted

Metriche repository

Star
 (1210 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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?

Guida contributor