-
Notifications
You must be signed in to change notification settings - Fork 637
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
UnhandledPromiseRejectionWarning #317
Comments
I was having the same problem... What i did here is change the auth settings in image.js for a new type of auth in google apis. Reading the googleapis docs, the custom search api supports Oauth2 and Service Accounts auth type. So, i created a new service account in GCP, with the required permissions for doing searchs, and changed the auth code on image.js to support service account auth. Service Accounts GCP
|
I am getting the same error, when I try to replace the code with the @HeavyBR suggestion I get the error google.auth.GoogleAuth is not a constructor. at image js I have this import: If I remove .google at the end I get more errors with another imports. Can someone help? |
@andutra Try to update your googleapis package, i think that will fix the error.
|
Doesn't work, I will try to rewrite this part of code tonight |
Hey any progress here? |
I am unable to perform any search, I saw that it has changed (updated) in various parts of the Google Cloud Platform (#306) .
Anyway, the output of executing my script was this, can someone help me?
The text was updated successfully, but these errors were encountered: