Open birdman2005 opened 10 years ago
Because WhatsApp has some issues with reaching certain cell networks to send SMS messages.
But, with the same phone number, it works well on android cell phones.
Additional, it works well with Official whatsapp apk
download last version of wart ,i had the same problem when i used (wart v.1.6.3.0) it's work on the new version of wart (v.1.6.6.0)
dowload from https://github.com/shirioko/WART
I have tried with Wart v.1.6.6.0 and v.1.6.7.0 without success. If I use WhatsApp apk from Google Play version 2.11.186 the registration works.
I have downloaded WhatsApp apk 2.11.234 from WhatsApp homepage and it is telling to wait 1 hour = 3600 seconds. It is strange that it is telling me to wait 1 hour in version 2.11.234 but not in version 2.11.186. So I suppose that the error is the MD5 generateRequestToken from version > 2.11.186. Is there some possibility to get 2.11.186 MD5 string in order to test if this is the problem? Thanks!
Search around in the issues, I've already explained how to obtain the MD5 somewhere.
I have already read more than 100 issues but I cannot find it... any tip?
I told you to search, not to read.
First query I entered already yields three results with the answer you're looking for: https://github.com/venomous0x/WhatsAPI/search?q=classes+md5&type=Issues
Many thanks. I appreciate your help. But it is not working with 2.11.186 either :-( maybe it is time to investigate with method=self
it's not worked with me , if there is any solution please !
Hi, check latest code and official updates here: https://github.com/mgp25/WhatsAPI-Official
same proplem , check this http://965whats.com/include/classes/Whatsapp/sendcode.php?phone=14326143583&send=send
Array (
[method] => sms
[in] => 4326143583
[cc] => 1
[id] => %83%ED%AF%BB%41%72%77%29%48%22%E8%A9%69%1F%DA%2F
[lg] => en
[lc] => en
[token] => rY3X9yDtLxEZ3dCSLwYn6sUqwy4%3D
[sim_mcc] => 000
[sim_mnc] => 000 )
stdClass Object (
[status] => fail
[reason] => too_recent
[retry_after] => 3551 )
Fatal error: Uncaught exception 'Exception' with message 'Code already sent. Retry after 59 minutes.' in /home/whatscom/public_html/include/classes/Whatsapp/whatsprot.class.php:381 Stack trace: #0 /home/whatscom/public_html/include/classes/Whatsapp/sendcode.php(7): WhatsProt->codeRequest() #1 {main} thrown in /home/whatscom/public_html/include/classes/Whatsapp/whatsprot.class.php on line 381
Output: Code already sent. Retry after 59 minutes.
please try change the number with any other number replace 14326143583 into any thing other like 14326143582
@kareem289 Output: There was a problem trying to request the code
For most of the people is working. The 'no_routes' error its because you need to provide sim_mnc and sim_data, if you check WhatsAPI Official wiki, in the registration flow, in the https request there is a useful link to get that data.
If it shows 'sent' and you don't receive the sms just wait, is a problem of the mobile network not whatsapp :)
Hi, When i am using registerTool.php getting below is my output can anyone tell me whats wrong?.
Array ( [in] => *** [cc] => 91 [id] => %0b%c4%5f%13%28%54%50%c4%d0%2e%9f%2d%55%00%0d%3f [lg] => hi [lc] => IN [mcc] => 000 [mnc] => 000 [sim_mcc] => 404 [sim_mnc] => 049 [method] => sms [reason] => self-send-jailbroken [token] => WoyDFPqus9BcGbiDaW2mF6OlGkI%3D [network_radio_type] => 1 )
stdClass Object (
[status] => fail
[reason] => no_routes
[retry_after] => 3600 )
There was a problem trying to request the code.
Fatal error: Uncaught exception 'Exception' with message 'There was a problem trying to
request the code.' in src\whatsprot.class.php:436 Stack
trace: #0 examples\exampleRegister.php(48):
WhatsProt->codeRequest('sms') #1 {main} thrown in src\whatsprot.class.php on line 436
Can anyone help me?
@mgp25 Hi, In my registerTool.php i am using the below details, please tell me what is wrong in this?
require_once('../src/whatsprot.class.php'); $debug = true; $username = '9197906*****'; $identity = "identity"; $nickname = 'Myname'; $carrier = 'AirTel'; $w = new WhatsProt($username, $identity, $nickname, $debug); $option = 'sms'; try { $w->codeRequest(trim($option), $carrier); } catch(Exception $e) { echo $e->getMessage(); exit(0); }
echo "\n\nEnter the received code: "; $code = fgets(STDIN);
try { $result = $w->codeRegister(trim($code)); echo "\nYour password is: ".$result->pw."\n"; } catch(Exception $e) { echo $e->getMessage(); exit(0); }
I'm getting the same issue described by marimuthum17. Getting the following: stdClass Object ( [status] => fail [reason] => no_routes [retry_after] => 3600 )
Fatal error: Uncaught exception 'Exception' with message 'There was a problem trying to
request the code.' in src\whatsprot.class.php:436
I too have had the same problem and I came to the solution, whatsapp blocked the ip of the server that I use to do all of my experiments and consequently from that message. I bought another hosting plan, and for the moment everything is back to work properly
who can help me i have an error There was a problem trying to request the code
May i know what is the error you are getting @Davit21 ?
please @marimuthum17 http://joxi.ru/n2YY47yf55Kp26
Use WhatsAPI Official code https://github.com/mgp25/WhatsAPI-Official
There is also a wiki with all the documentation
Regards
@mgp25 thanks for help
I try this but now it say me too recent
error is http://joxi.ru/nAyej3aiQQ6aAZ
@mgp25 How can i get my right user identity
@Davit21 use WhatsAPI Official code https://github.com/mgp25/WhatsAPI-Official
There is also a wiki with all the documentation: https://github.com/mgp25/WhatsAPI-Official/wiki
The identity its generated automatically just set identity as $identity = 'myId';
a file called myId.dat
will ge generated, use the code i mention.
too_recent
appears when you already tried before, you need to wait that seconds that appear you.
Regards
@mgp25 and @marimuthum17 thanks for help
why some phone number failed with reason "no_routes" while some phone number works ok