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

failed to raise DailymotionTokenExpired #28

Open
AndCycle opened this issue Feb 9, 2017 · 0 comments
Open

failed to raise DailymotionTokenExpired #28

AndCycle opened this issue Feb 9, 2017 · 0 comments

Comments

@AndCycle
Copy link

AndCycle commented Feb 9, 2017

just hit this,

I write a small upload script to batch upload my video,
as those video always exceed the limit,
so I put it into a simple loop to wait for 24hrs if it hits the limitation,

original thought I should refresh the token manually at first place,
but def call do try to catch this and refresh it.

Traceback (most recent call last):
  File "/mnt/mess0/public/tmp/dailymotion_upload/go.py", line 79, in <module>
    main()
  File "/mnt/mess0/public/tmp/dailymotion_upload/go.py", line 46, in main
    r = dm.get('/user/me/videos', params={'fields': 'updated_time,duration', 'created_after': int(time.time()-24*60*60), 'limit': 100})
  File "/mnt/mess0/public/tmp/dailymotion_upload/runtime/lib/python2.7/site-packages/dailymotion.py", line 321, in get
    return self.call(endpoint, params=params)
  File "/mnt/mess0/public/tmp/dailymotion_upload/runtime/lib/python2.7/site-packages/dailymotion.py", line 334, in call
    return self.request(endpoint, method, params, files)
  File "/mnt/mess0/public/tmp/dailymotion_upload/runtime/lib/python2.7/site-packages/dailymotion.py", line 425, in request
    raise DailymotionAuthError(msg, error_type='auth_error')
dailymotion.DailymotionAuthError: auth_error: The access token has expired.

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

No branches or pull requests

1 participant