🐛 Fixed 500 errors for Stripe webhooks

refs https://github.com/TryGhost/Team/issues/789

We are still having issues with duplicate subscriptiosn being inserted
and are unable to determine why. We are now catching these DB errors and
responding with a 409 Conflict rather than 500 Internal Server Error.

This buys us some time to solve the underlying problem, whilst not
alerting on-call engineers.
This commit is contained in:
Fabien egg O'Carroll 2021-12-01 20:49:49 +02:00
parent a41d6e9a5e
commit 337f1bacc3
2 changed files with 5 additions and 5 deletions

View File

@ -79,7 +79,7 @@
"@tryghost/limit-service": "1.0.5",
"@tryghost/logging": "1.0.1",
"@tryghost/magic-link": "1.0.14",
"@tryghost/members-api": "2.8.2",
"@tryghost/members-api": "2.8.3",
"@tryghost/members-csv": "1.2.0",
"@tryghost/members-importer": "0.3.5",
"@tryghost/members-offers": "0.10.3",

View File

@ -1542,10 +1542,10 @@
"@tryghost/domain-events" "^0.1.3"
"@tryghost/member-events" "^0.3.1"
"@tryghost/members-api@2.8.2":
version "2.8.2"
resolved "https://registry.yarnpkg.com/@tryghost/members-api/-/members-api-2.8.2.tgz#0dd76fba4227c47265b61c5cbdc3dd11d25c251a"
integrity sha512-7kSFzrfvNGCG37weEhrzm54hQF1lPkQ1Om2IOLpKpFd/EZh1AN78FDfyQ5GAGy2CFnK5cTWkDoOWYpswnowCAQ==
"@tryghost/members-api@2.8.3":
version "2.8.3"
resolved "https://registry.yarnpkg.com/@tryghost/members-api/-/members-api-2.8.3.tgz#a587b9f03b1e160b51ebbe1e8dd292dcb6d93da6"
integrity sha512-dhIi7a4SIItkJSXOgMQYKbPWFVYzT53l6JB0WHZpffAfO0NzqOiVYwo/11YWo5d0MUIpkx/HySS3w9owRHRt6g==
dependencies:
"@tryghost/debug" "^0.1.2"
"@tryghost/domain-events" "^0.1.3"