401 API Authentication Error

5 views
Skip to first unread message

lorelei

unread,
Nov 28, 2009, 4:26:08 PM11/28/09
to Twitter Development Talk
Hi

We have a program that uses the Twitter API that we wrote and it (used
to) work fine but recently we had to change the computer date we were
calling our program from to 2018 instead of 2009 - this was done as a
temporary test for another application we were running on that same
computer unrelated to Twitter.

Anyway, after we changed the date to 2018 - the Twitter API program
still ran OK but when we then put the date back to 2009 our Twitter
program wont run and is now reporting the following.

The remote server returned an error: (401) Unauthorized.

But when we switch back to 2018 ..it runs fine.

Can anyone shed some light on thsi please ? Is ther some date related
switch we are missing in our Twitter program ?

Thanks !

Raffi Krikorian

unread,
Nov 28, 2009, 6:34:37 PM11/28/09
to twitter-deve...@googlegroups.com
that's intriguing - but you'll have to provide a lot more information:

  • are you using oauth, or basic auth?
  • what endpoints are you calling when you are getting the error?

--
Raffi Krikorian
Twitter Platform Team




JDG

unread,
Nov 29, 2009, 12:32:40 AM11/29/09
to twitter-deve...@googlegroups.com
That's my first bet -- the oauth_timestamps you used when your date is 2018 are newer than the ones you're using now, and that would probably return invalid timestamp / nonce errors.
--
Internets. Serious business.

Mark McBride

unread,
Nov 29, 2009, 7:08:13 PM11/29/09
to twitter-deve...@googlegroups.com
The switch from 2018 back to 2009 shouldn't matter. However if your
clock is behind, we will reject requests. Is the current clock synced
with NTP and on the correct time zone?

---Mark

sanjit

unread,
Dec 5, 2009, 11:30:32 AM12/5/09
to Twitter Development Talk
I am having the same problem, and I agree this is the timestamp
problem. but I am using .net dll file and I am not able to change the
timestamp there. Is there anyway from Twitter site to change the time
span for my application.

On Nov 29, 10:32 am, JDG <ghil...@gmail.com> wrote:
> That's my first bet -- the oauth_timestamps you used when your date is 2018
> are newer than the ones you're using now, and that would probably return
> invalid timestamp / nonce errors.
>
>
>
>
>
> On Sat, Nov 28, 2009 at 16:34, Raffi Krikorian <ra...@twitter.com> wrote:
> > that's intriguing - but you'll have to provide a lot more information:
>
> >    - are you using oauth, or basic auth?
> >    - what endpoints are you calling when you are getting the error?
>
> > Hi
>
> > We have a program that uses the Twitter API that we wrote and it (used
> > to) work fine but recently we had to change the computer date we were
> > calling our program from to 2018 instead of 2009 - this was done as a
> > temporary test for another application we were running on that same
> > computer unrelated to Twitter.
>
> > Anyway, after we changed the date to 2018 - the Twitter API program
> > still ran OK but when we then put the date back to 2009 our Twitter
> > program wont run and is now reporting the following.
>
> > The remote server returned an error: (401) Unauthorized.
>
> > But when we switch back to 2018 ..it runs fine.
>
> > Can anyone shed some light on thsi please ?  Is ther some date related
> > switch we are missing in our Twitter program ?
>
> > Thanks !
>
> > --
> > Raffi Krikorian
> > Twitter Platform Team
> > ra...@twitter.com | @raffi
>
> --
> Internets. Serious business.- Hide quoted text -
>
> - Show quoted text -

Mark McBride

unread,
Dec 5, 2009, 7:07:33 PM12/5/09
to twitter-deve...@googlegroups.com
There is no way to do this. Allowing "old" requests is a security hole.
--
---Mark

http://twitter.com/mccv
Reply all
Reply to author
Forward
0 new messages