google-alerts-api
google-alerts-api copied to clipboard
return state[state.length - 4] TypeError: Cannot read property 'length' of null
Throws this error sometimes while adding new alert.
Screenshot

same problem
Didn't found any way to fix this, I had to create a script that restart the server each time the library throws this error.
Hey 👋🏻
Are you sure you call sync() before create()?
It looks like the internal's state reference is null. It's a case only before authenticating.
Hey 👋🏻
Are you sure you call
sync()beforecreate()? It looks like the internal'sstatereference isnull. It's a case only before authenticating.
Yes, I was synced once. Then looping through each request to create a new alert. It works perfectly, but sometimes from nowhere just throws this error.
I have the same issue. Did any of you find the reason why there is a problem?
Not really, I just made a webhook that restarts the server each time it crashes...
I have the same issue. Did any of you find the reason why there is a problem?