yowsup icon indicating copy to clipboard operation
yowsup copied to clipboard

Upload image problem

Open predator-1 opened this issue 9 years ago • 6 comments

Hi. I get it when I start to send image /image send [email protected] C://Users//alex//Downloads//jop.png

DEBUG:yowsup.layers.logger.layer:tx: <iq to="s.whatsapp.net" xmlns="w:m" type="set" id="1"> <media type="image" hash="nZ5R6Lr4zMrLPdBbEMb4c/BMJEmyDlNJJkJTq9NlOMQ=" size="28 0289"> </media> </iq> [connected]:DEBUG:yowsup.layers.logger.layer:rx: <iq type="error" from="s.whatsapp.net" id="1"> <error text="feature-not-implemented" code="501"> </error> </iq>

predator-1 avatar Jul 03 '17 15:07 predator-1

I noticed I have exact the same problem. I tried to use python3, but it gives the same result. Is it possible that Whatsapp has updated something?

visiks avatar Jul 03 '17 15:07 visiks

Hi, I am also facing a similar issue when trying to send image via Yowsup i.e. "Feature Not Implemented". Following is the error I get in CLI

[connected]:/image send 9194XXXXXXXX E:/test.jpg
DEBUG:yowsup.layers.logger.layer:tx:
<iq to="s.whatsapp.net" xmlns="w:m" type="set" id="1">
<media type="image" hash="XVUlEITeTJVXrmUgZz6DaHSqvE92yu3t/1i9ufs1/BU=" size="20
6050">
</media>
</iq>

DEBUG:yowsup.layers.logger.layer:tx:
<iq to="s.whatsapp.net" xmlns="w:m" type="set" id="1">
<media type="image" hash="XVUlEITeTJVXrmUgZz6DaHSqvE92yu3t/1i9ufs1/BU=" size="20
6050">
</media>
</iq>

[connected]:DEBUG:yowsup.layers.logger.layer:rx:
<iq type="error" from="s.whatsapp.net" id="1">
<error text="feature-not-implemented" code="501">
</error>
</iq>

ERROR:yowsup.demos.cli.layer:Request upload for file E:/test.jpg for 9194XXXXXXX
[email protected] failed
DEBUG:yowsup.layers.logger.layer:rx:
<iq type="error" from="s.whatsapp.net" id="1">
<error text="feature-not-implemented" code="501">
</error>
</iq>

DEBUG:yowsup.layers.protocol_iq.layer:ping queue size: 1
DEBUG:yowsup.layers.logger.layer:tx:
<iq xmlns="w:p" type="get" id="2">
</iq>

DEBUG:yowsup.layers.logger.layer:rx:
<iq type="result" from="[email protected]" id="2" t="1499322654">
</iq>

Iq:
ID: 2
Type: result
from: [email protected]

Please can someone help on this on priority?

drashtived avatar Jul 06 '17 08:07 drashtived

Just solved part of the issue:

The tag is no longer supported. Now you must send encrypted images with <encr_media>.

If you make the needed changes in iq_requestupload.py and iq_requestupload_result.py (replace "media" with "encr_media", you can get to the upload step.

I could not, however, get the upload to actually work. Server always gives 400 error.

Maybe the server checks if the image is actually encrypted?

I'm trying to get the correct POST format from the decompiled java source, with no success.

If anyone has any idea how to proceed, I'd be immensely grateful.

etinin avatar Jul 12 '17 14:07 etinin

Changing the media for encr_media allows send the media, in my case is an audio. After the sends the error in the traceback is: ERROR:yowsup.layers.protocol_media.mediauploader:Error occured at transfer json data not found Traceback (most recent call last): File "C:\Python27\lib\site-packages\yowsup\layers\protocol_media\mediauploader.py", line 133, in run raise Exception("json data not found") Exception: json data not found ERROR:yowsup.demos.cli.layer:Upload file C:/Python27/Scripts/projects/wa_project/sample.aac to https://mmg.whatsapp.net/u/f/aukMBfx7arz_zhzoYhc8Mllo-s8ABVRKHRXcbg/AmN2QZ__hszDvKs_VAOb9JYRLCxXPVzOC2vAIPZzvnLW for [email protected] failed! DEBUG:yowsup.layers.logger.layer:rx: <iq type="result" from="s.whatsapp.net" id="1"> <encr_media url="https://mmg.whatsapp.net/u/f/F6LTUcxCT-fcwVv8rzqI7Flo-tAABVR/AmN2QZ__hszDvKs_VAOb9JYRLCxXPVzOC2vAIPZzvnLW"> </encr_media> </iq> I will working for fix this, anyway if someone know the solution, please share it.

marianozetina avatar Jul 14 '17 17:07 marianozetina

Are there any updates? I need to send audio but "feature-not-implemented"......

dietzi avatar Jul 30 '17 19:07 dietzi

the image upload issue has to do with this other issue 2149 The solution is not ready yet.

hgc2002 avatar Aug 28 '17 09:08 hgc2002