I used to get:
{"error":"User has been suspended"}
Now, I get:
{"errors":[{"code":63,"message":"User has been suspended"}]}
Other methods still return the old format, e.g., statuses/show. I get:
{"request":"/1/statuses/show/123456789012345.json","error":"No status found with that ID."}
Was this change announced? Will all methods now return an array of
errors? Is there a documented list of error codes?
-Marc
I'm seeing that too. When did this change?
--
------------------------------------ personal: http://www.cameronkaiser.com/ --
Cameron Kaiser * Floodgap Systems * www.floodgap.com * cka...@floodgap.com
-- They told me I was gullible ... and I believed them. -----------------------
--
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?hl=en
The new error format looks useful, especially if the error code allows
us to deal with multi-lingual error messages consistently. Obviously,
some advanced notice and consistency across the API will be helpful.
I'm still very interested in seeing Twitter provide library developers
with advanced notice under non-disclosure for changes like this.
-Marc
Is there documentation for the error codes and format of error responses
for those newer methods? Which methods support error codes in error
responses?
-Marc
Raffi, we're still seeing these unexpected error structures. When will
the change be reverted?
-Marc
--
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?hl=en
--
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?hl=en
TTYtter> /set superverbose 1
TTYtter> /whois [xxx]
[...]
url = "https://api.twitter.com/1/users/show.json?screen_name=[xxx]"
{'errors':[{'code':63,'message':'User has been suspended'}]}
TTYtter>
--
------------------------------------ personal: http://www.cameronkaiser.com/ --
Cameron Kaiser * Floodgap Systems * www.floodgap.com * cka...@floodgap.com
-- This message will self-destruct in five seconds. Good luck, Jim. -- M:I ----
Like Cameron, I'm seeing it on users/show. Here's an example:
GET http://api.twitter.com/1/users/show/178618878.json
{"errors":[{"code":63,"message":"User has been suspended"}]}
-Marc
Here's the result of an OAuth authenticated request for friends_ids:
{"errors":[{"code":53,"message":"Basic authentication is not supported"}]}
Then verify_credentials Authenticating as the same user:
{"request":"/1/account/verify_credentials.json","error":"Could not authenticate with OAuth."}
Then an unauthenticated users/show for the same user:
{"errors":[{"code":63,"message":"User has been suspended"}]}
So, I finally see what the real problem is. The inconsistency in error
formats and messages is quite difficult to deal with.
I'm also getting these errors for friends_ids. Interestingly, this is
the response I get using OAuth.
* Raffi Krikorian <ra...@twitter.com> [100830 05:48]:
To expand on Tom's message, Basic Auth is no longer supported on the
Twitter API and you need to update your script to use OAuth. In
addition you want to make sure the URL you are calling is pointing to
http://api.twitter.com/1/statuses/update.xml - all API requests should
go through http://api.twitter.com now.
Information about transitioning from basic to OAuth is here:
http://dev.twitter.com/pages/basic_to_oauth
There are community libraries available which may be of help:
http://dev.twitter.com/pages/oauth_libraries
Hope that explains why your script stopped working and what you can do
to get it working again.
Matt
--
Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris
Thanks! That helps a lot.
Now I just have to figure out how to use it!
Steve
Thank you very much!
Steve
-----Original Message-----
From: twitter-deve...@googlegroups.com
[mailto:twitter-deve...@googlegroups.com] On Behalf Of Matt Harris
Sent: Friday, September 03, 2010 11:04 AM
To: twitter-deve...@googlegroups.com
Subject: Re: [twitter-dev] Re: Change in error response objects
http://nullinfo.wordpress.com/oauth-twitter/
Steve