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

return state[state.length - 4] TypeError: Cannot read property 'length' of null #46

Closed
stylessh opened this issue Dec 20, 2021 · 6 comments

Comments

@stylessh
Copy link

Throws this error sometimes while adding new alert.

Screenshot

image

@MauricioDonoso
Copy link

same problem

@stylessh
Copy link
Author

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.

@adasq
Copy link
Owner

adasq commented Jan 18, 2022

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.

@stylessh
Copy link
Author

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.

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.

@altancodes
Copy link

I have the same issue. Did any of you find the reason why there is a problem?

@stylessh
Copy link
Author

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?

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

4 participants