-
Notifications
You must be signed in to change notification settings - Fork 137
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
[UnmarshalJSON] check if line startsWith {
#986
Comments
Also another task to add is adding type safety checks within all json parsers
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
adding this as a maybe task due to logging of errors.
Following crowdsecurity/crowdsec#2859 (comment) it might be a good idea to check if the line actually started with
{
if not then dont try to unmarshal json it as the user get bombarded with errorsThe text was updated successfully, but these errors were encountered: