#felipe_code

1 messages ยท Page 1 of 1 (latest)

halcyon willowBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1331398679189393440

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

winged void
#

I was running it locally, but then I changed it here:

#

It's hitting my API and I'm receiving this ERROR 2025-01-21T23:00:38.242656624Z [resource.labels.containerName: copilot] Invalid Stripe signature. Message: No signatures found matching the expected signature for payload { "insertId": "p41snl3jowjpzqxh", "jsonPayload": { "thread_name": "ktor-jetty-8080-9090-16", "timestamp": "2025-01-21T23:00:38.242Z", "logger": "StripeWebhookHandler", "message": "Invalid Stripe signature. Message: No signatures found matching the expected signature for payload" }, "resource": { "type": "k8s_container", "labels": { "location": "us-west1-a", "project_id": "perf-dev-289002", "namespace_name": "default", "cluster_name": "prod", "pod_name": "copilot-backend-dc5c58d84-xlzlt", "container_name": "copilot" } }, "timestamp": "2025-01-21T23:00:38.242656624Z", "severity": "ERROR", "labels": { "k8s-pod/pod-template-hash": "dc5c58d84", "compute.googleapis.com/resource_name": "gke-prod-copilot-pool-v4-74a28891-9hd3", "k8s-pod/app_kubernetes_io/version": "750411cf7eca3d4b4755621fe2cb64a077411aeb", "k8s-pod/app_kubernetes_io/name": "copilot-backend", "k8s-pod/app_kubernetes_io/managed-by": "gcp-cloud-build-deploy", "k8s-pod/app": "copilot-backend" }, "logName": "projects/perf-dev-289002/logs/stdout", "receiveTimestamp": "2025-01-21T23:00:41.806055070Z" }

keen lodge
#

Hi there. You mentioned "locally" and "prod" but the screenshot you shared is for a test mode endpoint. Can you double check that your code is using the same webhook signing secret that you see in the Dashboard for that test mode endpoint?

winged void
#

not sure I get what you mean

#

I'm using everything on the test mode right now

#

I was testing this locally with the webhook secret generated from stripe listen --forward-to localhost:8080/v2/stripe/webhook this command

#

the only difference is that I added the enpoint and got the webhook secret from it, but I still want to use it on the test mode

halcyon willowBOT
keen lodge
#

I see, okay. The webhook signing secret (begins with whsec_) returned in the Stripe CLI is different from the signing secret you see in the Dashboard

winged void
#

but I changed it to the signing secret on my code as well

#

so my STRIPE_WEBHOOK_SECRET is the one from the dashboard already

remote heron
#

Hello! I'm taking over and catching up...