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

Bonus Chapter - Implementing a Health Check API #8

Open
BobMolloy opened this issue Dec 18, 2022 · 7 comments
Open

Bonus Chapter - Implementing a Health Check API #8

BobMolloy opened this issue Dec 18, 2022 · 7 comments

Comments

@BobMolloy
Copy link

Page 2, Bullet 7

Every time I run this, I receive the output "Unhealthy" and a 503 status code.

@markjprice
Copy link
Owner

Are you able to call the actual endpoint and get a response?

@BobMolloy
Copy link
Author

BobMolloy commented Dec 29, 2022 via email

@markjprice
Copy link
Owner

There is nothing shown. Please try replying in GitHub and add the screenshot.

@BobMolloy
Copy link
Author

BobMolloy commented Dec 29, 2022

hdyf

hdyf2

hdyf3

@markjprice
Copy link
Owner

Okay, so just before the Implementing advanced features for web services section that is online only was the client HTTP section. I assume you were therefore able to call the the actual endpoint and get a response, for example, the HTTP client could call: GET https://localhost:5002/api/customers/?country=UK and the response was returned. Therefore the endpoint is working. If you then added the package for health checks and the Web API service is returning 503 Unhealthy then it's is "lying" in some way. After getting 503, try changing the address box to: https://localhost:5002/api/customers/?country=UK and see what response you get and please screenshot that.

@BobMolloy
Copy link
Author

uk1

uk2

uk3

@markjprice
Copy link
Owner

Yes, so the endpoint is actually healthy but the Microsoft health check thinks that it not. I don't know why. I'll see if I can research why that might be.

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