{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/3291","repository_url":"https://api.github.com/repos/swagger-api/swagger-ui","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/3291/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/3291/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/3291/events","html_url":"https://github.com/swagger-api/swagger-ui/issues/3291","id":238341899,"number":3291,"title":"Self is not defined","user":{"login":"jd-carroll","id":1885864,"avatar_url":"https://avatars2.githubusercontent.com/u/1885864?v=3","gravatar_id":"","url":"https://api.github.com/users/jd-carroll","html_url":"https://github.com/jd-carroll","followers_url":"https://api.github.com/users/jd-carroll/followers","following_url":"https://api.github.com/users/jd-carroll/following{/other_user}","gists_url":"https://api.github.com/users/jd-carroll/gists{/gist_id}","starred_url":"https://api.github.com/users/jd-carroll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jd-carroll/subscriptions","organizations_url":"https://api.github.com/users/jd-carroll/orgs","repos_url":"https://api.github.com/users/jd-carroll/repos","events_url":"https://api.github.com/users/jd-carroll/events{/privacy}","received_events_url":"https://api.github.com/users/jd-carroll/received_events","type":"User","site_admin":false},"labels":[{"id":46110653,"url":"https://api.github.com/repos/swagger-api/swagger-ui/labels/Bug","name":"Bug","color":"e11d21","default":false},{"id":160480892,"url":"https://api.github.com/repos/swagger-api/swagger-ui/labels/P1","name":"P1","color":"5319e7","default":false},{"id":567065334,"url":"https://api.github.com/repos/swagger-api/swagger-ui/labels/Pending%20release","name":"Pending release","color":"fef2c0","default":false}],"state":"closed","locked":false,"assignee":{"login":"shockey","id":680248,"avatar_url":"https://avatars1.githubusercontent.com/u/680248?v=3","gravatar_id":"","url":"https://api.github.com/users/shockey","html_url":"https://github.com/shockey","followers_url":"https://api.github.com/users/shockey/followers","following_url":"https://api.github.com/users/shockey/following{/other_user}","gists_url":"https://api.github.com/users/shockey/gists{/gist_id}","starred_url":"https://api.github.com/users/shockey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shockey/subscriptions","organizations_url":"https://api.github.com/users/shockey/orgs","repos_url":"https://api.github.com/users/shockey/repos","events_url":"https://api.github.com/users/shockey/events{/privacy}","received_events_url":"https://api.github.com/users/shockey/received_events","type":"User","site_admin":false},"assignees":[{"login":"shockey","id":680248,"avatar_url":"https://avatars1.githubusercontent.com/u/680248?v=3","gravatar_id":"","url":"https://api.github.com/users/shockey","html_url":"https://github.com/shockey","followers_url":"https://api.github.com/users/shockey/followers","following_url":"https://api.github.com/users/shockey/following{/other_user}","gists_url":"https://api.github.com/users/shockey/gists{/gist_id}","starred_url":"https://api.github.com/users/shockey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shockey/subscriptions","organizations_url":"https://api.github.com/users/shockey/orgs","repos_url":"https://api.github.com/users/shockey/repos","events_url":"https://api.github.com/users/shockey/events{/privacy}","received_events_url":"https://api.github.com/users/shockey/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2017-06-24T20:36:17Z","updated_at":"2017-07-12T18:40:02Z","closed_at":"2017-07-08T01:35:12Z","body":"- node version\r\n```\r\n$ node --version\r\nv6.9.5\r\n```\r\n- swagger-ui version\r\n```\r\n\"swagger-ui-dist\": \"^3.0.17\",\r\n```\r\n- a swagger file reproducing the issue\r\n```\r\nnpm install --save swagger-ui-dist\r\n```\r\nSample file:\r\n```\r\nconst express = require('express');\r\nconst app = express();\r\napp.listen();\r\nconst swaggerDist = require('swagger-ui-dist');\r\nconst swaggerUiAssetPath = swaggerDist.getAbsoluteFSPath(); // <-- errors out\r\napp.use('/swagger', express.static(swaggerUiAssetPath));\r\n```\r\n\r\nFull stack trace:\r\n```\r\nReferenceError: self is not defined\r\n    at Object.<anonymous> (c:\\dev\\cpt\\ads\\ads-web-services\\node_modules\\swagger-ui-dist\\swagger-ui-bundle.js:73:22556)\r\n    at t (c:\\dev\\cpt\\ads\\ads-web-services\\node_modules\\swagger-ui-dist\\swagger-ui-bundle.js:1:402)\r\n    at Object.e.exports.e.__esModule.default (c:\\dev\\cpt\\ads\\ads-web-services\\node_modules\\swagger-ui-dist\\swagger-ui-bundle.js:72:10755)\r\n    at t (c:\\dev\\cpt\\ads\\ads-web-services\\node_modules\\swagger-ui-dist\\swagger-ui-bundle.js:72:110)\r\n    at Object.<anonymous> (c:\\dev\\cpt\\ads\\ads-web-services\\node_modules\\swagger-ui-dist\\swagger-ui-bundle.js:72:9958)\r\n    at t (c:\\dev\\cpt\\ads\\ads-web-services\\node_modules\\swagger-ui-dist\\swagger-ui-bundle.js:72:110)\r\n    at Object.e.exports.e.__esModule.default (c:\\dev\\cpt\\ads\\ads-web-services\\node_modules\\swagger-ui-dist\\swagger-ui-bundle.js:72:11205)\r\n    at t (c:\\dev\\cpt\\ads\\ads-web-services\\node_modules\\swagger-ui-dist\\swagger-ui-bundle.js:72:110)\r\n    at Object.<anonymous> (c:\\dev\\cpt\\ads\\ads-web-services\\node_modules\\swagger-ui-dist\\swagger-ui-bundle.js:73:1750)\r\n    at t (c:\\dev\\cpt\\ads\\ads-web-services\\node_modules\\swagger-ui-dist\\swagger-ui-bundle.js:72:110)\r\n    at c:\\dev\\cpt\\ads\\ads-web-services\\node_modules\\swagger-ui-dist\\swagger-ui-bundle.js:72:493\r\n    at Object.<anonymous> (c:\\dev\\cpt\\ads\\ads-web-services\\node_modules\\swagger-ui-dist\\swagger-ui-bundle.js:72:503)\r\n    at t (c:\\dev\\cpt\\ads\\ads-web-services\\node_modules\\swagger-ui-dist\\swagger-ui-bundle.js:1:402)\r\n    at Object.e.exports.n.(anonymous function).i (c:\\dev\\cpt\\ads\\ads-web-services\\node_modules\\swagger-ui-dist\\swagger-ui-bundle.js:71:31725)\r\n    at t (c:\\dev\\cpt\\ads\\ads-web-services\\node_modules\\swagger-ui-dist\\swagger-ui-bundle.js:1:402)\r\n    at Object.t (c:\\dev\\cpt\\ads\\ads-web-services\\node_modules\\swagger-ui-dist\\swagger-ui-bundle.js:39:4816)\r\n    at t (c:\\dev\\cpt\\ads\\ads-web-services\\node_modules\\swagger-ui-dist\\swagger-ui-bundle.js:1:402)\r\n    at Object.t (c:\\dev\\cpt\\ads\\ads-web-services\\node_modules\\swagger-ui-dist\\swagger-ui-bundle.js:39:3431)\r\n    at t (c:\\dev\\cpt\\ads\\ads-web-services\\node_modules\\swagger-ui-dist\\swagger-ui-bundle.js:1:402)\r\n    at Object.<anonymous> (c:\\dev\\cpt\\ads\\ads-web-services\\node_modules\\swagger-ui-dist\\swagger-ui-bundle.js:1:15146)\r\n    at t (c:\\dev\\cpt\\ads\\ads-web-services\\node_modules\\swagger-ui-dist\\swagger-ui-bundle.js:1:402)\r\n    at Object.<anonymous> (c:\\dev\\cpt\\ads\\ads-web-services\\node_modules\\swagger-ui-dist\\swagger-ui-bundle.js:1:802)\r\n```"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/comments/314859583","html_url":"https://github.com/swagger-api/swagger-ui/issues/3291#issuecomment-314859583","issue_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/3291","id":314859583,"user":{"login":"shockey","id":680248,"avatar_url":"https://avatars1.githubusercontent.com/u/680248?v=3","gravatar_id":"","url":"https://api.github.com/users/shockey","html_url":"https://github.com/shockey","followers_url":"https://api.github.com/users/shockey/followers","following_url":"https://api.github.com/users/shockey/following{/other_user}","gists_url":"https://api.github.com/users/shockey/gists{/gist_id}","starred_url":"https://api.github.com/users/shockey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shockey/subscriptions","organizations_url":"https://api.github.com/users/shockey/orgs","repos_url":"https://api.github.com/users/shockey/repos","events_url":"https://api.github.com/users/shockey/events{/privacy}","received_events_url":"https://api.github.com/users/shockey/received_events","type":"User","site_admin":false},"created_at":"2017-07-12T18:40:01Z","updated_at":"2017-07-12T18:40:01Z","body":"@chaitralisk, can you please open a new ticket so we can help you with this? I want to minizine the noise for the five people getting emails about this thread."}}
{"actor":{"display_login":"shockey"}}