Eclipse Error: 05-09 00:56:20.397: D/URL(2878): http://api.themoviedb.org/3/tv/6175?api_key=### 05-09 00:56:20.641: D/JSON(2878): {"status_code":7,"status_message":"Invalid API key: You must be granted a valid key."}
In Chrome: {"backdrop_path":null,"created_by":[{"id":130319,"name":"Harvey Bullock","profile_path":null}],"episode_run_time":[30],"first_air_date":null,"genres":[{"id":35,"name":"Comedy"}],"homepage":"","id":6175,"in_production":true,"languages":["en"],"last_air_date":null,"name":"McKeever and the Colonel","networks":[{"id":6,"name":"NBC"}],"number_of_episodes":0,"number_of_seasons":0,"origin_country":["US"],"original_language":"en","original_name":"McKeever and the Colonel","overview":"McKeever and the Colonel is an American situation comedy that was broadcast on NBC television in the United States from 1962-1963. Its setting was a Westfield military academy. Dick Powell's Four Star Television produced the series.\n\nGary McKeever was the name of a student who was the lead of the series, whilst the Colonel in the title referred to the school commandant who was constantly at loggerheads with McKeever.\n\nJackie Coogan played Sgt. Barnes, a soldier at the school who was sympathetic to McKeever. The program also starred character actor John McGiver.\n\nThe guest stars included Walter Coy, formerly the host of the NBC anthology series Frontier.","popularity":2.02938267931654e-83,"poster_path":null,"production_companies":[],"seasons":[],"status":"Ended","type":"Scripted","vote_average":0.0,"vote_count":0}
找不到电影或节目?登录并创建它吧。
Travis Bell 的回复
于 2015 年 05 月 08 日 9:08下午
Hi nando86,
Using the API key for your account (I've truncated it here for privacy reasons) everything looks ok to me:
Make sure there aren't any trailing or prepended spaces.
Cheers.
nando86 的回复
于 2015 年 05 月 29 日 11:58上午
I've tried a thousand different ways, from the app I can not display the json. Any solution that you can use to show?
Travis Bell 的回复
于 2015 年 05 月 29 日 12:03下午
Is the problem only in your app? The request works fine in your browser, which you can test and see.
You could try using Apiary to inspect the request you're sending and see how it differs between your browser and your code. They have a request inspection tool that makes this pretty easy.
nando86 的回复
于 2015 年 05 月 29 日 12:25下午
I use first - https://api.themoviedb.org/3/tv/top_rated?api_key=070cf############&page=1 and Insert in the listview, when click in the tv show, search the description of tvshow and chapters.. when i send petition only show me this error in Android Device Monitor...
05-29 15:53:51.034: D/URL(2775): https://api.themoviedb.org/3/tv/39218?api_key=070cf################## 05-29 15:53:51.072: W/EGL_emulation(2775): eglSurfaceAttrib not implemented 05-29 15:53:51.072: W/OpenGLRenderer(2775): Failed to set EGL_SWAP_BEHAVIOR on surface 0xa5846d60, error=EGL_SUCCESS 05-29 15:53:51.525: W/DefaultRequestDirector(2775): Authentication error: Unable to respond to any of these challenges: {} 05-29 15:53:51.526: D/JSON(2775): {"status_code":7,"status_message":"Invalid API key: You must be granted a valid key."}