Skip to content

404 Error Occurs After Loading Saved Session - Session Persistence #99

@sceneq

Description

@sceneq

Environment

  • Python version: 3.11.5
  • TweeterPy version: 2.0.12

Description

When I log in and immediately fetch user tweets, the response is successful. However, after loading a previously saved session, fetching the same user's tweets results in a 404 error. Additionally, after loading the session, the client_transaction attribute becomes None.

Steps to Reproduce

  1. Perform login and save session:
twitter = TweeterPy()
twitter.login()
twitter.save_session()
  1. Fetch user tweets (success):
twitter.get_user_tweets(44196397, pagination=False)
# → successful response, twitter.request_client.client_transaction is NOT None
  1. Load saved session in a new instance:
twitter = TweeterPy()
twitter.load_session()
  1. Attempt to fetch user tweets again (fails with 404):
twitter.get_user_tweets(44196397, pagination=False)
# → 404 response, twitter.request_client.client_transaction is None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions