Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The api doc request response 502 when set the host 0.0.0.0 #832

Open
zhuyu4839 opened this issue Jun 6, 2024 · 1 comment
Open

The api doc request response 502 when set the host 0.0.0.0 #832

zhuyu4839 opened this issue Jun 6, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@zhuyu4839
Copy link

zhuyu4839 commented Jun 6, 2024

Expected Behavior

The api doc output should be:

<div class="servers">
 <label for="servers">
  <select>
   <option value="http:https://127.0.0.1:xxx/xxx">http:https://127.0.0.1:xxx/xxx</option>
  </select>
 </label>
</div>

or

<div class="servers">
 <label for="servers">
  <select>
   <option value="http:https://pc-ip:xxx/xxx">http:https://pc-ip:xxx/xxx</option>
  </select>
 </label>
</div>

Actual Behavior

<div class="servers">
 <label for="servers">
  <select>
   <option value="http:https://0.0.0.0:xxx/xxx">http:https://0.0.0.0:xxx/xxx</option>
  </select>
 </label>
</div>

Steps to Reproduce the Problem

  1. OpenApiService::new(...)..server("http:https://0.0.0.0:8080")

Specifications

  • Version: poem-openai 5.0.2
  • Platform:
  • Subsystem:
@zhuyu4839 zhuyu4839 added the bug Something isn't working label Jun 6, 2024
@zhuyu4839
Copy link
Author

Temp code:
image

@zhuyu4839 zhuyu4839 changed the title The api doc request response 502 when set the host is 0.0.0.0 The api doc request response 502 when set the host 0.0.0.0 Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant