#sammyy1909

1 messages · Page 1 of 1 (latest)

tropic slateBOT
south night
#

Hi, how can I help?

peak iron
#

Hey, so basically i have the project working on test mode without a problem on two enviroments locally, and dev.
But on production in stripe live mode my webhooks stopped working and i can't really find out why.
This are two of the events failing in live, customer created, and invoice paid. I'm just trying to find an light on why this can be happening. Already checked envs and other things and that shouldn't be the problem
evt_1NUnysHV2GFiJ0cczHChATnt
evt_1NUnyAHV2GFiJ0cc4vQUbCM3

south night
#

Your application is responding with the following error:

Webhook Error: Argument tenant for data.tenant is missing.
#

It seems to be something related to your own business logic.

peak iron
#

And that problem only happens in live mode? Kinda confused, but will check. Don't remember having that argument

south night
#

It might be data-related issue, that's why it works differently in different envs. I don't know of anything called tenant in Stripe systems.

tropic slateBOT
peak iron
#

The only thing i can remember is that we have an older project with arguments called tenant. But that project has different webhooks from the new one -> and different envs. Can it be a problem of both webhooks colliding?

#

Because i'm checking now and it's creating in both events

noble salmon
#

What do you mean by colliding? Like same URL for both applications? That might make sense if your old project's webhook handler is trying to look up a tenant, failing, and responding with that message

#

I think the next best steps would be to debug your code to see exactly where that error is getting thrown

peak iron
#

I mean basically when i do a checkout session on the current project A, i see the events being created on the webhook from A project. But there's an older project B that is also catching those events on the respective webhook.
The error that was mentioned it's from project B, that handles tenants. The URL is different in both projects