Skip to content

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

Open
fginioux-golding wants to merge 1 commit intojoshkatz:masterfrom
fginioux-golding:master
Open

fix: wrap success return into try catch to avoid server side fatal error#44
fginioux-golding wants to merge 1 commit intojoshkatz:masterfrom
fginioux-golding:master

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