New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no_routes #370

Closed
h1rule opened this Issue Nov 19, 2014 · 73 comments

Comments

Projects
None yet
@h1rule

h1rule commented Nov 19, 2014

I recently get No_Routes as fail message.

Any clue?

@tgalal

This comment has been minimized.

Owner

tgalal commented Nov 19, 2014

any logs ?

@h1rule

This comment has been minimized.

h1rule commented Nov 19, 2014

./yowsup-cli --config config.example -r sms
Detected cc: 1
status: fail
retry_after: 3600
reason: no_routes

@mgp25

This comment has been minimized.

Contributor

mgp25 commented Nov 19, 2014

That's because yowsup still need to update few things, but its working, is not a general issue, only some numbers.

@tgalal

This comment has been minimized.

Owner

tgalal commented Nov 19, 2014

need to update things in registration ?

@h1rule

This comment has been minimized.

h1rule commented Nov 19, 2014

tried a few numbers (from USA and Germany) - noone works. :(

Its also for your WhatsAPI-Official @mgp25 - i also get no_routes there. (using latest version)

@tgalal

This comment has been minimized.

Owner

tgalal commented Nov 19, 2014

@capsload Interestingly I've just tried 2 numbers in Egypt and Germany, both worked on yowsup

@CODeRUS

This comment has been minimized.

Contributor

CODeRUS commented Nov 19, 2014

@mgp25 yowsup using S40 registration, don't you think it changed sequence too?

@h1rule

This comment has been minimized.

h1rule commented Nov 19, 2014

Try it @tgalal:

49176993xxxxx [edited: u don't want spam regs there or something ;) ]

Dont worry, its not a private number. Just for testing things. (i'll edit the comment here after it worked).

@mgp25

This comment has been minimized.

Contributor

mgp25 commented Nov 19, 2014

Of course, WA has changed its way to do it. As i said is not a general issue, just for some specific numbers, i have that issue solved, not published yet, but its related in how the client does.

I recommend to check source and compare it.

@tgalal

This comment has been minimized.

Owner

tgalal commented Nov 19, 2014

@capsload says sent

@h1rule

This comment has been minimized.

h1rule commented Nov 19, 2014

nothing came through.

could it be, if this numbers were recently created by the carrier companies?

I activated those numbers 2 hours ago at the carrier company.

@tgalal

This comment has been minimized.

Owner

tgalal commented Nov 19, 2014

:/

@CODeRUS

This comment has been minimized.

Contributor

CODeRUS commented Nov 19, 2014

@capsload you need to give your mcc and mnc for that number

@h1rule

This comment has been minimized.

h1rule commented Nov 19, 2014

oh, country code and numbercode in the config? already did that.

Is it

tokenData = {
    "v": "2.12.49",
    "r": "S40-2.12.49",
    "u": "WhatsApp/2.12.49 S40Version/14.26 Device/Nokia302",
    "t": "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1413401214298{phone}",
    "d": "Nokia302"
}

related?

I dont think or?

@CODeRUS

This comment has been minimized.

Contributor

CODeRUS commented Nov 19, 2014

i need your MCC and MNC for your number to request code

@h1rule

This comment has been minimized.

h1rule commented Nov 20, 2014

So what excatly needs to be done, to get a SMS / VOICE again?
I think, i need to "request" that from the IP, where the client then is used. Because if you change the IP / Country, it gets blocked by WhatsApp Servers.

Can you send me your Script (looking forward to PHP) so i can upload it to my server?

Thanks. @CODeRUS @mgp25

@solopa

This comment has been minimized.

solopa commented Nov 26, 2014

I have exactly the same problem as @capsload. I've even tried using a yowsup fork that allowed the use of a proxy to check if that was the problem (same IP country / MCC country) with the same "no_routes" answer.

Since I'm trying with a free voice number, is it possible that WhatsApp block these kind of numbers?

I'll keep trying (I've tried like 6 times, because it makes you wait one hour between requests) because it could just be a temporal thing.

@tgalal tgalal added the registration label Nov 26, 2014

@emamirazavi

This comment has been minimized.

Contributor

emamirazavi commented Dec 19, 2014

I have the same problem, server tells me: {'status': u'fail', 'kind': None, 'code': None, 'pw': None, 'price': None, 'price_expiration': None, 'retry_after': 3600, 'currency': None, 'length': None, 'cost': None, 'param': None, 'reason': u'no_routes', 'login': None, 'type': None, 'method': None, 'expiration': None}

@guisoliver

This comment has been minimized.

guisoliver commented Dec 27, 2014

I already have the same problem.

$ python yowsup-cli registration --requestcode sms --phone 55858******* --cc 55 --mcc 724 --mnc 31

Command Output:

INFO:yowsup.common.http.warequest:{"status":"fail","reason":"no_routes","retry_after":3600}

status: fail
retry_after: 3600
reason: no_routes

Does we have problems with SMS or Phone Calls routes to Brazil?

@micha137

This comment has been minimized.

micha137 commented Dec 28, 2014

Same problem here, --cc 49...

@d0x

This comment has been minimized.

d0x commented Dec 29, 2014

Same problem here

vagrant@vagrant-ubuntu-trusty-32:~/yowsup$ yowsup-cli registration --requestcode sms --phone 4915770xxxxxx --cc 49 --mcc 262 --mnc 07
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"no_routes","retry_after":3600}

status: fail
retry_after: 3600
reason: no_routes
@xf0e

This comment has been minimized.

xf0e commented Dec 30, 2014

Same as above for --cc 49 --mcc 262 --mnc 02.

@dickenjose

This comment has been minimized.

dickenjose commented Dec 30, 2014

i am from Bolivia and no_routes have the problem when I try to register ,
My country code is 591 and no mcc code , also probe with a number of United States ( what I got in my claacentric ) but with that number I also get the error ) , I can do ?? I am new to linux command line and python help please

@gdassori

This comment has been minimized.

gdassori commented Dec 30, 2014

same for cc 39, mcc 222, mnc 10

@AeonLucid

This comment has been minimized.

AeonLucid commented Dec 30, 2014

I receive the no routes error too.
Im using this command:

$ yowsup-cli registration --requestcode sms --phone 1760697xxxx --cc 1

What am I doing wrong?

@sureshvv

This comment has been minimized.

sureshvv commented Dec 30, 2014

Same problem for -C 91 (India) -m 404 -n 40

@cppvb

This comment has been minimized.

cppvb commented Dec 30, 2014

Does anybody have information on how to solve this "no routes" issue?

@cintiaarmesto

This comment has been minimized.

cintiaarmesto commented Dec 30, 2014

Hi guys! I have same problem!!! my cod is 55 (Brazil), I tryed with diferents phones number but the error persiste :(

@dickenjose

This comment has been minimized.

dickenjose commented Dec 30, 2014

register me !!!
I did connect me from another ISP .
Also visit the website
http://en.wikipedia.org/wiki/Mobile_country_code
there I found the mmc codes and mnc my country and my phone line
then insert sudo apt- get upgrade
sudo python registration yowsup -cli -p -m 736 591 59175126178 -C -r -n 03 sms
and are the only changes from relize this morning I hope they serve . which still is not as send and receive messages I hope you can help me , sorry for my English .

@tgalal

This comment has been minimized.

Owner

tgalal commented Jan 4, 2015

1279940 should hopefully fix it, reopen the issue if it doesn't

@tgalal tgalal closed this Jan 4, 2015

@micha137

This comment has been minimized.

micha137 commented Jan 4, 2015

I can confirm that it works, i received a registration code (after solving #500)

@technocode

This comment has been minimized.

technocode commented Jan 4, 2015

Yes its 100% works...

@dezember

This comment has been minimized.

dezember commented Jan 5, 2015

Perfect. Working! Thank you @tgalal

@rahulchipad06

This comment has been minimized.

rahulchipad06 commented Jan 5, 2015

it is fixed for new numbers.what about alreadly register numbers.previously it was working

yowsup-cli registration -m 404 -n 20 -p 91******** -C 91 -e
usage: registration [-h] [-v] [-d] [--help-config] [-c CONFIG] [-m MCC]
[-n MNC] [-p PHONE] [-C CC] [-r (sms|voice) | -R code]
registration: error: unrecognized arguments: -e

@assegaf

This comment has been minimized.

assegaf commented Jan 5, 2015

its working, but its use user agent: Nokia S40 client, its possible to use different method/register for Android Client (Newest ) ?

@tgalal

This comment has been minimized.

Owner

tgalal commented Jan 5, 2015

@assegaf why?

@tgalal

This comment has been minimized.

Owner

tgalal commented Jan 5, 2015

@rahulchipad06 you cannot check exists explicitly using -e argument now, do a '-r sms' instead and it will automatically do the exists request for you before attempting to request sms code.

@assegaf

This comment has been minimized.

assegaf commented Jan 5, 2015

@tgalal oh no need, but it seem register using User Agent S40 and login using other user agent like Android 2.11.x seem working,

maybe kinda weird, we register using S40 but use messaging E2E encryption axolotl (currently for android only), which currently Whatsapp Official S40 don't support yet.

@tgalal

This comment has been minimized.

Owner

tgalal commented Jan 5, 2015

I agree probably it's not the best way, but it works, and e2e ecryption works, so for now it's ok I guess.

@horaceho

This comment has been minimized.

horaceho commented Feb 3, 2015

$ python yowsup-cli registration -v
yowsup-cli v2.0.9
Using yowsup v2.2.15
$ python yowsup-cli registration -d -p 8526X9X4X1X -C 852 -m 454 -n 04 -r sms
DEBUG:yowsup.common.http.warequest:{'Accept': 'text/json', 'User-Agent': 'WhatsApp/2.12.60 S40Version/14.26 Device/Nokia302'}
DEBUG:yowsup.common.http.warequest:cc=852&in=8526X9X4X1X&lc=GB&lg=en&mcc=000&mnc=000&sim_mcc=454&sim_mnc=004&method=sms&network_radio_type=1&reason=self-send-jailbroken&token=3cd0f6a8eb104e6b0216630b2dddb5c5&id=%BCN%EB%AF%9C%3C%A5%9E%09s%2B%CA%A1%CD%91O%C3%E8U%1D
DEBUG:yowsup.common.http.warequest:Opening connection to v.whatsapp.net
DEBUG:yowsup.common.http.warequest:Sending GET request to /v2/code?cc=852&in=6X9X4X1X&lc=GB&lg=en&mcc=000&mnc=000&sim_mcc=454&sim_mnc=004&method=sms&network_radio_type=1&reason=self-send-jailbroken&token=3cd0f6a8eb104e6b0216630b2dddb5c5&id=%BCN%EB%AF%9C%3C%A5%9E%09s%2B%CA%A1%CD%91O%C3%E8U%1D
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"no_routes","retry_after":3600}

status: fail
retry_after: 3600
reason: no_routes

no_routes for a Hong Kong number.

@catch2patch

This comment has been minimized.

catch2patch commented Feb 3, 2015

Same here, russian numbers:

DEBUG:yowsup.common.http.warequest:{'Accept': 'text/json', 'User-Agent': 'WhatsApp/2.12.60 S40Version/14.26 Device/Nokia302'}
DEBUG:yowsup.common.http.warequest:cc=7&in=968xxxxxxx&lc=GB&lg=en&mcc=000&mnc=000&sim_mcc=250&sim_mnc=028&method=sms&network_radio_type=1&reason=self-send-jailbroken&token=5ca7d64bb2f1b0a4411208af6c66d591&id=M%D1%2B%5E%C0%5DH%9F%F3%FC%F1%F7b%3F9%0B%C1%DB%21%0B
DEBUG:yowsup.common.http.warequest:Opening connection to v.whatsapp.net
DEBUG:yowsup.common.http.warequest:Sending GET request to /v2/code?cc=7&in=968xxxxxxx&lc=GB&lg=en&mcc=000&mnc=000&sim_mcc=250&sim_mnc=028&method=sms&network_radio_type=1&reason=self-send-jailbroken&token=5ca7d64bb2f1b0a4411208af6c66d591&id=M%D1%2B%5E%C0%5DH%9F%F3%FC%F1%F7b%3F9%0B%C1%DB%21%0B
INFO:yowsup.common.http.warequest:b'{"status":"fail","reason":"no_routes","retry_after":3600}\n'
status: b'fail'
retry_after: 3600
reason: b'no_routes'

It was working a week ago. Maybe they updated something like hashes or token generation way?

@ashwinrath

This comment has been minimized.

ashwinrath commented Feb 10, 2015

I think the best way to get the password is to use WART . It sends a password or a 6 digit code . It also automatically detects if the code needs to be sent by SMS or by Voice.

Here are the steps i followed

  1. Download WART , start exec and enter phone number with CC . Hit request code.
  2. Got a prompt stating that the code would be sent by voice.
  3. Got call on phone which gave me the 6 digit code.
  4. Entered code in WART and got password.
  5. Added password to config file . The config file format is the same as used in previous yowsup versions.
  6. Ran the yowsup-cli to send a message.
@ghost

This comment has been minimized.

ghost commented Feb 10, 2015

Hi,
I'm using a Vietnam phone number and still have the same issue.

@italogf

This comment has been minimized.

italogf commented Feb 10, 2015

My problem no_routes was solved after I make a new yowsup clone.

2015-02-10 3:19 GMT-02:00 T Nguyen notifications@github.com:

Hi,
I'm using a Vietnam phone number and still have the same issue.


Reply to this email directly or view it on GitHub
#370 (comment).

@ashwinrath

This comment has been minimized.

ashwinrath commented Feb 10, 2015

@toannq177 did you use WART ? using yowsup-cli gave me the no routes . WART however managed to get the password.

@ghost

This comment has been minimized.

ghost commented Mar 3, 2015

@ashwinrath hi new yowsup build now fixes the problem. I don't use WART btw.

@ymys

This comment has been minimized.

ymys commented Mar 9, 2015

Same here with cc 62 (Indonesia).
yowsup-cli: 2.0.9
yowsup: 2.2.78

@widnyana

This comment has been minimized.

widnyana commented Mar 9, 2015

@ymys i have no problem with Indonesian number.

$ yowsup-cli version                                                                                                                                                                
yowsup-cli v2.0.9
Using yowsup v2.2.78
@ymys

This comment has been minimized.

ymys commented Mar 12, 2015

@widnyana thanks for your info. After test on another machine, the problem was solved.

@yniwly43

This comment has been minimized.

yniwly43 commented Apr 16, 2016

Just a remark - sometimes the server's IP causes blocking, or no_routes.. in that case, just use a different IP.

I tried registering with 1 IP, got no_routes, tried another IP - exactly the same - it worked.

@Nickiler531

This comment has been minimized.

Nickiler531 commented Jun 19, 2016

Hi! i trying it for Colombia but the no_routes error appear.

yowsup-cli v2.0.15
yowsup v2.5.0

yowsup-cli registration --requestcode sms --phone 573196193239 --cc 57 --mcc 732 --mnc 154

INFO:yowsup.common.http.warequest:{"status":"fail","reason":"no_routes","retry_after":3600,"sms_wait":3600,"voice_wait":3600}

status: fail
retry_after: 3600
reason: no_routes

@renato-farias

This comment has been minimized.

renato-farias commented Oct 22, 2016

Hi Guys,

Just an update... I got the same problem, but, I tried using the debug command stdout (the URI [resource + attrs]) + the headers of that request and I passed it thru curl request, it worked perfectly:

curl 'https://v.whatsapp.net/v2/code?cc=55.......ED%E2eI%E0%3D%3F%CCO' -H 'Accept: text/json' -H 'User-Agent: WhatsApp/2.16.9 S40Version/14.26 Device/Nokia-302'.

The response was: {"status":"sent","length":6,"method":"sms","retry_after":64,"sms_wait":64,"voice_wait":64}.

I received the SMS correctly. But, When I tried to execute the register thru the cli, it raises with the following message:

Traceback (most recent call last):

File "/home/web/.virtualenvs/whatsapp/bin/yowsup-cli", line 5, in
pkg_resources.run_script('yowsup2==2.5.0', 'yowsup-cli')
File "/home/web/.virtualenvs/whatsapp/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 499, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/home/web/.virtualenvs/whatsapp/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 1235, in run_script
execfile(script_filename, namespace, namespace)
File "/home/web/.virtualenvs/whatsapp/lib/python2.7/site-packages/yowsup2-2.5.0-py2.7.egg/EGG-INFO/scripts/yowsup-cli", line 368, in
if not parser.process():
File "/home/web/.virtualenvs/whatsapp/lib/python2.7/site-packages/yowsup2-2.5.0-py2.7.egg/EGG-INFO/scripts/yowsup-cli", line 191, in process
self.handleRegister(self.args["register"], config)
File "/home/web/.virtualenvs/whatsapp/lib/python2.7/site-packages/yowsup2-2.5.0-py2.7.egg/EGG-INFO/scripts/yowsup-cli", line 215, in handleRegister
req = WARegRequest(config["cc"], config["phone"], code)
File "/home/web/.virtualenvs/whatsapp/local/lib/python2.7/site-packages/yowsup2-2.5.0-py2.7.egg/yowsup/registration/regrequest.py", line 35, in init
raise ValueError("You have to request code first")
ValueError: You have to request code first

@jlguardi

This comment has been minimized.

Collaborator

jlguardi commented Oct 22, 2016

@renato-farias You need to create the Id file. This file contains just the Id sent in the code request.
This file I created by yowsup if response of code request is success so you don't have this file. Then, if you try to register with t code yo get w curl, you miss the Id.

@dzfweb

This comment has been minimized.

dzfweb commented Jul 7, 2017

@jlguardi i received the sms code, but when i register it, i get ValueError("You have to request code first")`

i need to manually create an id file?

@jlguardi

This comment has been minimized.

Collaborator

jlguardi commented Jul 8, 2017

@dzfweb you really need the same id file generated while sms was sent. Otherwise register doesn't work. Probably you used other computer or user. Search it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment