{"action":"created","issue":{"url":"https://api.github.com/repos/holgerbrandl/themoviedbapi/issues/22","labels_url":"https://api.github.com/repos/holgerbrandl/themoviedbapi/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/holgerbrandl/themoviedbapi/issues/22/comments","events_url":"https://api.github.com/repos/holgerbrandl/themoviedbapi/issues/22/events","html_url":"https://github.com/holgerbrandl/themoviedbapi/issues/22","id":59134196,"number":22,"title":"Failed to read configuration","user":{"login":"aherka","id":11077104,"avatar_url":"https://avatars.githubusercontent.com/u/11077104?v=3","gravatar_id":"","url":"https://api.github.com/users/aherka","html_url":"https://github.com/aherka","followers_url":"https://api.github.com/users/aherka/followers","following_url":"https://api.github.com/users/aherka/following{/other_user}","gists_url":"https://api.github.com/users/aherka/gists{/gist_id}","starred_url":"https://api.github.com/users/aherka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aherka/subscriptions","organizations_url":"https://api.github.com/users/aherka/orgs","repos_url":"https://api.github.com/users/aherka/repos","events_url":"https://api.github.com/users/aherka/events{/privacy}","received_events_url":"https://api.github.com/users/aherka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-26T20:01:54Z","updated_at":"2015-02-27T13:53:05Z","closed_at":null,"body":"I am developing for android with gradle. When I try to run this code\r\n```java\r\nTmdbApi api = new TmdbApi(\"API_KEY\");\r\n```\r\nI got    ***MovieDbException Failed to read configuration***. I checked my api key and it works fine. Any idea what might be wrong?\r\n"},"comment":{"url":"https://api.github.com/repos/holgerbrandl/themoviedbapi/issues/comments/76397134","html_url":"https://github.com/holgerbrandl/themoviedbapi/issues/22#issuecomment-76397134","issue_url":"https://api.github.com/repos/holgerbrandl/themoviedbapi/issues/22","id":76397134,"user":{"login":"holgerbrandl","id":200952,"avatar_url":"https://avatars.githubusercontent.com/u/200952?v=3","gravatar_id":"","url":"https://api.github.com/users/holgerbrandl","html_url":"https://github.com/holgerbrandl","followers_url":"https://api.github.com/users/holgerbrandl/followers","following_url":"https://api.github.com/users/holgerbrandl/following{/other_user}","gists_url":"https://api.github.com/users/holgerbrandl/gists{/gist_id}","starred_url":"https://api.github.com/users/holgerbrandl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holgerbrandl/subscriptions","organizations_url":"https://api.github.com/users/holgerbrandl/orgs","repos_url":"https://api.github.com/users/holgerbrandl/repos","events_url":"https://api.github.com/users/holgerbrandl/events{/privacy}","received_events_url":"https://api.github.com/users/holgerbrandl/received_events","type":"User","site_admin":false},"created_at":"2015-02-27T13:53:04Z","updated_at":"2015-02-27T13:53:04Z","body":"@Sebastian: Maybe we could do some basic validation to give some more\nmeaningful error message to new users? E.g. what's the length of your\napi-key? MIne is 33 characters long.\n\n@aherka: Make sure to add dependencies of the library to your project as\nwell. See https://github.com/holgerbrandl/themoviedbapi/blob/master/pom.xml\nfor details\n\nOn Fri, Feb 27, 2015 at 11:40 AM, Sebastian Kloska <notifications@github.com\n> wrote:\n\n> Do you actually have a valid API key ?\n>\n> This\n>\n>  TmdbApi api = new TmdbApi(\"API_KEY\");\n>\n> will definitely fail\n>\n> and this\n>\n>   TmdbApi api = new TmdbApi(API_KEY);\n>\n> only works if API_KEY refers to a variable/constant holding a valid key.\n>\n> I get the same exception if i feed TmdbApi(...) with bogus.\n>\n> See https://www.themoviedb.org/faq/api if you need to apply for a key.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/holgerbrandl/themoviedbapi/issues/22#issuecomment-76374425>\n> .\n>\n"}}