-
Notifications
You must be signed in to change notification settings - Fork 64
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
2.4.6 crashes #416
Comments
Thanks for the report!
Similarly, could you share the dependency source(s) you're auditing? That will help us reproduce the bug. |
Never mind, I see in your stack trace that the OSV service is the one being used. That's generally not encouraged unless you have a specific reason to prefer it over the PyPI one (which is the default). This does look like our bug, however, and probably introduced with #404. I'll look into it some more. |
Yeah, this looks like us failing to handle fractional seconds in the RFC3339 timestamp we're getting back from OSV. I'll have a fix in a moment. |
Looks like OSV now returns some RFC3339 timestamps with fractional seconds, while others don't have it. I'm going to raise this upstream, since while it's strictly correct from RFC3339's perspective it makes things harder for clients and might indicate an unintentional change on their part. |
Thanks that was fast. Will try tomorrow. Is there a easy way to use the PR? |
The easiest way is to check the repository out and follow the development steps in the |
@woodruffw the branch works for me. |
Glad to hear it! I'll merge and get a release cut soon. Thanks again for reporting, and for helping debug! |
Great, thanks for the fast update! |
No problem! In the mean time, the PyPI service ( |
Bug description
pip-audit crashes at
pip_audit/_service/interface.py, line 162
Right here: https://github.com/pypa/pip-audit/blob/v2.4.6/pip_audit/_service/interface.py#L162
Reproduction steps
tox -e audit
Expected behavior
No errors.
Screenshots and logs
Platform information
pip-audit
version (pip-audit -V
): 2.4.6python -V
orpython3 -V
): 3.10.6pip
version (pip -V
orpip3 -V
): 22.3.1The text was updated successfully, but these errors were encountered: