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

onHealthCheck is not called #2468

Closed
gastonovic opened this issue Mar 18, 2019 · 3 comments
Closed

onHealthCheck is not called #2468

gastonovic opened this issue Mar 18, 2019 · 3 comments

Comments

@gastonovic
Copy link

gastonovic commented Mar 18, 2019

I followed the documentation on this link to add onHealthCheck method
https://www.apollographql.com/docs/apollo-server/whats-new.html#Health-checks
But when calling the endpoint .well-known/apollo/server-health the method is not called

const server = new ApolloServer({
  onHealthCheck: () => { console.log('health check'); },
  schema,
});
@aarongundel
Copy link

@gastonovic looks like this is related to #1449 - you can work around it if you use apollo-server-express

@gastonovic
Copy link
Author

gastonovic commented Mar 21, 2019

@aarongundel Thank you for your response.
yes you're right, it's related to https://github.com/apollographql/apollo-server/issues/1449 . I commented there but no one answered.
In fact I just wanted to know if there are any plans to fix this issue

@abernix
Copy link
Member

abernix commented Apr 10, 2019

Closing as a duplicate of #1449. PRs welcome!

@abernix abernix closed this as completed Apr 10, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants