[twitter-dev] xAuth - sometimes success response, sometimes Error-response

2010-10-05 Thread andy
Hello,

I´m using xAuth in an ActionScript 3.0 Project.
I still have problems that I sometimes get a successful response, and
a couple of times a faulty response.
If I get a bad response, then I have the HTTP status code 401 with
following error message:
Failed to validate oauth signature and token

The values that are different are the oAuth_nonce and oAuth_timestamp.
The oAuth_nonce is determined by a random number. This is determined
by the uuid of the current date. Subcontent special characters such
as: - removed. Such uuid should be unique. I wonder why I for similar
calculations of the nonce, etc. sometimes successful and sometimes get
a bad response!

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] xAuth - sometimes success response, sometimes Error-response

2010-10-05 Thread Taylor Singletary
It's likely not the nonce that is invalid in this case -- or the timestamp.

In this case, the error specifically is indicating that it couldn't validate
the request.

Does the alternate 401 vs success happen with the exact same credentials, or
are you using different credentials?

Taylor

On Mon, Oct 4, 2010 at 11:41 PM, andy andreas-wilkeme...@andreazw.dewrote:

 Hello,

 I´m using xAuth in an ActionScript 3.0 Project.
 I still have problems that I sometimes get a successful response, and
 a couple of times a faulty response.
 If I get a bad response, then I have the HTTP status code 401 with
 following error message:
 Failed to validate oauth signature and token

 The values that are different are the oAuth_nonce and oAuth_timestamp.
 The oAuth_nonce is determined by a random number. This is determined
 by the uuid of the current date. Subcontent special characters such
 as: - removed. Such uuid should be unique. I wonder why I for similar
 calculations of the nonce, etc. sometimes successful and sometimes get
 a bad response!

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk