Skip to content
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

International number is not considered valid #92

Closed
MoonWatcher582 opened this issue Feb 6, 2017 · 3 comments
Closed

International number is not considered valid #92

MoonWatcher582 opened this issue Feb 6, 2017 · 3 comments
Labels

Comments

@MoonWatcher582
Copy link

MoonWatcher582 commented Feb 6, 2017

Despite the demo showing that the phone number +972559416222 is a valid number, version 8.2.0 of the python library's is_valid_number returns false for this number.

Demo result can be seen here: https://libphonenumber.appspot.com/phonenumberparser?number=%2B972559416222&country=US

@daviddrysdale
Copy link
Owner

Works for me:

Python 2.7.6 (default, Oct 26 2016, 20:30:19) 
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import phonenumbers
>>> x = phonenumbers.parse("+972559416222", "US")
>>> phonenumbers.is_valid_number(x)
True
>>> phonenumbers.__version__
'8.2.0'

What's your platform/Python version etc.?

@MoonWatcher582
Copy link
Author

Thank you for the quick reply! Fortunately, it looks like this was a configuration issue on our end.

@gabn88
Copy link

gabn88 commented Dec 1, 2019

Could you please elaborate what the issue was? Having the same issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants