Exit the Listener When Panic Occurred #4237
Labels
module/graphql
Issues related to Ballerina GraphQL module
module/nats
module/rabbitmq
Team/PCM
Protocol connector packages related issues
Type/Improvement
Description:
Current GraphQL implementation handles panics similar to errors. If a panic happens in the user code, the GraphQL listener will log the error (which caused the panic) and returns it as a regular GraphQL error.
But this behavior is incorrect. Therefore, we should fix it to exit the listener when a panic occurs. Currently, there are no Runtime APIs to exit the listener. Until we have such API, using
System.exit()
would be the workaround.The text was updated successfully, but these errors were encountered: