I am occasionally getting the above error logged in AWS lambda. Just curious about it and want to know how can I replicate it locally in nodejs12.
I am occasionally getting the above error logged in AWS lambda. Just curious about it and want to know how can I replicate it locally in nodejs12.
This means that one of your packages or yourself are using a deprecated feature as of that version of node.
You would need to figure out which module it is and see if there is a fix for the issue.
The packages themselves can fix the issue by changing anywhere they use ._headers to .getHeaders
That said, this is only a warning, this wont currently break anything but it's always better to upgrade.