[PR #151] [MERGED] Purchase crash fixes #181

Closed
opened 2026-02-27 04:59:27 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/guyzyl/whatsapp-contact-sync/pull/151
Author: @guyzyl
Created: 4/5/2024
Status: Merged
Merged: 4/5/2024
Merged by: @guyzyl

Base: mainHead: purchase-crash-fixes


📝 Commits (2)

  • eba02e0 Handle error when parsing JSON response in payments.ts
  • d20dd3e Add customer cache to improve performance and reduce Redis load

📊 Changes

1 file changed (+30 additions, -5 deletions)

View changed files

📝 server/src/payments.ts (+30 -5)

📄 Description

Fix two crash scenarios:

  • buymeacoffee API doesn't return a proper JSON
  • Redis server can't handle the load

Both errors caused the prod containers to crash, errors should be caught now.

Additionally, add a local customer cache to reduce redundant load on Redis server.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/guyzyl/whatsapp-contact-sync/pull/151 **Author:** [@guyzyl](https://github.com/guyzyl) **Created:** 4/5/2024 **Status:** ✅ Merged **Merged:** 4/5/2024 **Merged by:** [@guyzyl](https://github.com/guyzyl) **Base:** `main` ← **Head:** `purchase-crash-fixes` --- ### 📝 Commits (2) - [`eba02e0`](https://github.com/guyzyl/whatsapp-contact-sync/commit/eba02e0f8a27a332770371ca1b39869e23d6a164) Handle error when parsing JSON response in payments.ts - [`d20dd3e`](https://github.com/guyzyl/whatsapp-contact-sync/commit/d20dd3e1b2940e50b5da9dd6573798394e14d8b8) Add customer cache to improve performance and reduce Redis load ### 📊 Changes **1 file changed** (+30 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `server/src/payments.ts` (+30 -5) </details> ### 📄 Description Fix two crash scenarios: - buymeacoffee API doesn't return a proper JSON - Redis server can't handle the load Both errors caused the prod containers to crash, errors should be caught now. Additionally, add a local customer cache to reduce redundant load on Redis server. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 04:59:27 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whatsapp-contact-sync#181
No description provided.