Skip to content

Backend receive "Webhook signature verification failed" error #2

@AlanTso

Description

@AlanTso

8:02:05.370 PM
stripeWebhook
Function execution started
8:02:05.460 PM
stripeWebhook
⚠️ Webhook signature verification failed.
8:02:05.548 PM
stripeWebhook
Function execution took 178 ms, finished with status code: 400
8:02:10.740 PM
stripeWebhook
Unhandled rejection
8:02:11.442 PM
stripeWebhook
Error: Value for argument "data" is not a valid Firestore document. Cannot use "undefined" as a Firestore value (found in field "checkoutSessionId"). If you want to ignore undefined values, enable ignoreUndefinedProperties. at validateUserInput (/workspace/node_modules/@google-cloud/firestore/build/src/serializer.js:271:19) at Object.validateUserInput (/workspace/node_modules/@google-cloud/firestore/build/src/serializer.js:263:13) at validateDocumentData (/workspace/node_modules/@google-cloud/firestore/build/src/write-batch.js:578:18) at WriteBatch.set (/workspace/node_modules/@google-cloud/firestore/build/src/write-batch.js:244:9) at DocumentReference.set (/workspace/node_modules/@google-cloud/firestore/build/src/reference.js:350:14) at /workspace/lib/index.js:60:56 at cloudFunction (/workspace/node_modules/firebase-functions/lib/providers/https.js:51:16) at /layers/google.nodejs.functions-framework/functions-framework/node_modules/@google-cloud/functions-framework/build/src/invoker.js:100:17 at processTicksAndRejections (internal/process/task_queues.js:77:11)
8:02:12.443 PM
stripeWebhook
Error: Process exited with code 16 at process. (/layers/google.nodejs.functions-framework/functions-framework/node_modules/@google-cloud/functions-framework/build/src/invoker.js:275:22) at process.emit (events.js:376:20) at process.emit (domain.js:470:12) at process.exit (internal/process/per_thread.js:169:15) at Object.sendCrashResponse (/layers/google.nodejs.functions-framework/functions-framework/node_modules/@google-cloud/functions-framework/build/src/logger.js:37:9) at process. (/layers/google.nodejs.functions-framework/functions-framework/node_modules/@google-cloud/functions-framework/build/src/invoker.js:271:22) at process.emit (events.js:376:20) at process.emit (domain.js:470:12) at processPromiseRejections (internal/process/promises.js:245:33) at processTicksAndRejections (internal/process/task_queues.js:96:32)
8:02:16.900 PM
stripeWebhook
Error detected in stripeWebhook
8:02:17.115 PM
stripeWebhook
Error detected in stripeWebhook
8:02:20.371 PM
stripeWebhook
Function execution started
8:02:20.509 PM
stripeWebhook
⚠️ Webhook signature verification failed.
8:02:20.516 PM
stripeWebhook
Function execution took 146 ms, finished with status code: 400
8:02:20.591 PM
stripeWebhook
Unhandled rejection
8:02:20.592 PM
stripeWebhook
Error: Value for argument "data" is not a valid Firestore document. Cannot use "undefined" as a Firestore value (found in field "checkoutSessionId"). If you want to ignore undefined values, enable ignoreUndefinedProperties. at validateUserInput (/workspace/node_modules/@google-cloud/firestore/build/src/serializer.js:271:19) at Object.validateUserInput (/workspace/node_modules/@google-cloud/firestore/build/src/serializer.js:263:13) at validateDocumentData (/workspace/node_modules/@google-cloud/firestore/build/src/write-batch.js:578:18) at WriteBatch.set (/workspace/node_modules/@google-cloud/firestore/build/src/write-batch.js:244:9) at DocumentReference.set (/workspace/node_modules/@google-cloud/firestore/build/src/reference.js:350:14) at /workspace/lib/index.js:60:56 at cloudFunction (/workspace/node_modules/firebase-functions/lib/providers/https.js:51:16) at /layers/google.nodejs.functions-framework/functions-framework/node_modules/@google-cloud/functions-framework/build/src/invoker.js:100:17 at processTicksAndRejections (internal/process/task_queues.js:77:11)
8:02:21.657 PM
stripeWebhook
Error: Process exited with code 16 at process. (/layers/google.nodejs.functions-framework/functions-framework/node_modules/@google-cloud/functions-framework/build/src/invoker.js:275:22) at process.emit (events.js:376:20) at process.emit (domain.js:470:12) at process.exit (internal/process/per_thread.js:169:15) at Object.sendCrashResponse (/layers/google.nodejs.functions-framework/functions-framework/node_modules/@google-cloud/functions-framework/build/src/logger.js:37:9) at process. (/layers/google.nodejs.functions-framework/functions-framework/node_modules/@google-cloud/functions-framework/build/src/invoker.js:271:22) at process.emit (events.js:376:20) at process.emit (domain.js:470:12) at processPromiseRejections (internal/process/promises.js:245:33) at processTicksAndRejections (internal/process/task_queues.js:96:32)
9:03:19.347 PM
stripeWebhook
Function execution started
9:03:19.483 PM
stripeWebhook
⚠️ Webhook signature verification failed.
9:03:19.490 PM
stripeWebhook
Function execution took 143 ms, finished with status code: 400
9:03:19.539 PM
stripeWebhook
Unhandled rejection
9:03:19.540 PM
stripeWebhook
Error: Value for argument "data" is not a valid Firestore document. Cannot use "undefined" as a Firestore value (found in field "checkoutSessionId"). If you want to ignore undefined values, enable ignoreUndefinedProperties. at validateUserInput (/workspace/node_modules/@google-cloud/firestore/build/src/serializer.js:271:19) at Object.validateUserInput (/workspace/node_modules/@google-cloud/firestore/build/src/serializer.js:263:13) at validateDocumentData (/workspace/node_modules/@google-cloud/firestore/build/src/write-batch.js:578:18) at WriteBatch.set (/workspace/node_modules/@google-cloud/firestore/build/src/write-batch.js:244:9) at DocumentReference.set (/workspace/node_modules/@google-cloud/firestore/build/src/reference.js:350:14) at /workspace/lib/index.js:60:56 at cloudFunction (/workspace/node_modules/firebase-functions/lib/providers/https.js:51:16) at /layers/google.nodejs.functions-framework/functions-framework/node_modules/@google-cloud/functions-framework/build/src/invoker.js:100:17 at processTicksAndRejections (internal/process/task_queues.js:77:11)
9:03:19.744 PM
stripeWebhook
Error: Process exited with code 16 at process. (/layers/google.nodejs.functions-framework/functions-framework/node_modules/@google-cloud/functions-framework/build/src/invoker.js:275:22) at process.emit (events.js:376:20) at process.emit (domain.js:470:12) at process.exit (internal/process/per_thread.js:169:15) at Object.sendCrashResponse (/layers/google.nodejs.functions-framework/functions-framework/node_modules/@google-cloud/functions-framework/build/src/logger.js:37:9) at process. (/layers/google.nodejs.functions-framework/functions-framework/node_modules/@google-cloud/functions-framework/build/src/invoker.js:271:22) at process.emit (events.js:376:20) at process.emit (domain.js:470:12) at processPromiseRejections (internal/process/promises.js:245:33) at processTicksAndRejections (internal/process/task_queues.js:96:32)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions