[twitter-dev] 401 unauthorized error
Hi~ I'm developing the twitter application with Android. For posting twitpic data, I use Oauth echo, but I'v got 401 error. Could not authentication you. (header rejected by twitter) Oauth header POST /2/upload.xml HTTP 1.1 x-auth-service-provider: https://api.twitter.com/1/account/verify_credentials.xml x-verify-credentials-authorization: Oauth realm="http:// api.twitter.com", oauth_consumer_key="a", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1212", oauth_nonce="123123", oauth_version="1.0", oauth_token="user_oauth_token" . What is the problem? I have spent for a week. --;
Re: [twitter-dev] 401 - Unauthorized error when diacritics in status
I think it is the way that .Net handles encoding of the diacritics. I don't think it's a Twitter api issue. I was hoping that another .Net developer had run into this issue and had fixed it. Ryan On Tue, Feb 23, 2010 at 2:07 PM, Raffi Krikorian wrote: > this would be news to me - if you have a way to replicate this, and you are > confident its not your oauth libraries, then please let me know. > > > On Tue, Feb 23, 2010 at 11:04 AM, Ryan Alford wrote: > >> I believe it has been fixed in some libraries in other programming >> languages, but I can't figure out how to do it in .Net. >> >> Ryan >> >> >> On Tue, Feb 23, 2010 at 12:38 PM, Aral Balkan wrote: >> >>> Ooh, if this is the case then it will definitely stop me from using oAuth >>> for Feathers (http://feathersapp.com) since diacritics are an essential >>> part of Unicode art. >>> >>> Very interested in hearing what you find out. >>> >>> All the best, >>> Aral >>> >>> >>> On Tue, Feb 23, 2010 at 1:44 PM, eclipsed4utoo >>> wrote: >>> I am getting an error message when posting accent marks and other diacritics in a status update. I saw that there was an issue [1] posted in April of last year about this problem. It seems to be with the signature generation for OAuth with the encoding of accent marks. I am using .Net(C#), and I can't figure out how to fix this. Do I use a different encoding? Anybody have any ideas on how to fix this in .Net? [1] - http://code.google.com/p/twitter-api/issues/detail?id=433 Ryan >>> >>> >> > > > -- > Raffi Krikorian > Twitter Platform Team > http://twitter.com/raffi >
Re: [twitter-dev] 401 - Unauthorized error when diacritics in status
this would be news to me - if you have a way to replicate this, and you are confident its not your oauth libraries, then please let me know. On Tue, Feb 23, 2010 at 11:04 AM, Ryan Alford wrote: > I believe it has been fixed in some libraries in other programming > languages, but I can't figure out how to do it in .Net. > > Ryan > > > On Tue, Feb 23, 2010 at 12:38 PM, Aral Balkan wrote: > >> Ooh, if this is the case then it will definitely stop me from using oAuth >> for Feathers (http://feathersapp.com) since diacritics are an essential >> part of Unicode art. >> >> Very interested in hearing what you find out. >> >> All the best, >> Aral >> >> >> On Tue, Feb 23, 2010 at 1:44 PM, eclipsed4utoo >> wrote: >> >>> I am getting an error message when posting accent marks and other >>> diacritics in a status update. >>> >>> I saw that there was an issue [1] posted in April of last year about >>> this problem. It seems to be with the signature generation for OAuth >>> with the encoding of accent marks. >>> >>> I am using .Net(C#), and I can't figure out how to fix this. Do I use >>> a different encoding? Anybody have any ideas on how to fix this >>> in .Net? >>> >>> [1] - http://code.google.com/p/twitter-api/issues/detail?id=433 >>> >>> Ryan >>> >> >> > -- Raffi Krikorian Twitter Platform Team http://twitter.com/raffi
Re: [twitter-dev] 401 - Unauthorized error when diacritics in status
I believe it has been fixed in some libraries in other programming languages, but I can't figure out how to do it in .Net. Ryan On Tue, Feb 23, 2010 at 12:38 PM, Aral Balkan wrote: > Ooh, if this is the case then it will definitely stop me from using oAuth > for Feathers (http://feathersapp.com) since diacritics are an essential > part of Unicode art. > > Very interested in hearing what you find out. > > All the best, > Aral > > > On Tue, Feb 23, 2010 at 1:44 PM, eclipsed4utoo wrote: > >> I am getting an error message when posting accent marks and other >> diacritics in a status update. >> >> I saw that there was an issue [1] posted in April of last year about >> this problem. It seems to be with the signature generation for OAuth >> with the encoding of accent marks. >> >> I am using .Net(C#), and I can't figure out how to fix this. Do I use >> a different encoding? Anybody have any ideas on how to fix this >> in .Net? >> >> [1] - http://code.google.com/p/twitter-api/issues/detail?id=433 >> >> Ryan >> > >
Re: [twitter-dev] 401 - Unauthorized error when diacritics in status
Ooh, if this is the case then it will definitely stop me from using oAuth for Feathers (http://feathersapp.com) since diacritics are an essential part of Unicode art. Very interested in hearing what you find out. All the best, Aral On Tue, Feb 23, 2010 at 1:44 PM, eclipsed4utoo wrote: > I am getting an error message when posting accent marks and other > diacritics in a status update. > > I saw that there was an issue [1] posted in April of last year about > this problem. It seems to be with the signature generation for OAuth > with the encoding of accent marks. > > I am using .Net(C#), and I can't figure out how to fix this. Do I use > a different encoding? Anybody have any ideas on how to fix this > in .Net? > > [1] - http://code.google.com/p/twitter-api/issues/detail?id=433 > > Ryan >
[twitter-dev] 401 - Unauthorized error when diacritics in status
I am getting an error message when posting accent marks and other diacritics in a status update. I saw that there was an issue [1] posted in April of last year about this problem. It seems to be with the signature generation for OAuth with the encoding of accent marks. I am using .Net(C#), and I can't figure out how to fix this. Do I use a different encoding? Anybody have any ideas on how to fix this in .Net? [1] - http://code.google.com/p/twitter-api/issues/detail?id=433 Ryan
[twitter-dev] 401 Unauthorized error while posting status with Unicode characters (non english characters)
I am getting "401 Unauthorized" exception when updating status with non english characters using my app. This exception is happening for any Japanese or Korean characters. Another interesting thing is that it is possible to post some other non english characters like Malayalam. The exception will not happen for single word in these cases, but occurs for multiple words. For example consider the following example ØáÇÞµæù çµdw - does not work ØáÇÞµæùçµdw - with space removed works. Base signature for "ØáÇÞµæù çµdw" which throws exception is POST&http%3A%2F%2Ftwitter.com%2Fstatuses %2Fupdate.json&oauth_consumer_key% 3DwmeO7Y20oMFa1ptKVY4WA%26oauth_nonce %3D4504682%26oauth_signature_method% 3DHMAC-SHA1%26oauth_timestamp%3D1253727596%26oauth_token%3D76084396- 0M9ll2nghrjWhjALbH7YEHXizcLDNvoLfgXKfHQZQ%26oauth_version %3D1.0%26status% 3D%25D8%25E1%25C7%25DE%25B5%25E6%25F9%2520%25E7%25B5dw and for "ØáÇÞµæùçµdw" which works is POST&http%3A%2F%2Ftwitter.com%2Fstatuses %2Fupdate.json&oauth_consumer_key% 3DwmeO7Y20oMFa1ptKVY4WA%26oauth_nonce %3D9388868%26oauth_signature_method% 3DHMAC-SHA1%26oauth_timestamp%3D1253727793%26oauth_token%3D76084396- 0M9ll2nghrjWhjALbH7YEHXizcLDNvoLfgXKfHQZQ%26oauth_version %3D1.0%26status% 3D%25D8%25E1%25C7%25DE%25B5%25E6%25F9%25E7%25B5dw OAuth client library I am using is in .Net Could you please help to solve this issue? Also I would like to know you support all unicode characters. Your help is greatly appreciated. Thanks, Satheesh Natesan