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

TypeError thrown when Google account has no alerts #23

Closed
shaneiseminger opened this issue Aug 21, 2019 · 1 comment
Closed

TypeError thrown when Google account has no alerts #23

shaneiseminger opened this issue Aug 21, 2019 · 1 comment

Comments

@shaneiseminger
Copy link
Contributor

/app/node_modules/google-alerts-api/src/alerts.js:232
return state[0][0];
^

TypeError: Cannot read property '0' of null
at Object.getAlertsByState (/app/node_modules/google-alerts-api/src/alerts.js:232:24)
at Object.getAlerts (/app/node_modules/google-alerts-api/src/api.js:77:31)
at alerts.sync (/app/api/controller.js:33:26)
at Request.getCb [as _callback] (/app/node_modules/google-alerts-api/src/api.js:69:13)
at Request.self.callback (/app/node_modules/request/request.js:185:22)
at Request.emit (events.js:198:13)
at Request. (/app/node_modules/request/request.js:1161:10)
at Request.emit (events.js:198:13)
at IncomingMessage. (/app/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:286:20)

@shaneiseminger
Copy link
Contributor Author

Thanks!

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

1 participant