You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im using 2.9.2 version of the springfox-swagger-ui and springfox-swagger2.
I added a dist of swagger to do some customisation, replaced the petstore parts with window.location.origin + "/v2/api-docs" in a variable in the JS files (not the map files). It works fine locally but when deployed on AWS I have this unable to infer base url error.
Anyone knows what the issue is about ?
The text was updated successfully, but these errors were encountered:
I know have the base URL set with var swaggerUrl = window.location.origin + "/v2/api-docs" const ui = SwaggerUIBundle({ url: swaggerUrl,
Same in other js files with things like var swaggerUrl = window.location.origin + "/v2/api-docs"; return Object(r.parseYamlConfig)('---\nurl: "' + swaggerUrl +' and now I have a 502 when trying to browse the swagger-ui.html.
Any help ?
AliZarrouk
changed the title
Unable to infer base url error when deploying to AWS, works locally.
502 bad gateway when deploying to AWS, works locally.
May 11, 2020
@AliZarrouk This should be fixed in the upcoming 3.0.0 snapshot. Note the change in location for the /swagger-ui.html. it will now be available @ /swagger-ui/[index.html] (optional index.html)
Im using 2.9.2 version of the springfox-swagger-ui and springfox-swagger2.
I added a dist of swagger to do some customisation, replaced the petstore parts with
window.location.origin + "/v2/api-docs"
in a variable in the JS files (not the map files). It works fine locally but when deployed on AWS I have this unable to infer base url error.Anyone knows what the issue is about ?
The text was updated successfully, but these errors were encountered: