TypeError: Cannot read property 'operation' of undefined and relative path bug
See original GitHub issueHello,
With this swagger.json : https://gist.github.com/julienkosinski/c0872ed8df120b631c1146adc5d78220.js
With 3.0.12 : When trying to send a request to the API (POST for example), I have this error :
swagger-ui-bundle.js:68397 Uncaught TypeError: Cannot read property 'operation' of undefined at Object.i [as buildRequest] (swagger-ui-bundle.js:68397) at swagger-ui-bundle.js:26026 at swagger-ui-bundle.js:15207 at swagger-ui-bundle.js:9555 at swagger-ui-bundle.js:38005 at Object.r [as executeRequest] (swagger-ui-bundle.js:6562) at swagger-ui-bundle.js:26026 at swagger-ui-bundle.js:15207 at swagger-ui-bundle.js:9555 at swagger-ui-bundle.js:71635
With 3.0.4 : It’s working but I need to specify the host (like "host": "127.0.0.1:8080") because relative path isn’t working.
Plus, I need to have #2923 fixed for my complete spec.
Thanks 😃.
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (6 by maintainers)

Top Related StackOverflow Question
@shockey , Thank you for trying. Sorry, my bad. Just tested again and it works. Yesterday I was testing 3.0.12 and then switched to latest version but probably Chrome’s aggressive chaching policy had confused me a bit…
@domeniconappo, I just tested an operation with an
operationIddefined (one of the Petstore operations) and it worked fine with Swagger-UI 3.3.1 and Chrome 61.Can you open a new issue and follow the issue template, so we can reproduce the problem you’re having? Thanks!