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

Getting some error: Invalid global session #29

Closed
BuSHari opened this issue Aug 26, 2017 · 1 comment
Closed

Getting some error: Invalid global session #29

BuSHari opened this issue Aug 26, 2017 · 1 comment

Comments

@BuSHari
Copy link

BuSHari commented Aug 26, 2017

Hello,

I'm getting an error 'Invalid global session' every time the downloader is reaching 100-200 photos.
I'm running it on my Synology Nas.

here is the 'Invalid global session' error

Downloading /volume1/Photo/iPhone-Backup/Idan-test/2017/07/24/IMG_7747-original.JPG:   4%| | 300/7346 [1:27:59<60:36:5        3, 30.97s/it]Traceback (most recent call last):
  File "/volume1/homes/BuSHari/iCloudDownloader/icloud_photos_downloader/download_photos.py", line 231, in <module>
    download()
  File "/usr/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/volume1/homes/BuSHari/iCloudDownloader/icloud_photos_downloader/download_photos.py", line 87, in download
    for photo in progress_bar:
  File "/usr/lib/python2.7/site-packages/tqdm/_tqdm.py", line 872, in __iter__
    for obj in iterable:
  File "/usr/lib/python2.7/site-packages/pyicloud/services/photos.py", line 281, in photos
    headers={'Content-type': 'text/plain'}
  File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 518, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/usr/lib/python2.7/site-packages/pyicloud/base.py", line 100, in request
    self._raise_error(code, reason)
  File "/usr/lib/python2.7/site-packages/pyicloud/base.py", line 122, in _raise_error
    raise api_error
pyicloud.exceptions.PyiCloudAPIResponseError: Invalid global session
@BuSHari BuSHari changed the title I`m getting some errors: (Invalid global session, Connection reset by peer) Getting some errors: (Invalid global session, Connection reset by peer) Aug 26, 2017
@BuSHari BuSHari changed the title Getting some errors: (Invalid global session, Connection reset by peer) Getting some error: Invalid global session Sep 3, 2017
@ndbroadbent
Copy link
Collaborator

Hello, sorry this is happening! This project is just a small wrapper around the pyicloud library, so it might be better to post an issue over there.

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

No branches or pull requests

2 participants