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

Server is not listening to expected PORT and API_NAME #613

Open
1 task done
vrutik2809 opened this issue Feb 24, 2022 · 1 comment
Open
1 task done

Server is not listening to expected PORT and API_NAME #613

vrutik2809 opened this issue Feb 24, 2022 · 1 comment

Comments

@vrutik2809
Copy link
Contributor

I'm submitting a

  • bug report.

Current Behaviour:

While exploring app.py and conf.py, I observed that even if I pass a different port or api-name inconf.py it still listen to base-url & api-name provided while making documentation using doc.writer.HydraDoc(). It can be verified in the below image:
image

Api-name in the hydra_doc_sample.py (reference image attached below) is api but in conf.py I passed it as testapi . When I fire a request on /api then it gives me 200 but for /testapi it throws 404.

Snap of hydra_doc_sample.py :
image

Snap of my conf.py :
image

Expected Behaviour:

The server should listen to http://localhost:8080/testapi rather than http://localhost:8080/api

Steps to reproduce:

  • change API_NAME in conf.py from to api to testapi
  • run app.py and fire request on http://localhost:8080/testapi

Environment:

  • python version - 3.8.0
  • pip version - 22.0.2
  • OS details
    • Name - Microsoft Windows 11 Home Single Language
    • Version - 10.0.22000 N/A Build 22000

Do you want to work on this issue?

Yes

@Mec-iS
Copy link
Contributor

Mec-iS commented Feb 25, 2022

Please close if fixed by merge.

Thanks, good one!

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

No branches or pull requests

2 participants