ritiek / trunofficial

[NOT WORKING ANYMORE!] Unofficial API to the Truecaller phone number search
MIT License
16 stars 7 forks source link

not working #13

Open ratancs opened 7 years ago

ratancs commented 7 years ago

For given example

trunofficial 2024561111

`

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/trunofficial/trunofficial.py", line 148, in __init__
    self.phone = _Phone(phone_parsed)
  File "/usr/local/lib/python3.5/dist-packages/trunofficial/trunofficial.py", line 171, in __init__
    self.national = phone['nationalFormat']
KeyError: 'nationalFormat'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/trunofficial", line 11, in <module>
    sys.exit(command_line())
  File "/usr/local/lib/python3.5/dist-packages/trunofficial/trunofficial.py", line 113, in command_line
    owner = search(number, cc=cc)
  File "/usr/local/lib/python3.5/dist-packages/trunofficial/trunofficial.py", line 35, in search
    results = _Attributes(response)
  File "/usr/local/lib/python3.5/dist-packages/trunofficial/trunofficial.py", line 166, in __init__
    six.raise_from(TruecallerError("Cannot find the number in Truecaller database, " + str(self.phone.number) + '.'), None)
AttributeError: '_Attributes' object has no attribute 'phone'

`

rakave commented 7 years ago

Facing the same error here...

ritiek commented 7 years ago

I am not entirely sure but it seems like Truecaller servers are blocking our requests.

rakave commented 7 years ago

Could it be because truecaller changed its endpoint from "http://api4.truecaller.com/v1/key" , to "https://api4.truecaller.com/v1/key"

fuzunspm commented 6 years ago

how did you solve this issue?

sansmoraxz commented 6 years ago

Umm is the service working?

ayushit13 commented 6 years ago

is there any solution for above issue ?

geekyfox90 commented 6 years ago

Any solution ?? or alternative