solvvy / redact-pii

Remove personally identifiable information from text.
MIT License
187 stars 56 forks source link

Error with google API while using google DLP redactor. #60

Open mbhatt1 opened 3 years ago

mbhatt1 commented 3 years ago

I'm trying to use the google dlp API inside a chrome extension. Has anyone seen this before? Looks to be an error with google auth API.

https://stackoverflow.com/questions/54468809/what-is-causing-typeerror-expected-input-to-be-a-function-or-object-issue

Uncaught TypeError: Expected `input` to be a `Function` or `Object`, got `undefined`
    at module.exports (contentScript.js:229439)
    at Object../node_modules/google-auto-auth/node_modules/gtoken/build/src/index.js (contentScript.js:117282)
    at __webpack_require__ (contentScript.js:313984)
    at Object../node_modules/google-auto-auth/node_modules/google-auth-library/build/src/auth/jwtclient.js (contentScript.js:115665)
    at __webpack_require__ (contentScript.js:313984)
    at Object../node_modules/google-auto-auth/node_modules/google-auth-library/build/src/auth/googleauth.js (contentScript.js:114636)
    at __webpack_require__ (contentScript.js:313984)
    at Object../node_modules/google-auto-auth/node_modules/google-auth-library/build/src/index.js (contentScript.js:116939)
    at __webpack_require__ (contentScript.js:313984)
    at Object../node_modules/google-auto-auth/index.js (contentScript.js:110890)