Apollo server (stop + start) #7913
Unanswered
hugoribeiromsglife
asked this question in
Q&A
Replies: 1 comment 1 reply
-
same here, have you found a solution ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, hope you are doing great 👍
I have been using Apollo Server with an http server as documented here https://www.apollographql.com/docs/apollo-server/api/plugin/drain-http-server/. I am also using the drain plugin mentioned there.
I have a feature that dynamically adds/deletes servers at runtime, meaning: I can have a server running at /xyz, delete it (closing http server and stopping apollo server: 'httpServer.closeAllConnections(); httpServer.close(); await apolloServer.stop();') and then try to create it again at runtime, but.. when I do that I always face the following exception:
"A GraphQL operation was received during server shutdown. The operation will fail. Consider draining the HTTP server on shutdown; see https://go.apollo.dev/s/drain for details."
any hints here?
Thanks and have a nice day!
Beta Was this translation helpful? Give feedback.
All reactions