简体   繁体   中英

python3 request.post is failing intermittently

We are using python 3.5.1 and requests 2.25. I am using request.post to get a token. It fails when we ran the first time, the same thing when we ran 2nd time it is running successfully. Did anyone face the same issue before?

I found the solution, it is due to dependency packages. When we downgraded the below packages, it started to work

Previous Packages which are not working: cachetools==4.2.1 google-auth==1.27.0 pytz==2021.1 rsa==4.5

Working packages cachetools==4.2.0 rsa==4.6 pytz==2020.4 google-auth==1.23.0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM