[英]python3 request.post is failing intermittently
We are using python 3.5.1 and requests 2.25.我们正在使用 python 3.5.1 并请求 2.25。 I am using request.post to get a token.
我正在使用 request.post 来获取令牌。 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
以前不起作用的软件包: 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
工作包cachetools==4.2.0 rsa==4.6 pytz==2020.4 google-auth==1.23.0
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.