Hi, I'm in china, when I make some demo , it returns 401 Authentication error, the flowing is my Android log:
22 10:12:08.243 W/DefaultRequestDirector( 9454): Authentication error: Unable to respond to any of these challenges: {}
10-22 10:12:08.243 W/HttpRetriever( 9454): Error 401 for URL http://api.themoviedb.org/3/person/popular/api_key=###
Does something wrong with the URl, I do the demo as http://www.javacodegeeks.com/2010/10/android-full-app-part-4-asynchronous.html described.
找不到电影或节目?登录并创建它吧。
flyingfishercn 的回复
于 2013 年 10 月 21 日 11:15下午
I do all the work on Android, and used VPN(which can shielded The Great Wall of China ), but the error keeps there.
what's the problem?Can someone help me?
Travis Bell 的回复
于 2013 年 10 月 21 日 11:26下午
You're not specifying the API key properly. You need set it as an HTTP parameter.
flyingfishercn 的回复
于 2013 年 10 月 21 日 11:30下午
In my android.log on my local machine, it displays OK. I don't know why, it seems that when I pasted it, the api_key was replaced by ###. I do the paste again here. Error 401 for URL http://api.themoviedb.org/3/person/popular/api_key=###
Travis Bell 的回复
于 2013 年 10 月 21 日 11:38下午
That's not what I was referring to. I changed it. Don't paste your API key publicly. It should be treated privately. I was referring to the way you're setting it. You need to set it with a question mark (?). Look at my example. You're not setting a valid HTTP parameter.
flyingfishercn 的回复
于 2013 年 10 月 21 日 11:49下午
wow, Thanks very much to you, Travis. Everything looks ok now.
Travis Bell 的回复
于 2013 年 10 月 21 日 11:52下午
No problem.