写一个一个读取API接口数据的Python脚本,收集数据到Mysql数据库中
脚本同学要辛勤地日夜运行,可是,大约三天后,它,,挂了,
查看 Log 日志,发现报了如下错误
requests.exceptions.ConnectionError: HTTPConnectionPool(host='xx.xx.xx.xx', port=8080): Max retries exceeded with url: /myurl (Caused by <class 'httplib.BadStatusLine'>: '')
这里大概是在说
Looking at stack trace you’ve provided your error is caused by httplib.BadStatusLine exception, which, according to docs, is:
Raised if a server responds with a HTTP status code that we don’