fbchat-dev / fbchat-dev/fbchat
Unable to search for threads raising "#1675036 GraphQL Query Blocked"
- Dominant language
- Python
- Stars
- 1.2k
- Forks
- 403
- PR merge metrics
- No merged PRs in 30d
Description
## 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
```py
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
Assessment
This issue has not been assessed yet.