shabiel / M-Web-Server

A YottaDB and Caché compatible HTTP server
Apache License 2.0
24 stars 19 forks source link

Errors in NOGBL mode are not reported #50

Closed shabiel closed 2 years ago

shabiel commented 2 years ago

When an M error happens during the execution of the Web Server, LOGERR doesn't set the global that contains the error information because we are running in "No Globals" mode; and as a result, they are suppressed and never sent back to the client.

whitten commented 2 years ago

What is normal best practice in this case ? Does it record the error in the node.js system, or would it need to be changed to do that ? Dave

On Mon, Jun 6, 2022 at 8:08 AM Sam Habiel @.***> wrote:

LOGERR doesn't set the global that contains the error information and as a result, they are suppressed and never sent back to the client.

— Reply to this email directly, view it on GitHub https://github.com/shabiel/M-Web-Server/issues/50, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJPNTZY7GQINLPZJP6MX73VNXS5LANCNFSM5X7FWE3Q . You are receiving this because you are subscribed to this thread.Message ID: @.***>

shabiel commented 2 years ago

Oh this is just a plain bug... we don't use NodeJS anywhere. No relation to it. We just need to report the error like we normally do.

shabiel commented 2 years ago

Implemented in PR#52