Paulo De Mitri@paulogdm
Can I use Micro as middleware
Hi guys, is quite difficult to find a tutorials of micro, so I have a couple of questions: is possible to use micro as middleware I have a personal project and I need consume the api fro eventbrite and facebook, so I need a middleware to handle the secrets and tokens, so I need…
Are unresolved promises terminated when calling send()?
I am using a micro to handle a Slack command but the action it performs frequently exceeds 3000ms which causes an operation_timeout error to be displayed to the user even though the task eventually completed successfully. The recommended solution is to send an immediate 200…
Mongoose .findOne() breaks when deployed
Hi everyone! I have Micro endpoints for my API that uses Mongoose. All of them work fine, except the one that uses .findOne(). This one returns the right data locally, but not when deployed to Now v2. Here is the endpoint: And here is the output: The weird thing to me is that I…