#mastjoe_webhooks

1 messages ยท Page 1 of 1 (latest)

loud grailBOT
#

๐Ÿ‘‹ 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/1494664529676599377

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

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

rare schooner
#

hey there ๐Ÿ‘‹ could you share the Request ID (req_123) for the API request that received the 'No such notification' error?

#

looking at evt_1TN9ke55X1n1yOyXh75bFMlz, I can see that the event/webhook was successfully delivered to 4 Connect webhook destinations

I'm not sure I understand the problem here - could you explain in some more detail? what specifically was unexpected here?

steady edge
#

so I made two webhook endpoints, one to receive platform events and the other to receive the connected account events, the both webhook endpoint points same URL, it appears I can only see the platform events on my log(as received) but I do not see the connect accounts events, even though the connect account event on dashboard got a success response

loud grailBOT
steady edge
#

and when I try to pull the events via API (https://docs.stripe.com/api/events/retrieve), I am able to pull events from platform without encountering any error, but when I try to retrieve that of the connect account, I get error response, for instance:
Stripe\Exception\InvalidRequestException No such notification: 'evt_1TN9hv55X1n1yOyXuOkdBYdz'.

rare schooner
#

thanks! so sounds like there are two issues:

  1. Connected account event webhooks are succeeding, but you don't see the payload on your side, and
  2. Errors when trying to retrieve the connected account event via the API
steady edge
#

Yeah exactly!

#

Thanks. resolved for (2) and now able to retrieve the connect account by using the Stripe-Account header

rare schooner
#

awesome! ok now to tackle (1)

#

just checking some details on my side

#

are you using a single signing secret for both endpoints in your webhook handler code?

it's important to note that each endpoint will have a unique signing secret, so if your code only checks one to verify all incoming webhooks, then the signature check may be failing silently for the Connect webhooks

steady edge
#

no, I am using different signing secrets, one for the platform and another for the connect accounts

#

I use the connected secrets when there exists an account field on the event payload

rare schooner
#

ah ok that answers my next question too - you do check for the account property

just to confirm, where did you get the signing secret you're using for Connect events?

steady edge
#

the signing secret was obtained at the initial point of the creation of the webhook endpoint

rare schooner
#

ok! would you mind sharing your webhook handler code so we can inspect from our side?

seems like some logic on your end is preventing the Connect events from being visible to you after delivery

loud grailBOT
steady edge
#

Since obvious its a local issue from my end, I will investigate further to resolve it. The connect account response is 204, which is what I return, that it implies it passes the signature verification correctly from my end.
Thanks @rare schooner for your assistance.