{"action":"created","issue":{"url":"https://api.github.com/repos/nestjs/nest/issues/842","repository_url":"https://api.github.com/repos/nestjs/nest","labels_url":"https://api.github.com/repos/nestjs/nest/issues/842/labels{/name}","comments_url":"https://api.github.com/repos/nestjs/nest/issues/842/comments","events_url":"https://api.github.com/repos/nestjs/nest/issues/842/events","html_url":"https://github.com/nestjs/nest/issues/842","id":338116004,"node_id":"MDU6SXNzdWUzMzgxMTYwMDQ=","number":842,"title":"Expose Axios client/module from the HttpService","user":{"login":"ryanswart","id":33819886,"node_id":"MDQ6VXNlcjMzODE5ODg2","avatar_url":"https://avatars3.githubusercontent.com/u/33819886?v=4","gravatar_id":"","url":"https://api.github.com/users/ryanswart","html_url":"https://github.com/ryanswart","followers_url":"https://api.github.com/users/ryanswart/followers","following_url":"https://api.github.com/users/ryanswart/following{/other_user}","gists_url":"https://api.github.com/users/ryanswart/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanswart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanswart/subscriptions","organizations_url":"https://api.github.com/users/ryanswart/orgs","repos_url":"https://api.github.com/users/ryanswart/repos","events_url":"https://api.github.com/users/ryanswart/events{/privacy}","received_events_url":"https://api.github.com/users/ryanswart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-04T03:11:42Z","updated_at":"2018-07-04T11:07:10Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nPLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.\r\n\r\nISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.\r\n-->\r\n\r\n## I'm submitting a...\r\n<!-- \r\nPlease search GitHub for a similar issue or PR before submitting.\r\nCheck one of the following options with \"x\" -->\r\n<pre><code>\r\n[ ] Regression <!--(a behavior that used to work and stopped working in a new release)-->\r\n[ ] Bug report\r\n[x] Feature request\r\n[ ] Documentation issue or request\r\n[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.\r\n</code></pre>\r\n\r\n## Current behavior\r\nThe HttpService hides does not provide core Axios capabilities such as interceptors / transformers.\r\n\r\n## Expected behavior\r\nFull access to Axios capabilities, by exposing the Axios instance used by the HttpModule. We could possibly also create new Axios clients for each HttpService instantiated, which will provide more granular control.\r\n\r\n## What is the motivation / use case for changing the behavior?\r\nMy primary use case is for debugging Axios requests, which is currently painful, as in a chain of requests, the logs do not specify where a request has failed. Adding an interceptor to the Axios instance would easily provide visibility into what is being requested and identify where the system is failing. \r\n\r\nI'd be happy to pick this up if it makes sense"},"comment":{"url":"https://api.github.com/repos/nestjs/nest/issues/comments/402446568","html_url":"https://github.com/nestjs/nest/issues/842#issuecomment-402446568","issue_url":"https://api.github.com/repos/nestjs/nest/issues/842","id":402446568,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjQ0NjU2OA==","user":{"login":"ryanswart","id":33819886,"node_id":"MDQ6VXNlcjMzODE5ODg2","avatar_url":"https://avatars3.githubusercontent.com/u/33819886?v=4","gravatar_id":"","url":"https://api.github.com/users/ryanswart","html_url":"https://github.com/ryanswart","followers_url":"https://api.github.com/users/ryanswart/followers","following_url":"https://api.github.com/users/ryanswart/following{/other_user}","gists_url":"https://api.github.com/users/ryanswart/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanswart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanswart/subscriptions","organizations_url":"https://api.github.com/users/ryanswart/orgs","repos_url":"https://api.github.com/users/ryanswart/repos","events_url":"https://api.github.com/users/ryanswart/events{/privacy}","received_events_url":"https://api.github.com/users/ryanswart/received_events","type":"User","site_admin":false},"created_at":"2018-07-04T11:07:10Z","updated_at":"2018-07-04T11:07:10Z","author_association":"NONE","body":"@cojack The HttpService doesn't end up using the global axios instance when I try it like that - ie. interceptors & defaults don't work."}}
{"actor":{"display_login":"ryanswart"}}