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
When using twitter_openapi_python v0.0.41 or v0.0.42,
API calls such as get_tweet_result_by_rest_id() raise a KeyError because
Twitter no longer returns the header "x-connection-hash".
Error traceback:
File ".../site-packages/twitter_openapi_python/core/api_utils.py", line 64, in build_header
connection_hash = headers["x-connection-hash"]
KeyError: 'x-connection-hash'
After applying this fix, all Twitter API endpoints (e.g. get_tweet_result_by_rest_id, get_user_by_screen_name) worked normally again on both Linux and Windows with Python 3.11.x.
π Request
Please include this fix in the next release of twitter_openapi_python
so that users of v0.0.41+ no longer encounter KeyError: 'x-connection-hash'.
Thanks for your work on maintaining this great library!
Activity
[-]KeyError: 'x-connection-hash' when calling TwitterOpenapiPython APIs (v0.0.41β0.0.42)[/-][+]π§© Bug Report β KeyError: 'x-connection-hash' in `api_utils.py` (v0.0.41β0.0.42)[/+]