Skip to content
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

/me/purchases times out for users with thousands of purchases #96639

Open
dsas opened this issue Nov 21, 2024 · 3 comments
Open

/me/purchases times out for users with thousands of purchases #96639

dsas opened this issue Nov 21, 2024 · 3 comments
Labels
[Experiment] AI labels added [Feature Group] WPCOM Store & Purchases All things billing on WordPress.com. This includes the backend store, plans, and billing management. [Feature] Purchase Management Related to managing purchases such as subscriptions, plans, history, auto-renew, cancellation, etc. [Feature] Site Performance Features related to the speed and performance of your site. [Pri] High [Status] Auto-allocated [Status] Escalated to Product Ambassadors Triaged To be used when issues have been triaged. [Type] Bug

Comments

@dsas
Copy link
Contributor

dsas commented Nov 21, 2024

Quick summary

See the parent issue for more information

/me/purchases returns a HTTP 504 - gateway timeout for users with ~3000 subs. This has been noticed on /domains/manage but will probably cause them problems on other calypso pages too.

This happens for at least one user - it sounds like there have been repeated problems with this user's account for example p1694033164744309-slack-C096PD42U

Steps to reproduce

  1. Switch to the user mentioned in the first message here: p1732188303637839-slack-C07GZ2UA3TN
  2. Open up developer tools and switch to the network tab
  3. Go to /domains/manage
  4. In the network tab, filter for purchases and wait

What you expected to happen

A bunch of results

What actually happened

A http 504

Impact

One

Available workarounds?

No and the platform is unusable

If the above answer is "Yes...", outline the workaround.

No response

Platform (Simple and/or Atomic)

No response

Logs or notes

No response

@dsas dsas added [Type] Bug Needs triage Ticket needs to be triaged labels Nov 21, 2024
@dsas dsas added Triaged To be used when issues have been triaged. and removed Needs triage Ticket needs to be triaged [Status] Escalated to Product Ambassadors labels Nov 21, 2024
@matticbot matticbot moved this from Needs Triage to Triaged in Automattic Prioritization: The One Board ™ Nov 21, 2024
@github-actions github-actions bot added [Pri] High [Feature Group] WPCOM Store & Purchases All things billing on WordPress.com. This includes the backend store, plans, and billing management. [Feature] Purchase Management Related to managing purchases such as subscriptions, plans, history, auto-renew, cancellation, etc. [Feature] Site Performance Features related to the speed and performance of your site. labels Nov 21, 2024
Copy link

OpenAI suggested the following labels for this issue:

  • [Feature Group] WPCOM Store & Purchases: The issue is related to the 'purchases' endpoint which suggests it's directly tied to the store and billing functionalities.
  • [Feature] Purchase Management: The problem affects users with a large number of purchases, indicating issues with managing these purchases.
  • [Feature] Site Performance: The HTTP 504 timeout clearly points to a performance issue when users attempt to access their purchase data.

@dsas
Copy link
Contributor Author

dsas commented Nov 21, 2024

@Automattic/shilling I think this is usually your department?

@sirbrillig
Copy link
Member

Yes. This is a known issue: https://github.com/Automattic/payments-shilling/issues/2199

Many users will see an improvement when https://github.com/Automattic/payments-shilling/issues/3173 merges but it doesn't look like those performance improvements will help the specific user in the original issue. We'll need to make further improvements to that endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Experiment] AI labels added [Feature Group] WPCOM Store & Purchases All things billing on WordPress.com. This includes the backend store, plans, and billing management. [Feature] Purchase Management Related to managing purchases such as subscriptions, plans, history, auto-renew, cancellation, etc. [Feature] Site Performance Features related to the speed and performance of your site. [Pri] High [Status] Auto-allocated [Status] Escalated to Product Ambassadors Triaged To be used when issues have been triaged. [Type] Bug
Projects
Development

No branches or pull requests

3 participants