Wsparcie The Movie Database

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.

6 odpowiedzi (strona 1 z 1)

Jump to last post

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?

You're not specifying the API key properly. You need set it as an HTTP parameter.

http://api.themoviedb.org/3/person/popular?api_key=###

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

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.

wow, Thanks very much to you, Travis. Everything looks ok now.

No problem.

Nie możesz znaleźć filmu lub serialu? Zaloguj się, aby go utworzyć.

Globalny

s zaznacz pasek wyszukiwania
p otwórz menu profilu
esc Zamknij otwarte okno
? otwórz okno skrótów klawiszowych

On media pages

b go back (or to parent when applicable)
e przejdź do strony edycji

On TV season pages

(prawa strzałka) przejdź do następnego sezonu
(lewa strzałka) przejdź do poprzedniego sezonu

On TV episode pages

(prawa strzałka) przejdź do następnego odcinka
(lewa strzałka) przejdź do poprzedniego odcinka

On all image pages

a otwórz okno dodawania obrazu

On all edit pages

t open translation selector
ctrl+ s prześlij formularz

On discussion pages

n otwórz nową dyskusję
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r odpowiedz na dyskusję
l przejdź do ostatniej odpowiedzi
ctrl+ enter wyślij swoją wiadomość
(prawa strzałka) następna strona
(lewa strzałka) poprzednia strona

Ustawienia

Want to rate or add this item to a list?

Zaloguj