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

Internal Errors of Type Invalid Arguments/Out of Bound Array Access #3532

Open
MrAshFar opened this issue Feb 12, 2025 · 0 comments
Open

Internal Errors of Type Invalid Arguments/Out of Bound Array Access #3532

MrAshFar opened this issue Feb 12, 2025 · 0 comments

Comments

@MrAshFar
Copy link

Recently, I encountered an intensive error rate (~30%) of type internal errors in my deployed worker and had no idea of the origin of these errors. After working on the issue for a couple of days and getting help from the CF team, I found that the internal errors were being thrown because of Invalid Arguments/Out Of Bound Array Access (90% accurate conclusion). I had a DataView for which I was passing incorrect arguments, new DataView(mBuffer, count * 2, 2). The count * 2 was bigger than the length of mBuffer, causing the DataView to encounter an Out of Bound Array Access. The variable count would increase over time, and when the worker was running for a long period, count would exceed the size of mBuffer, resulting in internal errors being thrown.

As the CF team suggested, I opened this issue to be sorted for future developments to add an informative js exception for such conditions.

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