leandroferrari / nagios_whatsapp

nagios talking to whatsapp
1 stars 0 forks source link

yowsup registration error. #1

Open shwetajain1 opened 2 years ago

shwetajain1 commented 2 years ago

I have installed a yowsup library trying to register my mobile number. getting network is an unreachable error. I have already set a proxy in my Linux system. looks like it's not using that system proxy. how to set a proxy for this library?

Traceback (most recent call last): File "./yowsup-cli", line 722, in if not parser.process(): File "./yowsup-cli", line 387, in process self.handleRequestCode(self.args["requestcode"], config) File "./yowsup-cli", line 399, in handleRequestCode result = codeReq.send(encrypt=self._encrypt, preview=self._preview) File "/root/whatsapp/yowsup/yowsup/registration/coderequest.py", line 35, in send result = request.send(encrypt=encrypt, preview=preview) File "/root/whatsapp/yowsup/yowsup/common/http/warequest.py", line 141, in send return self.sendGetRequest(parser, encrypt, preview=preview) File "/root/whatsapp/yowsup/yowsup/common/http/warequest.py", line 213, in sendGetRequest self.response = WARequest.sendRequest(host, port, path, headers, params, "GET", preview=preview) File "/root/whatsapp/yowsup/yowsup/common/http/warequest.py", line 302, in sendRequest conn.request(reqType, path, params, headers) File "/usr/local/lib/python3.6/http/client.py", line 1262, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/local/lib/python3.6/http/client.py", line 1308, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/local/lib/python3.6/http/client.py", line 1257, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/local/lib/python3.6/http/client.py", line 1036, in _send_output self.send(msg) File "/usr/local/lib/python3.6/http/client.py", line 974, in send self.connect() File "/usr/local/lib/python3.6/http/client.py", line 1415, in connect super().connect() File "/usr/local/lib/python3.6/http/client.py", line 946, in connect (self.host,self.port), self.timeout, self.source_address) File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection raise err File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection sock.connect(sa) OSError: [Errno 101] Network is unreachable

leandroferrari commented 2 years ago

Hello ,

Sorry for the delay. You can find support for the yowsup library, at https://github.com/tgalal/yowsup

Thank's Leandro

On Wed, 20 Oct 2021 at 05:13, shwetajain1 @.***> wrote:

I have installed a yowsup library trying to register my mobile number. getting network is an unreachable error. I have already set a proxy in my Linux system. looks like it's not using that system proxy. how to set a proxy for this library?

Traceback (most recent call last): File "./yowsup-cli", line 722, in if not parser.process(): File "./yowsup-cli", line 387, in process self.handleRequestCode(self.args["requestcode"], config) File "./yowsup-cli", line 399, in handleRequestCode result = codeReq.send(encrypt=self._encrypt, preview=self._preview) File "/root/whatsapp/yowsup/yowsup/registration/coderequest.py", line 35, in send result = request.send(encrypt=encrypt, preview=preview) File "/root/whatsapp/yowsup/yowsup/common/http/warequest.py", line 141, in send return self.sendGetRequest(parser, encrypt, preview=preview) File "/root/whatsapp/yowsup/yowsup/common/http/warequest.py", line 213, in sendGetRequest self.response = WARequest.sendRequest(host, port, path, headers, params, "GET", preview=preview) File "/root/whatsapp/yowsup/yowsup/common/http/warequest.py", line 302, in sendRequest conn.request(reqType, path, params, headers) File "/usr/local/lib/python3.6/http/client.py", line 1262, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/local/lib/python3.6/http/client.py", line 1308, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/local/lib/python3.6/http/client.py", line 1257, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/local/lib/python3.6/http/client.py", line 1036, in _send_output self.send(msg) File "/usr/local/lib/python3.6/http/client.py", line 974, in send self.connect() File "/usr/local/lib/python3.6/http/client.py", line 1415, in connect super().connect() File "/usr/local/lib/python3.6/http/client.py", line 946, in connect (self.host,self.port), self.timeout, self.source_address) File "/usr/local/lib/python3.6/socket.py", line 724, in create_connection raise err File "/usr/local/lib/python3.6/socket.py", line 713, in create_connection sock.connect(sa) OSError: [Errno 101] Network is unreachable

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/leandroferrari/nagios_whatsapp/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AELDBDYBJPPXEA3VOSHH4SDUHZ235ANCNFSM5GK74WUQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.