Skip to content
This repository has been archived by the owner on Nov 19, 2019. It is now read-only.

not working #13

Open
ratancs opened this issue Sep 28, 2017 · 7 comments
Open

not working #13

ratancs opened this issue Sep 28, 2017 · 7 comments
Labels

Comments

@ratancs
Copy link

ratancs commented Sep 28, 2017

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
Copy link

rakave commented Oct 25, 2017

Facing the same error here...

@ritiek
Copy link
Owner

ritiek commented Oct 25, 2017

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

@ritiek ritiek added the bug label Oct 25, 2017
@rakave
Copy link

rakave commented Oct 26, 2017

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

@fuzunspm
Copy link

how did you solve this issue?

@sansmoraxz
Copy link

Umm is the service working?

@ayushit13
Copy link

is there any solution for above issue ?

@geekyfox90
Copy link

geekyfox90 commented Jul 19, 2018

Any solution ?? or alternative

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

No branches or pull requests

7 participants