You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function call to Buffer.from() throws an error if passed undefined. When used here, there's no protection from twilioHeader being undefined (which is possible from an invalid request). This is causing exceptions to happen during validation.
TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type undefined
The text was updated successfully, but these errors were encountered:
Version:
3.30.3
Code Snippet
The function call to
Buffer.from()
throws an error if passedundefined
. When used here, there's no protection fromtwilioHeader
beingundefined
(which is possible from an invalid request). This is causing exceptions to happen during validation.The easiest fix for this would be to assign a default value if it is undefined:
Exception/Log
The text was updated successfully, but these errors were encountered: