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

Bad Request (400) #202

Closed
roudger opened this issue Apr 7, 2019 · 3 comments · Fixed by #218
Closed

Bad Request (400) #202

roudger opened this issue Apr 7, 2019 · 3 comments · Fixed by #218

Comments

@roudger
Copy link

roudger commented Apr 7, 2019

Since a few months, I can not recover contacts from iCloud:

python3 iCloudContactsToFile.py
Traceback (most recent call last):
File "iCloudContactsToFile.py", line 15, in
addressbook = api.contacts.all()
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pyicloud-0.9.1-py3.5.egg/pyicloud/services/contacts.py", line 52, in all
self.refresh_client()
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pyicloud-0.9.1-py3.5.egg/pyicloud/services/contacts.py", line 41, in refresh_client
self.session.post(self._contacts_changeset_url, params=params_refresh)
File "/Users/benjamin/Library/Python/3.5/lib/python/site-packages/requests/sessions.py", line 581, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pyicloud-0.9.1-py3.5.egg/pyicloud/base.py", line 99, in request
raise api_error
pyicloud.exceptions.PyiCloudAPIResponseError: Bad Request (400)

How can I diagnose?
Thanks

@ghost
Copy link

ghost commented Apr 18, 2019

hi, budy, are u solved this problem?

@roudger
Copy link
Author

roudger commented Apr 18, 2019 via email

@sameerbarretto
Copy link

I'm getting the same thing if I make a call to api.contacts.all().
I'm unable to figure out how to access this api.contacts object.

>>> api.contacts
<pyicloud.services.contacts.ContactsService object at 0x10>

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

Successfully merging a pull request may close this issue.

2 participants