{"action":"closed","issue":{"url":"https://api.github.com/repos/cakejelly/layer-api/issues/10","repository_url":"https://api.github.com/repos/cakejelly/layer-api","labels_url":"https://api.github.com/repos/cakejelly/layer-api/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/cakejelly/layer-api/issues/10/comments","events_url":"https://api.github.com/repos/cakejelly/layer-api/issues/10/events","html_url":"https://github.com/cakejelly/layer-api/issues/10","id":146641386,"number":10,"title":"TypeError: no implicit conversion of nil into String","user":{"login":"mjurin","id":5451121,"avatar_url":"https://avatars.githubusercontent.com/u/5451121?v=3","gravatar_id":"","url":"https://api.github.com/users/mjurin","html_url":"https://github.com/mjurin","followers_url":"https://api.github.com/users/mjurin/followers","following_url":"https://api.github.com/users/mjurin/following{/other_user}","gists_url":"https://api.github.com/users/mjurin/gists{/gist_id}","starred_url":"https://api.github.com/users/mjurin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjurin/subscriptions","organizations_url":"https://api.github.com/users/mjurin/orgs","repos_url":"https://api.github.com/users/mjurin/repos","events_url":"https://api.github.com/users/mjurin/events{/privacy}","received_events_url":"https://api.github.com/users/mjurin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-07T14:23:01Z","updated_at":"2016-04-10T17:08:14Z","closed_at":"2016-04-10T17:08:14Z","body":"Hi,\r\n\r\nwhen calling the function to_s on a identity_token I get TypeError: no implicit conversion of nil into String, because there are no substitutions when key.gsub!(\"\\\\n\",\"\\n\") is called and a nil is returned instead.\r\n\r\nAny special reason why you dont use just gsub ?\r\n\r\nbest regards,\r\nMarko"}}