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

REST server errors are not always reported correctly due to missing exception handling #4291

Closed
davidnich opened this issue Jul 17, 2021 · 0 comments

Comments

@davidnich
Copy link
Contributor

ex:

2021-07-17 00:08:12.061326 qorus-core:130 T23 [INFO]: "qorus-1" (ipv6[::]:8011): cid 164: RECV BODY: "300000
"
2021-07-17 00:08:12.095223 qorus-core:130 T23 [ERROR]: System exception: /opt/share/qore-modules/1.0.1/RestHandler.qm:784 (Qore): PROGRAM-ERROR: the Program accessed has already been deleted and therefore cannot be accessed
  AbstractRestClass::dispatchStream() called at /opt/share/qore-modules/1.0.1/RestHandler.qm:755 (Qore user code)
  AbstractRestClass::handleRequest() called at /opt/share/qore-modules/1.0.1/RestHandler.qm:749 (Qore user code)
  AbstractRestClass::handleRequest() called at /opt/share/qore-modules/1.0.1/RestHandler.qm:749 (Qore user code)
  AbstractRestClass::handleRequest() called at /opt/share/qore-modules/1.0.1/RestHandler.qm:1306 (Qore user code)
  RestHandler::handleRequest() called at QorusRestApiHandler.qc:16282 (Qore user code)
  WebAppHandler::handleRequest() called at /opt/share/qore-modules/1.0.1/HttpServer.qm:1611 (Qore user code)
  HttpServer::handleRequest() called at /opt/share/qore-modules/1.0.1/HttpServer.qm:2517 (Qore user code)
  HttpListener::connectionThread() called at /opt/share/qore-modules/1.0.1/HttpServer.qm:2345 (Qore user code)
  HttpListener::<anonymous closure>() called at <builtin>:-1 (Qore user code)

This error is thrown when trying to register the error in a stream handler

@davidnich davidnich added this to the 1.0.2 milestone Jul 17, 2021
@davidnich davidnich self-assigned this Jul 17, 2021
@davidnich davidnich added this to To do in Qore Development via automation Jul 17, 2021
Qore Development automation moved this from To do to Done Jul 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant