Forums / API
401 Unauthorized - Invalid timestamp
Forums
Forum Rules
-
Be nice
Even if you disagree with someone, keep it civil.
-
Stay on topic
If it’s not relevant, leave it out or start a new thread.
-
Don’t Spam
Re-re-re-re-posts drive us crazy.
-
Respect the Staff
We were members once, just like you.
Our Support Team
-
Mark
-
Ian
-
Tommy
-
Darnell
-
Zena
-
Rebecca
We’re here to help 10am–6pm Eastern, Monday–Friday.
Nimal S
I am using the vimeo-php-lib and for the $vimeo->getRequestToken() request I get the following response.
Array ( [401_Unauthorized_-_Invalid_timestamp_-_The_oauth_timestamp_passed_is_either_too_far_in_the_past_or_in_the_future__Vimeo_thinks_the_current_time_is_1266433918] => )
The request url is vimeo.com/oauth/request_token?oauth_consumer_key=6c418e14997b3eff0406b52a68e1df10&oauth_version=1.0&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1266434155&oauth_nonce=6893478ae265559ce8a617d094f407fc&oauth_callback=oob&oauth_signature=NCpKCpzlL6PONrt9pH91tatpZu4%3D&format=php
I've been trying to figure out what's wrong, but I haven't been able to solve it. The timestamp on the request seems to be correct and not very different from the one on the response.
Please help me on this as I'm new to using vimeo API.
Thanks.
Brad Dougherty Staff
Most likely your server's time is incorrect. We only accept timestamps that are within a specific range close to the current time.
Everton Rosa Associados Plus
time server incorrect? my server is hosted in Brazil, the API don´t have a control of the midgap between the countries?
sabih hida Tahir
so what is the range than?
Brad Dougherty Staff
Within a couple minutes.
sabih hida Tahir
thanks one more issue is i have got this error while uploading Encountered an API error -- code 302 - Invalid / expired token
Nimal S
Thanks Brad for the quick reply...
I'll see how I can fix that (won't be able to change the server's time, but I think I'll be able to change the timestamp sent in the request).
Nimal S
I was able to fix this by manually adding 3 seconds to the server time and then it works...!
Scott Arneill
Hi I'm having this issue trying to upload a video I just made on iMovie....I don't even know what you mean by 'server timestamp'. Is there any way to just let me upload the video?
Brad Dougherty Staff
Hi Scott,
Can you make sure that your system time is correct?
Patricium Films Plus
Not sure what they mean by "correct" but I was having the "o_auth_timestamp error" that said the time was incorrect and all I did was went in to System Pref on my MacBook and set the time to auto update "Apple time" and it worked. The difference was literally 4 mins from what was there when I manually set it, but it worked straight away after making that adjustment. Hope this helps someone!
Rip City to Seoul
Man, your advice was perfect. thanks!
Christian Parkinson
I've just had to do the same thing - I thought I was fairly net savvy but this one threw me! Thanks for "apple time" tip
John Deblois
I love all of you especially to the guy who brought this problem up and to everyone who helped solve it. You guys are all the best. Life is good.
iaegorova
Perfect! Patricium Films, thanks a lot!!!
Helen Jackson
401 Unauthorized - Invalid timestamp - The oauth_timestamp passed is either too far in the past or in the future. Vimeo thinks the current time is 1323271395
when i try to upload from iMovie. I have changed the system time to apple time and still no joy. I am trying to upload my students work - any advice?
bbnnt Plus
Great to end up on this one… was so stuck !
To mention, as tumblr dev might be close to the vimeo one, this issue solved the problem for accessing this other provider too.
Johnno Johnston Plus
Apple time tip worked for me ! Thanks.