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

Wrong elapsed timedelta #1310

Closed
enguerranchevalier opened this issue Sep 23, 2020 · 1 comment · Fixed by #1313
Closed

Wrong elapsed timedelta #1310

enguerranchevalier opened this issue Sep 23, 2020 · 1 comment · Fixed by #1313
Labels
bug Something isn't working

Comments

@enguerranchevalier
Copy link

Checklist

  • [ X] The bug is reproducible against the latest release and/or master.
  • [ X] There are no similar issues or pull requests to fix it yet.

Describe the bug

The elapsed argument obtained following a stream request seems completely incoherent.

To reproduce

Code example with httpx 0.15.1:

import httpx

client = httpx.Client()

with client.stream("GET", "https://httpbin.org/basic-auth/user/pass", auth=("user", "pass")) as r:
   print(r)

print(r.elapsed)

Expected behavior

Result got with httpx 0.14.3: 0:00:02.275297

Actual behavior

Result got with httpx 0.15.1: 1 day, 17:07:15.687523

Debugging material

image

Environment

  • OS: Linux
  • Python version: 3.7.5
  • HTTPX version: 0.15.1
  • Async environment: None
  • HTTP proxy: No
  • Custom certificates: No

Thanks,

@tomchristie
Copy link
Member

👀 Yikes.

@tomchristie tomchristie added the bug Something isn't working label Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants