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

Uncaught (in promise) Error: Unable to load script https://pay.google.com/gp/p/js/pay.js #170

Closed
Deadpool957 opened this issue Dec 7, 2022 · 18 comments · Fixed by #178 or #179
Closed
Labels
question Further information is requested

Comments

@Deadpool957
Copy link

image
How can catch this err

@Deadpool957 Deadpool957 added the question Further information is requested label Dec 7, 2022
@dmengelt
Copy link
Member

dmengelt commented Dec 7, 2022

Hi @Deadpool957
Thank you very much for reporting this issue.
Are you able to provide a link reproducing this?

@Deadpool957
Copy link
Author

If the js fails to load, how can I capture,There are related apis

@Deadpool957
Copy link
Author

@dmengelt

@google-pay google-pay deleted a comment from Deadpool957 Dec 8, 2022
@dmengelt
Copy link
Member

dmengelt commented Dec 8, 2022

Sorry @Deadpool957 I thought you are facing this issue on one of your sites.
Maybe you can have a look at: https://github.com/google-pay/google-pay-button/blob/main/src/lib/button-manager.ts#L78

In addition, 3.0.1 should have this handling

@Deadpool957
Copy link
Author

thanks, i try this

@Deadpool957
Copy link
Author

image

@dmengelt this version doesn't exist. at npm

@Deadpool957
Copy link
Author

image

@dmengelt
Copy link
Member

dmengelt commented Dec 8, 2022

@Deadpool957 my bad. the release job was not working. the versions are now published. please check again.

@Deadpool957
Copy link
Author

thanks

@Deadpool957
Copy link
Author

image
image

@Deadpool957
Copy link
Author

this js load fail ,but onError don't strike @dmengelt

@Deadpool957
Copy link
Author

image

@Deadpool957
Copy link
Author

I has use 3.0.1 this version

@dmengelt
Copy link
Member

dmengelt commented Dec 9, 2022

Hello @Deadpool957
Are you able to reproduce this issue here: https://stackblitz.com/edit/google-pay-react-ecbhkg

@dmengelt
Copy link
Member

dmengelt commented Dec 9, 2022

@Deadpool957 never mind. I'm able to reproduce myself 😉
I will have a more detailed look and will update you as soon as possible.

sorry for the inconvenience

@Deadpool957
Copy link
Author

Thank you very much

@dmengelt
Copy link
Member

@Deadpool957 please try with 3.0.2

@Deadpool957
Copy link
Author

Thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
2 participants