Closed mrik974 closed 7 years ago
OK, I have more information about it. It appears that the code in the QueryHandler
was making direct calls to a Service
that could fail.
The problem was on our code side. Since I've put the service calls in Commands
, it works better.
However, it shows that an unhandled promise rejection makes the Handler
lose its consistency.
I cannot reproduce this error but i have published a new version to fix another exception with promotheus.
Hi, We have a long timed request in one of our vulcain service's
QueryHandler
. It is mainly used to retrieve various information and send it back to the user at once. Sometimes it throws an error in the logs and gets stuck, leading to a504 Gateway Timeout
from our proxy.Here's the error (there's no other stack trace about it)
I've lurked a bit into the
node_modules
to find which was in cause, and I found the error being inprom-client
, more specifically in thevalidation.js
file. I then looked at where in your code you're using this library. It looks like this file is the only one that's really using it. I don't know what's going on, but all I can say is that it doesn't happen every time. Most of the times, the handler was throwing a500
error at the previous request. Maybe it is duration related too. I don't know if it'll help.