Skip to content

fix(server): print localhost Swagger URL instead of 0.0.0.0#714

Open
sarvesh1327 wants to merge 1 commit into
Lightning-AI:mainfrom
sarvesh1327:fix/swagger-localhost-url
Open

fix(server): print localhost Swagger URL instead of 0.0.0.0#714
sarvesh1327 wants to merge 1 commit into
Lightning-AI:mainfrom
sarvesh1327:fix/swagger-localhost-url

Conversation

@sarvesh1327

Copy link
Copy Markdown

Summary

  • Changes the printed Swagger UI URL from http://0.0.0.0:{port}/docs to http://localhost:{port}/docs.
  • 0.0.0.0 is not a valid address to open in a browser on Windows, so users copying the URL could not access the docs.
  • localhost works on Windows, macOS, and Linux.

Test Plan

  • Updated test_disable_openapi_url_print_message assertion to expect localhost.

Notes

0.0.0.0 does not work on Windows for local browser access.
Use localhost so the printed URL is clickable on all platforms.

Fixes Lightning-AI#697
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

invalid ip address for windows during local debugging

1 participant