Skip to content

Google and Yahoo contact importer no longer works #3

@techgeekssoftech

Description

@techgeekssoftech

First, thank you very much for this code

Yahoo Error:

Exception at /contact-import/

Cannot retrieve a contact list

----After Debugging Issue found which is guid gets None value---

guid is None,
get_guid_url = 'http://social.yahooapis.com/v1/me/guid?format=json'
gives 404 in response message......
so that
get_contacts_url = 'http://social.yahooapis.com/v1/user/None/contacts?format=json'
This above url cause the Exception ..... because of None...

Google Error:

TypeError at /contact-import/
sha1() argument 1 must be string or buffer, not None
Request Method: GET
Request URL: http://localhost:8000/contact-import/?service=google
Django Version: 1.7.11
Exception Type: TypeError
Exception Value:
sha1() argument 1 must be string or buffer, not None
Exception Location: /home/vimal/Python/projects/djangoEasyFriends/venv/src/python-oauth2/oauth2/init.py in sign_request, line 491
Python Executable: /home/vimal/Python/DemoProjects/def/venv/bin/python
Python Version: 2.7.12

projects/djangoEasyFriends/venv/src/python-oauth2/oauth2/init.py in sign_request
self['oauth_body_hash'] = base64.b64encode(sha1(self.body).digest())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions