{"action":"closed","issue":{"url":"https://api.github.com/repos/tulios/mappersmith/issues/104","repository_url":"https://api.github.com/repos/tulios/mappersmith","labels_url":"https://api.github.com/repos/tulios/mappersmith/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/tulios/mappersmith/issues/104/comments","events_url":"https://api.github.com/repos/tulios/mappersmith/issues/104/events","html_url":"https://github.com/tulios/mappersmith/issues/104","id":331174561,"node_id":"MDU6SXNzdWUzMzExNzQ1NjE=","number":104,"title":"TypeError: response.enhance is not a function","user":{"login":"kjjgibson","id":1121313,"node_id":"MDQ6VXNlcjExMjEzMTM=","avatar_url":"https://avatars1.githubusercontent.com/u/1121313?v=4","gravatar_id":"","url":"https://api.github.com/users/kjjgibson","html_url":"https://github.com/kjjgibson","followers_url":"https://api.github.com/users/kjjgibson/followers","following_url":"https://api.github.com/users/kjjgibson/following{/other_user}","gists_url":"https://api.github.com/users/kjjgibson/gists{/gist_id}","starred_url":"https://api.github.com/users/kjjgibson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjjgibson/subscriptions","organizations_url":"https://api.github.com/users/kjjgibson/orgs","repos_url":"https://api.github.com/users/kjjgibson/repos","events_url":"https://api.github.com/users/kjjgibson/events{/privacy}","received_events_url":"https://api.github.com/users/kjjgibson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-11T12:47:35Z","updated_at":"2018-08-14T13:05:29Z","closed_at":"2018-08-14T13:05:29Z","author_association":"CONTRIBUTOR","body":"If an error is thrown when doing a request and you're using the RetryMiddleware then the initial error will be swallowed and Mappersmith will throw an error instead. This makes it impossible to debug the actual problem.\r\n\r\n```\r\nException has occurred: TypeError\r\nTypeError: response.enhance is not a function\r\n    at enhancedResponse (/Users/kenneth.gibson/klarna/klarna-app/services/orders/node_modules/mappersmith/middleware/retry/v2/index.js:117:19)\r\n    at /Users/kenneth.gibson/klarna/klarna-app/services/orders/node_modules/mappersmith/middleware/retry/v2/index.js:87:88\r\n    at <anonymous>\r\n    at process._tickDomainCallback (internal/process/next_tick.js:228:7)\r\n```"}}
{"actor":{"display_login":"tulios"}}