{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/4808","repository_url":"https://api.github.com/repos/swagger-api/swagger-ui","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/4808/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/4808/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/4808/events","html_url":"https://github.com/swagger-api/swagger-ui/issues/4808","id":349366466,"node_id":"MDU6SXNzdWUzNDkzNjY0NjY=","number":4808,"title":"I'm having trouble implementing swagger-ui in remote server. Throwing can't read file error.","user":{"login":"rbipin","id":22078004,"node_id":"MDQ6VXNlcjIyMDc4MDA0","avatar_url":"https://avatars2.githubusercontent.com/u/22078004?v=4","gravatar_id":"","url":"https://api.github.com/users/rbipin","html_url":"https://github.com/rbipin","followers_url":"https://api.github.com/users/rbipin/followers","following_url":"https://api.github.com/users/rbipin/following{/other_user}","gists_url":"https://api.github.com/users/rbipin/gists{/gist_id}","starred_url":"https://api.github.com/users/rbipin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbipin/subscriptions","organizations_url":"https://api.github.com/users/rbipin/orgs","repos_url":"https://api.github.com/users/rbipin/repos","events_url":"https://api.github.com/users/rbipin/events{/privacy}","received_events_url":"https://api.github.com/users/rbipin/received_events","type":"User","site_admin":false},"labels":[{"id":185046751,"node_id":"MDU6TGFiZWwxODUwNDY3NTE=","url":"https://api.github.com/repos/swagger-api/swagger-ui/labels/type:%20support","name":"type: support","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-10T03:47:32Z","updated_at":"2018-08-20T18:09:41Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n  We can only offer support for Swagger-UI itself.\r\n\r\n  If you're having a problem with a library that uses Swagger-UI\r\n  (for example, Springfox or swagger-node), please open an issue\r\n  in that project's repository instead.\r\n -->\r\n\r\n### Q&A (please complete the following information)\r\n - OS: Windows\r\n - Browser: Chrome, Safari, IE\r\n - Version: [e.g. 22]\r\n - Method of installation: dist\r\n - Swagger-UI version:3.0.21\r\n - Swagger/OpenAPI version: OpenAPI 3.0\r\n\r\n### Content & configuration\r\n<!-- Provide us with a way to see what you're seeing, so that we can help. -->\r\n\r\nSwagger/OpenAPI definition:\r\n```yaml\r\n# your YAML here\r\n```\r\n\r\nSwagger-UI configuration options:\r\n```js\r\nwindow.onload = function() {\r\n\r\n  // Build a system\r\n    const ui = SwaggerUIBundle({\r\n        urls: [\r\n            {\r\n                url: \"../OASDoc/v1_apidoc.json\",\r\n                name:\"Version 1.0.0\"\r\n            }\r\n              ],\r\n    dom_id: '#swagger-ui',\r\n    deepLinking: true,\r\n    presets: [\r\n      SwaggerUIBundle.presets.apis,\r\n      SwaggerUIStandalonePreset\r\n    ],\r\n    plugins: [\r\n      SwaggerUIBundle.plugins.DownloadUrl\r\n    ],\r\n    layout: \"StandaloneLayout\"\r\n  })\r\n\r\n  window.ui = ui\r\n}\r\n```\r\n\r\n```\r\n?yourQueryStringConfig\r\n```\r\n\r\n### Screenshots\r\n<!-- If applicable, add screenshots to help give context to your problem. -->\r\nhttps://i.stack.imgur.com/5hYMz.png\r\n\r\n### How can we help?\r\nThe swagger-ui is throwing **_can't read the file error_** from the ui. But it is working from local IIS.\r\nThe details of the issue along with the sample code is also given below in my stackoverflow questions\r\n[https://stackoverflow.com/questions/51778578/swagger-ui-is-unable-to-load-the-json-specification-file-in-serve](https://stackoverflow.com/questions/51778578/swagger-ui-is-unable-to-load-the-json-specification-file-in-server )\r\n"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/comments/414410817","html_url":"https://github.com/swagger-api/swagger-ui/issues/4808#issuecomment-414410817","issue_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/4808","id":414410817,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDQxMDgxNw==","user":{"login":"rbipin","id":22078004,"node_id":"MDQ6VXNlcjIyMDc4MDA0","avatar_url":"https://avatars2.githubusercontent.com/u/22078004?v=4","gravatar_id":"","url":"https://api.github.com/users/rbipin","html_url":"https://github.com/rbipin","followers_url":"https://api.github.com/users/rbipin/followers","following_url":"https://api.github.com/users/rbipin/following{/other_user}","gists_url":"https://api.github.com/users/rbipin/gists{/gist_id}","starred_url":"https://api.github.com/users/rbipin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbipin/subscriptions","organizations_url":"https://api.github.com/users/rbipin/orgs","repos_url":"https://api.github.com/users/rbipin/repos","events_url":"https://api.github.com/users/rbipin/events{/privacy}","received_events_url":"https://api.github.com/users/rbipin/received_events","type":"User","site_admin":false},"created_at":"2018-08-20T18:09:41Z","updated_at":"2018-08-20T18:09:41Z","author_association":"NONE","body":"@shockey : yes, I tried to access the json file (http://xxxx.xxxx.com/retailproject/OASDoc/v1_apidoc.json)\r\nBut i'm not able to access the file"}}
{"actor":{"display_login":"rbipin"}}