Skip to content

fix: wrap success return into try catch to avoid server side fatal error #44

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fginioux-golding
Copy link

When we are running the script and the R code throw an error the close callback is called with non parsable body and crash the node js application.

To "gracefully" handle the error the proposition is to wrap the code into a try/catch and return the error instead of the body ;

When we are running the script and the R code throw an error the close callback is called with non parsable body and crash the node js application. 

To "gracefully" handle the error the proposition is to wrap the code into a try/catch and return the error instead of the body ;
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

Successfully merging this pull request may close these issues.

1 participant