Open BrightXiaoHan opened 2 years ago
or it will raise ConnectionError when I make a request to the server
raise ConnectionError(e, request=request)
E requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=39218): Max retries exceeded with url: /termprojsbypage/test_terms_db_id?CurrentPage=1&PageSize=1000000&sort=Origin.desc&RowKey=&Modifier=&rText=&tText=&Remark= (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb33ca00100>: Failed to establish a new connection: [Errno 111] Connection refused'))
This is my code, I found that I must take a break to wait for the server ready.