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

"loadPaymentData error" Promise rejection from paymentRequest.show() with error message "8" #31

Open
max-nicholson opened this issue Nov 14, 2024 · 2 comments

Comments

@max-nicholson
Copy link

Hi, we're seeing users getting "loadPaymentData error" promise rejections from paymentRequest.show() with an error message of "8", which isn't particularly clear to debug/fix. We've got a screenshot of the error screen the user sees below

image

It looks like this error comes from:

Trying to search online for Google error codes, I've found this, which suggests 8 = "INTERNAL_ERROR".
https://developers.google.com/android/reference/com/google/android/gms/common/api/CommonStatusCodes#INTERNAL_ERROR()

  1. Does this "8" actually map to INTERNAL_ERROR, or something else?
  2. Is there anything we can do about this error? The INTERNAL_ERROR docs suggest retries - would that be calling await paymentRequest.show() in a retry loop?
  3. Would it be possible to improve the thrown error to include more information for debugging purposes (e.g. is there a reason we only get an "8" when the user is seeing an "RpcClientException", would we be able to add other fields to the error object e.g. an error.code)?
@dmengelt
Copy link
Member

@max-nicholson are you able to reproduce this issue? or do you have a timestamp + user email so I can check our logs?

@max-nicholson
Copy link
Author

@dmengelt no, I haven't personally reproduced this.

Is there a more secure channel I can share some examples (since it's customer PII)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants