{"action":"created","issue":{"url":"https://api.github.com/repos/martykan/forecastie/issues/251","repository_url":"https://api.github.com/repos/martykan/forecastie","labels_url":"https://api.github.com/repos/martykan/forecastie/issues/251/labels{/name}","comments_url":"https://api.github.com/repos/martykan/forecastie/issues/251/comments","events_url":"https://api.github.com/repos/martykan/forecastie/issues/251/events","html_url":"https://github.com/martykan/forecastie/issues/251","id":270550558,"node_id":"MDU6SXNzdWUyNzA1NTA1NTg=","number":251,"title":"If the API key is invalid: results in \"There is something wrong with your Internet connection\".","user":{"login":"dennisguse","id":2820825,"node_id":"MDQ6VXNlcjI4MjA4MjU=","avatar_url":"https://avatars0.githubusercontent.com/u/2820825?v=4","gravatar_id":"","url":"https://api.github.com/users/dennisguse","html_url":"https://github.com/dennisguse","followers_url":"https://api.github.com/users/dennisguse/followers","following_url":"https://api.github.com/users/dennisguse/following{/other_user}","gists_url":"https://api.github.com/users/dennisguse/gists{/gist_id}","starred_url":"https://api.github.com/users/dennisguse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dennisguse/subscriptions","organizations_url":"https://api.github.com/users/dennisguse/orgs","repos_url":"https://api.github.com/users/dennisguse/repos","events_url":"https://api.github.com/users/dennisguse/events{/privacy}","received_events_url":"https://api.github.com/users/dennisguse/received_events","type":"User","site_admin":false},"labels":[{"id":303474753,"node_id":"MDU6TGFiZWwzMDM0NzQ3NTM=","url":"https://api.github.com/repos/martykan/forecastie/labels/bug","name":"bug","color":"fc2929","default":true},{"id":303474756,"node_id":"MDU6TGFiZWwzMDM0NzQ3NTY=","url":"https://api.github.com/repos/martykan/forecastie/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/martykan/forecastie/milestones/7","html_url":"https://github.com/martykan/forecastie/milestone/7","labels_url":"https://api.github.com/repos/martykan/forecastie/milestones/7/labels","id":2573360,"node_id":"MDk6TWlsZXN0b25lMjU3MzM2MA==","number":7,"title":"v1.6","description":"","creator":{"login":"robinpaulson","id":1186107,"node_id":"MDQ6VXNlcjExODYxMDc=","avatar_url":"https://avatars2.githubusercontent.com/u/1186107?v=4","gravatar_id":"","url":"https://api.github.com/users/robinpaulson","html_url":"https://github.com/robinpaulson","followers_url":"https://api.github.com/users/robinpaulson/followers","following_url":"https://api.github.com/users/robinpaulson/following{/other_user}","gists_url":"https://api.github.com/users/robinpaulson/gists{/gist_id}","starred_url":"https://api.github.com/users/robinpaulson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robinpaulson/subscriptions","organizations_url":"https://api.github.com/users/robinpaulson/orgs","repos_url":"https://api.github.com/users/robinpaulson/repos","events_url":"https://api.github.com/users/robinpaulson/events{/privacy}","received_events_url":"https://api.github.com/users/robinpaulson/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":6,"state":"open","created_at":"2017-06-09T08:36:45Z","updated_at":"2018-11-25T13:11:03Z","due_on":"2017-09-14T07:00:00Z","closed_at":null},"comments":14,"created_at":"2017-11-02T06:52:28Z","updated_at":"2018-11-27T15:55:33Z","closed_at":null,"author_association":"NONE","body":"Yesterday, I changed my API key and missed one digit.\r\nAs a result, Forecastie complained that \"There is something wrong with your Internet connection\" with a Toast message.\r\nThis message was not really helpful.\r\nCorrecting the API key, fixed my issue.\r\n\r\nProbable solution: \r\nI think that the parsing  of the response is too generic.\r\nOn invalid API key, OpenWeather reacts with HTTP 401 \r\n`{\"cod\":401, \"message\": \"Invalid API key. Please see http://openweathermap.org/faq#error401 for more info.\"}`\r\n\r\nThus, parsing could account for 401 here:\r\nhttps://github.com/martykan/forecastie/blob/master/app/src/main/java/cz/martykan/forecastie/tasks/GenericRequestTask.java#L99\r\n\r\nVersion 1.5 (Fdroid)"},"comment":{"url":"https://api.github.com/repos/martykan/forecastie/issues/comments/442110793","html_url":"https://github.com/martykan/forecastie/issues/251#issuecomment-442110793","issue_url":"https://api.github.com/repos/martykan/forecastie/issues/251","id":442110793,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjExMDc5Mw==","user":{"login":"andrei91ro","id":16015804,"node_id":"MDQ6VXNlcjE2MDE1ODA0","avatar_url":"https://avatars0.githubusercontent.com/u/16015804?v=4","gravatar_id":"","url":"https://api.github.com/users/andrei91ro","html_url":"https://github.com/andrei91ro","followers_url":"https://api.github.com/users/andrei91ro/followers","following_url":"https://api.github.com/users/andrei91ro/following{/other_user}","gists_url":"https://api.github.com/users/andrei91ro/gists{/gist_id}","starred_url":"https://api.github.com/users/andrei91ro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrei91ro/subscriptions","organizations_url":"https://api.github.com/users/andrei91ro/orgs","repos_url":"https://api.github.com/users/andrei91ro/repos","events_url":"https://api.github.com/users/andrei91ro/events{/privacy}","received_events_url":"https://api.github.com/users/andrei91ro/received_events","type":"User","site_admin":false},"created_at":"2018-11-27T15:55:33Z","updated_at":"2018-11-27T15:55:33Z","author_association":"NONE","body":"I received the following response from OpenWeatherMap. They said that these are the main error codes.\r\n\r\n```\r\n401 – “Invalid API key. Please see http://openweathermap.org/faq#error401 for more info.”\r\n404 – “city not found”\r\n429 – API key blocked\r\n500 – internal server error\r\n```\r\n"}}
{"actor":{"display_login":"andrei91ro"}}