tgalal / yowsup

The WhatsApp lib
GNU General Public License v3.0
7.06k stars 2.22k forks source link

Can't connect to whatsapp upload server (refused connection) #1698

Open senomuktiadji opened 8 years ago

senomuktiadji commented 8 years ago

Hi guys I have a problem when sending an image, currently I'm developing on Windows, the problem is I can't connect to whatsapp upload server, the error message from python sock says 'No connection could be made because the target machine actively refused it', does it related to my network because its uses the company proxy? I have added http_proxy and https_proxy entry to my environment variables but still no luck.

here's my debugging message:

Incoming Message:
Image mana
Message From:
62812--------
Log success.
Formatted Message:
Image mana
[u'Image mana']
not a duplicate
uploading file..
jid: 62812--------@s.whatsapp.net
own jid: 62812--------@s.whatsapp.net
file path: D:/Pictures/mugiwara.jpg
url: https://mmi702.whatsapp.net/u/5WocGrHeO99xMBVeqbXemgsp9x0ABTfgNQx6vg/AvSKS8tZMRxgFHwJfz5ESDi1UriDGx3d1npE-677LXt2
resume offset: 0

from MediaUploader..
filename: mugiwara.jpg
filetype: image/jpeg
filesize: 470474
connecting to upload server..
mmi702.whatsapp.net 443
Error at transfer [Errno 10061] No connection could be made because the target machine actively refused it
No handlers could be found for logger "yowsup.layers.protocol_media.mediauploader"

Kindly appreciate any help, thanks in advance.

mr-krille commented 8 years ago

same here: get this response at mediauploader.py line 111

HTTP/1.1 403 Forbidden Connection: close Server: WhatsApp-MMS/2 Date: Thu, 21 Jul 2016 15:59:03 GMT Content-Length: 38 Content-Type: text/html WWW-Authenticate: Basic realm=""

Invalid media download request

mr-krille commented 8 years ago

@senomuktiadji I got it to work with the code from the cli demo