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

False positive errors #17

Open
bleal-kitmanlabs opened this issue Mar 8, 2023 · 0 comments
Open

False positive errors #17

bleal-kitmanlabs opened this issue Mar 8, 2023 · 0 comments

Comments

@bleal-kitmanlabs
Copy link

Hey Folks,

Running the lib here, I got tons of this error (which sounds false positive):

[2023-03-08 09:35:39]-ERROR-[jsonpath] string indices must be integers, not 'str'
2023-03-08 09:35:39,786 [jsonpath] [ERROR] string indices must be integers, not 'str'

My JsonPath with filter:

JSONPath(f'$.[?(@.user=="{user}")]').parse(all_access)

My json:

[
 {'time': '2023-01-02T20:32:01Z', 'user': 'user1' },
 {'time': '2023-01-02T20:32:03Z', 'user': 'user2'},
 {'time': '2023-01-02T20:32:03Z', 'user': 'user1'}
]

What could be the fix as I'm not considering to just leave the error avoiding logs from this lib?

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