-
Notifications
You must be signed in to change notification settings - Fork 42
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
Panic: Unexpected end of JSON input #987
Comments
Another occurrence of this happened in Whatever input is it, it does not fit into the currently supported categories. We should add support for a wider range of types as defined in CDP specs that might not work with a direct JSON deserialization. |
Another occurrence for |
Fixing all of the possible cases can be problematic, as often we can not reproduce the original script that caused the error. Nevertheless, based on discussions with k6 core, we should try to avoid panicking and stop the whole test for an error that might not have direct impact on it. Therefore I would say we should change the implementation to not panic, and instead provide an alternative implementation that still would allow us to be aware when these errors happen. |
Related: #688? |
Brief summary
This problem was handled before in #793. But it seems the problem persists in some cases. Test run ID: 155041.
xk6-browser version
0fcdd36
OS
Linux
Docker version and image (if applicable)
No response
Steps to reproduce the problem
Run the same script in #986 several times on a restricted platform.
Expected behaviour
Not panics.
Actual behaviour
Panics.
Tasks
The text was updated successfully, but these errors were encountered: