Brief Description
In pub-get-stats-all/index.js, when an exception is thrown, the app returns a server 500 and attempts to convert the exception to a JSON object to send back to the client.
But this conversion process is broken, meaning that the client never receives any details about the error, just a 500 status with no further information.
The problem is that calling JSON.stringify(err) on an exception object err returns {}. The call needs to be JSON.stringify(err, Object.getOwnPropertyNames(err)).
Brief Description
In
pub-get-stats-all/index.js, when an exception is thrown, the app returns a server 500 and attempts to convert the exception to a JSON object to send back to the client.But this conversion process is broken, meaning that the client never receives any details about the error, just a 500 status with no further information.
The problem is that calling
JSON.stringify(err)on an exception objecterrreturns{}. The call needs to beJSON.stringify(err, Object.getOwnPropertyNames(err)).