|
QnA Make python Error (linebot) C:\Users\hp\linebotQnA>python qna1.py 輸入諮詢問題 (直接按 Enter 鍵就結束):門診時間 Traceback (most recent call last): File "qna1.py", line 23, in <module> conn.request("POST", method, content, headers) File "C:\Users\hp\Anaconda3\envs\linebot\lib\http\client.py", line 1252, in request self._send_request(method, url, body, headers, encode_chunked) File "C:\Users\hp\Anaconda3\envs\linebot\lib\http\client.py", line 1298, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "C:\Users\hp\Anaconda3\envs\linebot\lib\http\client.py", line 1247, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "C:\Users\hp\Anaconda3\envs\linebot\lib\http\client.py", line 1026, in _send_output self.send(msg) File "C:\Users\hp\Anaconda3\envs\linebot\lib\http\client.py", line 966, in send self.connect() File "C:\Users\hp\Anaconda3\envs\linebot\lib\http\client.py", line 1414, in connect super().connect() File "C:\Users\hp\Anaconda3\envs\linebot\lib\http\client.py", line 938, in connect (self.host,self.port), self.timeout, self.source_address) File "C:\Users\hp\Anaconda3\envs\linebot\lib\socket.py", line 707, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): File "C:\Users\hp\Anaconda3\envs\linebot\lib\socket.py", line 752, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno 11001] getaddrinfo failed |