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
If it parses the body into string or buffer, the middleware will use the body
117
115
as it is and work just fine. If the pre-parsed body is an object, the webhook
118
-
middleware will fail to work. In the case, please use [`validateSignature()`](../api-reference/validate-signature.md)
116
+
middleware will fail to work. In the case, please use [`validateSignature()`](https://github.com/line/line-bot-sdk-nodejs/blob/master/lib/validate-signature.ts)
119
117
manually with raw body.
120
118
121
119
## Error handling
@@ -127,7 +125,7 @@ and the other is `JSONParseError`.
127
125
-`SignatureValidationFailed` is thrown when a request has a wrong signature.
128
126
-`JSONParseError` occurs when a request body cannot be parsed as JSON.
129
127
130
-
For type references of the errors, please refer to [the API reference](../api-reference/exceptions.md).
128
+
For type references of the errors, please refer to [the API reference](../apidocs/modules.md).
131
129
132
130
The errors can be handled with [error middleware](https://github.com/senchalabs/connect#error-middleware).
0 commit comments