-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new subscription webhook not creating scheduled action #742
Comments
Hi @BFlorek95, I'm not having any luck with reproducing this issues. Are your subscriptions created through the standard checkout flow, or are these created via some other method? I've tested:
Yeah this is my thought as well. The current
I'm curious if there's some hook that's not firing on your store or possibly something else is going on. Are there any failed Would you be open to try adding extra hooks that the
|
Hi @mattallan sub scriptions are created thru the standard checkout method. I did recently have this issue unsure what caused this to be sent It was a sub-new webhook but nothing was sent. it originated from my server too. I do ocassionally get failed scheduled actions. Seems to happen more and more but it always has to do with stripe. Essentially the subscription creates the renewal order. The stripe payment intent is created then the action fails due to a timeout. As you can see in the screenshot below I have 2 failed items #3516 is the one that failed due to a timeout. I do have one issue thats been a fatal error in the logs for a while. Its completely random when the error occurs Unsure how to fix this as the php memory size was increased and still getting the error. |
Hi @mattallan I just took a look back at the fatal logs and see where the issue is This is the fatal-errors from day/time the webhook didnt fire |
Describe the bug
When a new subscription is created the subscription.created webhook is not working.,
In the past there would be a webhook called for all new subscription creations it would create a scheduled action for this webhook.
Since one of the newer updates this is no longer happening consistently.
webhooks I have are in picture below
![Image](https://private-user-images.githubusercontent.com/22903282/393571564-d249ed26-9659-43ac-b45b-df3ba0b73524.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MTgzNTYsIm5iZiI6MTczODkxODA1NiwicGF0aCI6Ii8yMjkwMzI4Mi8zOTM1NzE1NjQtZDI0OWVkMjYtOTY1OS00M2FjLWI0NWItZGYzYmEwYjczNTI0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDA4NDczNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRlODRiMjM0OTI5Njc4OWEyYTlkYWJjMWRjY2Y1ZThjOTQ2NGU1YTQ4YTc4Zjc4MDI2NmUwMDQ3ZDU5ZGUxZDAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.cnbEK25Z4iUO9hE8GDAMAnBg6orqBSSTqR-j_y0CNKA)
Ive noticed the subscription.updated will receive the information but for some reason the subscription.created never works consistently.
picture below shows the subscription scheduled actions where it sent information to webhook for subscription.updated
![Image](https://private-user-images.githubusercontent.com/22903282/393572020-6b19e722-6b3a-47df-aad9-876eece8fcdd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MTgzNTYsIm5iZiI6MTczODkxODA1NiwicGF0aCI6Ii8yMjkwMzI4Mi8zOTM1NzIwMjAtNmIxOWU3MjItNmIzYS00N2RmLWFhZDktODc2ZWVjZThmY2RkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDA4NDczNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM5YjBlZWRmNjcwNTg2YzIwYzVjNjkyMTk0ZTNkMjZjYjllNTFhNDdiNGYyNDVlOGNjNWUxMzQ2NmQzYmU5YmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.MVs-nyIVAnUgSBFQ8fhWlflMaskhndH6bUoy29jSKU4)
subscription creation date pictured below
![Image](https://private-user-images.githubusercontent.com/22903282/393572855-dc45ab4c-67c6-483d-bdc6-1506fef84a78.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MTgzNTYsIm5iZiI6MTczODkxODA1NiwicGF0aCI6Ii8yMjkwMzI4Mi8zOTM1NzI4NTUtZGM0NWFiNGMtNjdjNi00ODNkLWJkYzYtMTUwNmZlZjg0YTc4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDA4NDczNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI3Mjg2OThiN2U1YzY3ZjhlYTQzYTZmMDVlZGUwODdmMDgzNGRkNTc0Y2YwMWNlZDRiMmEzMmVmNzliMDNjY2YmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.hh6KWL-enYqC2pe_ZbGeNrAX_twCJhRd2VuP4cp8dyU)
Im unsure if this has to do with the strip issue where the payment intents are being created but never receiving the completed payment notification from stripe. This has been happening for over a year but its rare / becoming more common where stripe payment doesn't finish on WooCommerce even though payment was captured thru stripe.
From the looks this is first time a brand new subscription got stuck with just the payment intent from stripe.
![Image](https://private-user-images.githubusercontent.com/22903282/393572425-d163f0c4-709e-45eb-aefc-c1c1e9e69c0e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MTgzNTYsIm5iZiI6MTczODkxODA1NiwicGF0aCI6Ii8yMjkwMzI4Mi8zOTM1NzI0MjUtZDE2M2YwYzQtNzA5ZS00NWViLWFlZmMtYzFjMWU5ZTY5YzBlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDA4NDczNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdlMTg2MTgzNGIxOGVmM2ViY2Y2YTFkYzQ4NTQ3MDBjOTIxYjY2OGM3NjgyYjg1Njg1NzNhM2M1YTg3N2JkYTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.SzVZDtAqTSxHzXHMiHS08z-Nxq3zLJTYLNHaP_WeJkQ)
Usually its the renewals that all get stuck.
That being said the subscription was still created and should have created the scheduled action for the subscription.created webhook
The text was updated successfully, but these errors were encountered: