{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/793","repository_url":"https://api.github.com/repos/webpack/webpack-dev-server","labels_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/793/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/793/comments","events_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/793/events","html_url":"https://github.com/webpack/webpack-dev-server/issues/793","id":208348744,"number":793,"title":"devServer proxy not working","user":{"login":"gjunkie","id":626628,"avatar_url":"https://avatars1.githubusercontent.com/u/626628?v=4","gravatar_id":"","url":"https://api.github.com/users/gjunkie","html_url":"https://github.com/gjunkie","followers_url":"https://api.github.com/users/gjunkie/followers","following_url":"https://api.github.com/users/gjunkie/following{/other_user}","gists_url":"https://api.github.com/users/gjunkie/gists{/gist_id}","starred_url":"https://api.github.com/users/gjunkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gjunkie/subscriptions","organizations_url":"https://api.github.com/users/gjunkie/orgs","repos_url":"https://api.github.com/users/gjunkie/repos","events_url":"https://api.github.com/users/gjunkie/events{/privacy}","received_events_url":"https://api.github.com/users/gjunkie/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2017-02-17T06:26:01Z","updated_at":"2017-10-02T17:51:30Z","closed_at":"2017-08-09T16:00:46Z","author_association":"NONE","body":"<!-- Before creating an issue please make sure you are using the latest version of webpack-dev-server and webpack. -->\r\n\r\n**Do you want to request a *feature* or report a *bug*?**\r\nBug\r\n\r\n**What is the current behavior?**\r\ndevServer proxy doesn't proxy.\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce.**\r\nClient server running at `localhost:8080` and API server running at `localhost:8000`. I've tried several variations of what to proxy (`api/*`, `/api/**`, `api/**`, etc). Use the following proxy settings:\r\n```\r\n  devServer: {\r\n    hot: true,\r\n    contentBase: resolve(__dirname, 'dist'),\r\n    publicPath: '/',\r\n    proxy: {\r\n      '/api/**': {\r\n        target: 'http://localhost:8000',\r\n        secure: false,\r\n        changeOrigin: true,\r\n      }\r\n    },\r\n  },\r\n```\r\n\r\n**What is the expected behavior?**\r\nHitting `/api/path` should be proxied to `http://localhost:8000/api/path` but is instead hitting `http://localhost:8080/api/path`.\r\n\r\n**Please mention your webpack and Operating System version.**\r\n- webpack @ 2.2.1\r\n- webpack-dev-server @ 2.3.0\r\n- macOS 10.12.3"},"comment":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/comments/333611747","html_url":"https://github.com/webpack/webpack-dev-server/issues/793#issuecomment-333611747","issue_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/793","id":333611747,"user":{"login":"jrweinb","id":424662,"avatar_url":"https://avatars2.githubusercontent.com/u/424662?v=4","gravatar_id":"","url":"https://api.github.com/users/jrweinb","html_url":"https://github.com/jrweinb","followers_url":"https://api.github.com/users/jrweinb/followers","following_url":"https://api.github.com/users/jrweinb/following{/other_user}","gists_url":"https://api.github.com/users/jrweinb/gists{/gist_id}","starred_url":"https://api.github.com/users/jrweinb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrweinb/subscriptions","organizations_url":"https://api.github.com/users/jrweinb/orgs","repos_url":"https://api.github.com/users/jrweinb/repos","events_url":"https://api.github.com/users/jrweinb/events{/privacy}","received_events_url":"https://api.github.com/users/jrweinb/received_events","type":"User","site_admin":false},"created_at":"2017-10-02T17:51:30Z","updated_at":"2017-10-02T17:51:30Z","author_association":"NONE","body":"@withintheruins14 - (I deleted a previous reply as it was wrong). It looks like your API is not working.  The 404 html is getting parsed in `response => response.json()`"}}
{"actor":{"display_login":"jrweinb"}}