[twitter-dev] Invalid signature

2011-04-15 Thread nite21
Hi Guys

I am getting an invalid oauth signature error
my url is this

https://api.twitter.com/statuses/update.xml?oauth_consumer_key=iVjNcp1YHbQJMzmrpEaNgoauth_nonce=1184941015oauth_signature=Hndgqkow8z29ltlAir05uyYRuE0%3Doauth_signature_method=HMAC-SHA1oauth_timestamp=1302856754oauth_token=53616715-lJvGpHoGgxWqvHFDUM0eanKUqHtNx3Wcc6sh8Bgcistatus=HiAll

Will u help me out with this error thanks

Regards
Nite

-- 
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] Invalid signature

2011-04-15 Thread Taylor Singletary
If you're trying to POST a status update, then you need to use the HTTP POST
method. Further, you should place the API-related data in the POST body of
the request instead of the query string (in other words, your status=HiAll
shouldn't be in the query string).

There are many reasons your signature may be invalid -- how are you
generating your signature? Are you using an OAuth library?

If at all possible, I recommend using HTTP header-based OAuth instead of
putting your oauth_* parameters on the query string: it separates concerns
and makes debugging these scenarios much easier.

@episod http://twitter.com/episod - Taylor Singletary


On Fri, Apr 15, 2011 at 2:03 AM, nite21 shanebond1...@gmail.com wrote:

 Hi Guys

 I am getting an invalid oauth signature error
 my url is this


 https://api.twitter.com/statuses/update.xml?oauth_consumer_key=iVjNcp1YHbQJMzmrpEaNgoauth_nonce=1184941015oauth_signature=Hndgqkow8z29ltlAir05uyYRuE0%3Doauth_signature_method=HMAC-SHA1oauth_timestamp=1302856754oauth_token=53616715-lJvGpHoGgxWqvHFDUM0eanKUqHtNx3Wcc6sh8Bgcistatus=HiAll

 Will u help me out with this error thanks

 Regards
 Nite

 --
 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


[twitter-dev] Invalid signature - but it's fine

2010-06-22 Thread Tom
Hi all,

I'm trying to write a simple Twitter client but so far I'm not making
a lot of progress.

I already got as far as retrieving the timeline, but I seem to be
unable to sign the request. When I re-calculate the signature with a
different application, it's exactly the same. Yet Twitter reports that
it's wrong! (Incorrect signature with a 401 error)

Of course, I'm using a proper secret and not the one below, but that
one was used to calculate the signature for the request below.

Can anyone confirm that I'm using the proper signature? Information is
below.

Debug information :
URL: http://api.twitter.com/1/statuses/home_timeline.json
Token: 18911703-HjjtYklryN9C99pfTiXWs52PvEqrfabluLCdh5IJU
Customer key: QetEw0FtIfvaNyBfgxRYmw
Secret: this_has_been_used_as_the_secret
Nonce: jOzrZNZtsGFLftfjJpdiOfjYtgvNFzWPPXIOKHKE
Time: 1277230019
Version: 1.0

Signature: aiUvshdfeRz2Z6G6a9DkYDbXJEc=
Str1: GEThttp%3A%2F%2Fapi.twitter.com%2F1%2Fstatuses
%2Fhome_timeline.jsonoauth_consumer_key%3DQetEw0FtIfvaNyBfgxRYmw
%26oauth_nonce%3DjOzrZNZtsGFLftfjJpdiOfjYtgvNFzWPPXIOKHKE
%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp
%3D1277230019%26oauth_token%3D18911703-
HjjtYklryN9C99pfTiXWs52PvEqrfabluLCdh5IJU%26oauth_version%3D1.0
Str2: OAuth oauth_signature=aiUvshdfeRz2Z6G6a9DkYDbXJEc%3D,
oauth_version=1.0, oauth_signature_method=HMAC-SHA1,
oauth_nonce=jOzrZNZtsGFLftfjJpdiOfjYtgvNFzWPPXIOKHKE,
oauth_consumer_key=QetEw0FtIfvaNyBfgxRYmw,
oauth_timestamp=1277230019, oauth_token=18911703-
HjjtYklryN9C99pfTiXWs52PvEqrfabluLCdh5IJU
No post body.

Tom


Re: [twitter-dev] Invalid signature - but it's fine

2010-06-22 Thread Taylor Singletary
Hi Tom,

I'm happy to help diagnose this, but need a couple pieces more information
-- you may want to use more fake details to make this process easy for me
to replicate -- in addition to the access token, the access token secret
would be necessary to recreate this request (are you utilizing the access
token secret when generating your signature?)

Your signature base string and authorization header look otherwise correct.

Taylor



On Tue, Jun 22, 2010 at 11:12 AM, Tom allerleiga...@gmail.com wrote:

 Hi all,

 I'm trying to write a simple Twitter client but so far I'm not making
 a lot of progress.

 I already got as far as retrieving the timeline, but I seem to be
 unable to sign the request. When I re-calculate the signature with a
 different application, it's exactly the same. Yet Twitter reports that
 it's wrong! (Incorrect signature with a 401 error)

 Of course, I'm using a proper secret and not the one below, but that
 one was used to calculate the signature for the request below.

 Can anyone confirm that I'm using the proper signature? Information is
 below.

 Debug information :
 URL: http://api.twitter.com/1/statuses/home_timeline.json
 Token: 18911703-HjjtYklryN9C99pfTiXWs52PvEqrfabluLCdh5IJU
 Customer key: QetEw0FtIfvaNyBfgxRYmw
 Secret: this_has_been_used_as_the_secret
 Nonce: jOzrZNZtsGFLftfjJpdiOfjYtgvNFzWPPXIOKHKE
 Time: 1277230019
 Version: 1.0

 Signature: aiUvshdfeRz2Z6G6a9DkYDbXJEc=
 Str1: GEThttp%3A%2F%2Fapi.twitter.com%2F1%2Fstatuses
 %2Fhome_timeline.jsonoauth_consumer_key%3DQetEw0FtIfvaNyBfgxRYmw
 %26oauth_nonce%3DjOzrZNZtsGFLftfjJpdiOfjYtgvNFzWPPXIOKHKE
 %26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp
 %3D1277230019%26oauth_token%3D18911703-
 HjjtYklryN9C99pfTiXWs52PvEqrfabluLCdh5IJU%26oauth_version%3D1.0
 Str2: OAuth oauth_signature=aiUvshdfeRz2Z6G6a9DkYDbXJEc%3D,
 oauth_version=1.0, oauth_signature_method=HMAC-SHA1,
 oauth_nonce=jOzrZNZtsGFLftfjJpdiOfjYtgvNFzWPPXIOKHKE,
 oauth_consumer_key=QetEw0FtIfvaNyBfgxRYmw,
 oauth_timestamp=1277230019, oauth_token=18911703-
 HjjtYklryN9C99pfTiXWs52PvEqrfabluLCdh5IJU
 No post body.

 Tom



Re: [twitter-dev] Invalid signature - but it's fine

2010-06-22 Thread Dustin Shea

I'm having the same issue with my client.

Debug information:
URL: http://api.twitter.com/1/statuses/home_timeline.json
Oauth Token: 6339722-C6ciVM1DS5dsbezoxX25K2DM0LDysexMD0QDm28s
Oauth Token Secret: XRLC2XcJ1gpPd3qyOHR9szIWs1OXMOkY3NljpM36Vo
Consumer Key: CabFljpBvebzTnWpsUtw
Consumer Secret: what_is_on_my_app_page
Nonce: 88c65140bb4caeb02264c1c02dcd5e3a44c1e7cb
Time: 1277241300
Version: 1.0
Signature: FuB86c97j9VBnbC7JmJzqbRwBOQ%3D

I'll see what I can do about providing you any more information you may require.

-Dustin
(Demonicpagan on Twitter)

On 6/22/2010 1:12 PM, Tom wrote:

Hi all,

I'm trying to write a simple Twitter client but so far I'm not making
a lot of progress.

I already got as far as retrieving the timeline, but I seem to be
unable to sign the request. When I re-calculate the signature with a
different application, it's exactly the same. Yet Twitter reports that
it's wrong! (Incorrect signature with a 401 error)

Of course, I'm using a proper secret and not the one below, but that
one was used to calculate the signature for the request below.

Can anyone confirm that I'm using the proper signature? Information is
below.

Debug information :
URL: http://api.twitter.com/1/statuses/home_timeline.json
Token: 18911703-HjjtYklryN9C99pfTiXWs52PvEqrfabluLCdh5IJU
Customer key: QetEw0FtIfvaNyBfgxRYmw
Secret: this_has_been_used_as_the_secret
Nonce: jOzrZNZtsGFLftfjJpdiOfjYtgvNFzWPPXIOKHKE
Time: 1277230019
Version: 1.0

Signature: aiUvshdfeRz2Z6G6a9DkYDbXJEc=
Str1: GEThttp%3A%2F%2Fapi.twitter.com%2F1%2Fstatuses
%2Fhome_timeline.jsonoauth_consumer_key%3DQetEw0FtIfvaNyBfgxRYmw
%26oauth_nonce%3DjOzrZNZtsGFLftfjJpdiOfjYtgvNFzWPPXIOKHKE
%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp
%3D1277230019%26oauth_token%3D18911703-
HjjtYklryN9C99pfTiXWs52PvEqrfabluLCdh5IJU%26oauth_version%3D1.0
Str2: OAuth oauth_signature=aiUvshdfeRz2Z6G6a9DkYDbXJEc%3D,
oauth_version=1.0, oauth_signature_method=HMAC-SHA1,
oauth_nonce=jOzrZNZtsGFLftfjJpdiOfjYtgvNFzWPPXIOKHKE,
oauth_consumer_key=QetEw0FtIfvaNyBfgxRYmw,
oauth_timestamp=1277230019, oauth_token=18911703-
HjjtYklryN9C99pfTiXWs52PvEqrfabluLCdh5IJU
No post body.

Tom


--
This message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system. E-mail transmission cannot be guaranteed to be 
secure or error-free as information could be intercepted, corrupted, lost, 
destroyed, arrive late or incomplete, or contain viruses. The sender therefore 
does not accept liability for any errors or omissions in the contents of this 
message, which arise as a result of e-mail transmission.


Re: [twitter-dev] Invalid Signature Request when POST - ing

2009-12-12 Thread Harshad RJ
For the benefit of the list:

I had an exchange with Mark off-list (because of OAuth credentials). One of
the errors turned out to be in my app itself. The other is not
confirmed/reproducible at this time.


On Sat, Dec 12, 2009 at 11:40 AM, Mark McBride mmcbr...@twitter.com wrote:

 Could I get a complete dump of the HTTP conversation, including
 headers and body for the request and response?



-- 
Harshad RJ
http://hrj.wikidot.com


[twitter-dev] Invalid Signature Request when POST - ing

2009-12-11 Thread Clemente Gomez
I have been getting my head wrapped around OAuth and have finally got
enough understanding to pull data from Twitter. It seems as though all
of my GET calls work, but when I try to POST data ( update status) I
get

?xml version=1.0 encoding=UTF-8?
hash
request/statuses/update.xml?oauth_consumer_key=CENSORED?
oauth_consumer_key=CENSOREDoauth_nonce=CENSOREDoauth_signature=CENSORED=oauth_signature_method=HMAC-
SHA1oauth_timestamp=1260564383/request
errorIncorrect signature/error
/hash

I thought maybe the library I was using was incorrect in creating the
signature but after going to 
http://hueniverse.com/2008/10/beginners-guide-to-oauth-part-iv-signing-requests/
and filling in the areas, the signature is exactly the same in my
output as that page.

With that I am kind of lost as to why it isn't working. Anyone have
any ideas??


Re: [twitter-dev] Invalid Signature Request when POST - ing

2009-12-11 Thread Harshad RJ
I have started getting this error too (I think they are related). In the
response to the POST I see this:
errorinvalid / used nonce/error

The nonce value used was:
XEl7Q8

GET requests are working fine. And the exact same application works fine
with a different OAuth account (even with POST).


On Sat, Dec 12, 2009 at 2:56 AM, Clemente Gomez zomeg...@gmail.com wrote:

 I have been getting my head wrapped around OAuth and have finally got
 enough understanding to pull data from Twitter. It seems as though all
 of my GET calls work, but when I try to POST data ( update status) I
 get

 ?xml version=1.0 encoding=UTF-8?
 hash
 request/statuses/update.xml?oauth_consumer_key=CENSORED?

 oauth_consumer_key=CENSOREDoauth_nonce=CENSOREDoauth_signature=CENSORED=oauth_signature_method=HMAC-
 SHA1oauth_timestamp=1260564383/request
 errorIncorrect signature/error
 /hash

 I thought maybe the library I was using was incorrect in creating the
 signature but after going to
 http://hueniverse.com/2008/10/beginners-guide-to-oauth-part-iv-signing-requests/
 and filling in the areas, the signature is exactly the same in my
 output as that page.

 With that I am kind of lost as to why it isn't working. Anyone have
 any ideas??




-- 
Harshad RJ
http://hrj.wikidot.com


Re: [twitter-dev] Invalid Signature Request when POST - ing

2009-12-11 Thread Mark McBride
Could I get a complete dump of the HTTP conversation, including
headers and body for the request and response?

On Fri, Dec 11, 2009 at 9:28 PM, Harshad RJ harshad...@gmail.com wrote:
 I have started getting this error too (I think they are related). In the
 response to the POST I see this:
 errorinvalid / used nonce/error
 The nonce value used was:
 XEl7Q8
 GET requests are working fine. And the exact same application works fine
 with a different OAuth account (even with POST).

 On Sat, Dec 12, 2009 at 2:56 AM, Clemente Gomez zomeg...@gmail.com wrote:

 I have been getting my head wrapped around OAuth and have finally got
 enough understanding to pull data from Twitter. It seems as though all
 of my GET calls work, but when I try to POST data ( update status) I
 get

 ?xml version=1.0 encoding=UTF-8?
 hash
 request/statuses/update.xml?oauth_consumer_key=CENSORED?

 oauth_consumer_key=CENSOREDoauth_nonce=CENSOREDoauth_signature=CENSORED=oauth_signature_method=HMAC-
 SHA1oauth_timestamp=1260564383/request
 errorIncorrect signature/error
 /hash

 I thought maybe the library I was using was incorrect in creating the
 signature but after going to
 http://hueniverse.com/2008/10/beginners-guide-to-oauth-part-iv-signing-requests/
 and filling in the areas, the signature is exactly the same in my
 output as that page.

 With that I am kind of lost as to why it isn't working. Anyone have
 any ideas??



 --
 Harshad RJ
 http://hrj.wikidot.com




-- 
   ---Mark

http://twitter.com/mccv


[twitter-dev] Invalid Signature when manipulating URL directly

2009-10-27 Thread whomba

Hello all.  I just recently started using the twitter API and oAuth
for a site I am working on.  After wrapping my head around oAuth
things seemed to be going well.  Out of the 12 components of the
library i am using, 8 worked right off the bat. Unfortunately, methods
where I change the URL, then post to it seem to be breaking, resulting
an invalid signature response.  I am able to successfully post a new
status, get timelines and grab direct messages, so I am fairly
confident that my oAuth lib is working

my URL is constructed as follows (replaced the '' with new lines for
readiblity):
[POST-ing]
http://www.twitter.com/statuses/destroy/5206890175.xml?
oauth_consumer_key=Y6AmNZPU23AOQLwCSmevQ
oauth_nonce=ret3uSMFONY
oauth_signature=QBzS8c51wJE6KuHG8XjlmrzL2Ko%3D
oauth_signature_method=HMAC-SHA1
oauth_timestamp=1256668802
oauth_token=83934696-9mlDot0sC1YbL2907BopkexMJwAFR8WdZojMJCmC1
oauth_version=1.0

This results in the aforementioned error.  Am I suppose to use a
different URL when I encode it?

I appreciate the assistance, this is my first time working with oAuth,
and I am a still a bit fuzy.


[twitter-dev] Invalid signature when calling request_token

2009-05-19 Thread Ross Burton

Hi,

I'm porting my HTTP authentication based twitter client to OAuth, and
am having problems constructing a signed call to request_token that
twitter.com will accept.  The OAuth implementation has successfully
worked with two different sample servers and MySpace, so I don't think
I'm hitting any underlying bugs in my code.  That said, the OAuth
specification skims over encoding so it's possible that there is an
incompatibility.

This is what happens:

 GET 
 /oauth/request_token?oauth%5Fconsumer%5Fkey=sPHnVfjaW22jHcGYyHCFAoauth%5Fsignature=zRmErZcLje9Nns2VEtsyRwzztQE%3Doauth%5Fsignature%5Fmethod=HMAC%2DSHA1oauth%5Fnonce=1276674971oauth%5Ftimestamp=1242721670oauth%5Fversion=1%2E0
  HTTP/1.1
 Soup-Debug-Timestamp: 1242721670
 Soup-Debug: SoupSessionAsync 1 (0x8f315b8), SoupMessage 1 (0x901d868), 
 SoupSocket 1 (0x902f820)
 Host: twitter.com

 HTTP/1.1 401 Unauthorized
 Soup-Debug-Timestamp: 1242721670
 Soup-Debug: SoupMessage 1 (0x901d868)
 Date: Tue, 19 May 2009 08:27:51 GMT
 Server: hi
 Last-Modified: Tue, 19 May 2009 08:27:51 GMT
 Status: 401 Unauthorized
 Pragma: no-cache
 Cache-Control: no-cache, no-store, must-revalidate, pre-check=0,
post-check=0
 Content-Type: text/html; charset=utf-8
 Content-Length: 44
 Expires: Tue, 31 Mar 1981 05:00:00 GMT
 X-Revision: 0056844fe50774f758d59f4d2931e6b31ccbf68f
 X-Transaction: 1242721671-71519-1029
 Set-Cookie:
_twitter_sess=BAh7BzoHaWQiJTkxZTYyNWM2OWMxZWIwMGE3MDczYTI1MTUzMjIwNDE2Igpm
%250AbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAG
%250AOgpAdXNlZHsA--32fb8d8fe9b5a3845060194eb2160f14fe9114c8;
domain=.twitter.com; path=/
 Vary: Accept-Encoding
 Connection: close

 Failed to validate oauth signature and token

Anyone got any good ideas?  I'm hoping that this isn't an encoding
problem...

Cheers,
Ross