Skip to content

urllib3 fails to handle multiple accounts #199

@swirly

Description

@swirly

use case :

  • 2 withings account
  • 2 garmin connect account
  • 1 server to use cron on (no docker)

I use a cron job, per user, with a script that does just a

withings-sync

after changing to the right directory with a .env file correctly set

Problem : urllib3 use a connection pool and it is persistent. So when logging for the second user, the connection is already established and the datas are sent to the first user.

Only solution I've found is to use a second server ... not nice :(

Seems to be related to the way urllib3 works, and the way the connection is kept to not have MFA

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions